diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/ts/ts_rsp_sign.c | 2 | ||||
| -rw-r--r-- | src/lib/libssl/src/crypto/ts/ts_rsp_sign.c | 2 | 
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/ts/ts_rsp_sign.c b/src/lib/libcrypto/ts/ts_rsp_sign.c index 235c0a8476..e7186a8ce0 100644 --- a/src/lib/libcrypto/ts/ts_rsp_sign.c +++ b/src/lib/libcrypto/ts/ts_rsp_sign.c  | |||
| @@ -983,7 +983,7 @@ TS_RESP_set_genTime_with_precision(ASN1_GENERALIZEDTIME *asn1_time, | |||
| 983 | if the elements correspond to 0, they MUST be wholly | 983 | if the elements correspond to 0, they MUST be wholly | 
| 984 | omitted, and the decimal point element also MUST be | 984 | omitted, and the decimal point element also MUST be | 
| 985 | omitted." */ | 985 | omitted." */ | 
| 986 | (void)snprintf(usecstr, sizeof(usecstr), ".%ld", usec); | 986 | (void)snprintf(usecstr, sizeof(usecstr), ".%06ld", usec); | 
| 987 | /* truncate and trim trailing 0 */ | 987 | /* truncate and trim trailing 0 */ | 
| 988 | usecstr[precision + 1] = '\0'; | 988 | usecstr[precision + 1] = '\0'; | 
| 989 | p = usecstr + strlen(usecstr) - 1; | 989 | p = usecstr + strlen(usecstr) - 1; | 
diff --git a/src/lib/libssl/src/crypto/ts/ts_rsp_sign.c b/src/lib/libssl/src/crypto/ts/ts_rsp_sign.c index 235c0a8476..e7186a8ce0 100644 --- a/src/lib/libssl/src/crypto/ts/ts_rsp_sign.c +++ b/src/lib/libssl/src/crypto/ts/ts_rsp_sign.c  | |||
| @@ -983,7 +983,7 @@ TS_RESP_set_genTime_with_precision(ASN1_GENERALIZEDTIME *asn1_time, | |||
| 983 | if the elements correspond to 0, they MUST be wholly | 983 | if the elements correspond to 0, they MUST be wholly | 
| 984 | omitted, and the decimal point element also MUST be | 984 | omitted, and the decimal point element also MUST be | 
| 985 | omitted." */ | 985 | omitted." */ | 
| 986 | (void)snprintf(usecstr, sizeof(usecstr), ".%ld", usec); | 986 | (void)snprintf(usecstr, sizeof(usecstr), ".%06ld", usec); | 
| 987 | /* truncate and trim trailing 0 */ | 987 | /* truncate and trim trailing 0 */ | 
| 988 | usecstr[precision + 1] = '\0'; | 988 | usecstr[precision + 1] = '\0'; | 
| 989 | p = usecstr + strlen(usecstr) - 1; | 989 | p = usecstr + strlen(usecstr) - 1; | 
