projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bbb76be
)
Correct timestamp output when clock_precision_digits > 0
author
Michal Bozon
<bozon@cesnet.cz>
Wed, 12 Nov 2014 15:59:04 +0000
(15:59 +0000)
committer
Matt Caswell
<matt@openssl.org>
Wed, 12 Nov 2014 20:54:10 +0000
(20:54 +0000)
PR#3535
Reviewed-by: Stephen Henson <steve@openssl.org>
crypto/ts/ts_rsp_sign.c
patch
|
blob
|
history
diff --git
a/crypto/ts/ts_rsp_sign.c
b/crypto/ts/ts_rsp_sign.c
index b0f023c9d2f87cf05085412c350ba769f5d62e04..2c0e94edda1616d7d58d0b1406dbec06731442b9 100644
(file)
--- a/
crypto/ts/ts_rsp_sign.c
+++ b/
crypto/ts/ts_rsp_sign.c
@@
-977,7
+977,7
@@
TS_RESP_set_genTime_with_precision(ASN1_GENERALIZEDTIME *asn1_time,
if (precision > 0)
{
/* Add fraction of seconds (leave space for dot and null). */
- BIO_snprintf(p, 2 + precision, ".%ld", usec);
+ BIO_snprintf(p, 2 + precision, ".%
06
ld", usec);
/* We cannot use the snprintf return value,
because it might have been truncated. */
p += strlen(p);