SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
23
security/cyrus-sasl2/patches/patch-plugins_otp_c
Normal file
23
security/cyrus-sasl2/patches/patch-plugins_otp_c
Normal file
|
@ -0,0 +1,23 @@
|
|||
64-bit time_t
|
||||
|
||||
Index: plugins/otp.c
|
||||
--- plugins/otp.c.orig
|
||||
+++ plugins/otp.c
|
||||
@@ -645,7 +645,7 @@ static int make_secret(const sasl_utils_t *utils, cons
|
||||
bin2hex(otp, OTP_HASH_SIZE, buf);
|
||||
buf[2*OTP_HASH_SIZE] = '\0';
|
||||
|
||||
- sprintf(data, "%s\t%04d\t%s\t%s\t%020ld",
|
||||
+ sprintf(data, "%s\t%04d\t%s\t%s\t%020lld",
|
||||
alg, seq, seed, buf, timeout);
|
||||
|
||||
return SASL_OK;
|
||||
@@ -706,7 +706,7 @@ static int parse_secret(const sasl_utils_t *utils,
|
||||
return SASL_FAIL;
|
||||
}
|
||||
|
||||
- sscanf(secret, "%s\t%04d\t%s\t%s\t%020ld",
|
||||
+ sscanf(secret, "%s\t%04d\t%s\t%s\t%020lld",
|
||||
alg, seq, seed, buf, timeout);
|
||||
|
||||
hex2bin(buf, otp, OTP_HASH_SIZE);
|
Loading…
Add table
Add a link
Reference in a new issue