aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/asn1
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2001-02-04 03:04:43 +0000
committerDr. Stephen Henson <steve@openssl.org>2001-02-04 03:04:43 +0000
commit2b916952a8de5b1197169801925dad74aa3360cd (patch)
tree3da79abd19c83d3b089374ec34a048bf1711a55e /crypto/asn1
parent02e4fbed3d256f4f1fffff84f307a336b50fae1f (diff)
downloadopenssl-2b916952a8de5b1197169801925dad74aa3360cd.tar.gz
Fix ASN1_TIME_to_generlizedtime().
Add protoype for OCSP_response_create(). Add OCSP_request_sign() and OCSP_basic_sign() private key and certificate checks and make OCSP_NOCERTS consistent with PKCS7_NOCERTS
Diffstat (limited to 'crypto/asn1')
-rw-r--r--crypto/asn1/a_time.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/asn1/a_time.c b/crypto/asn1/a_time.c
index 03788a7d62..4c6b37ba06 100644
--- a/crypto/asn1/a_time.c
+++ b/crypto/asn1/a_time.c
@@ -149,9 +149,9 @@ ASN1_GENERALIZEDTIME *ASN1_TIME_to_generalizedtime(ASN1_TIME *t, ASN1_GENERALIZE
/* grow the string */
if (!ASN1_STRING_set(ret, NULL, t->length + 2))
return NULL;
+ str = (char *)ret->data;
/* Work out the century and prepend */
- str = (char *)t->data;
- if (*str >= '5') strcpy(str, "19");
+ if (t->data[0] >= '5') strcpy(str, "19");
else strcpy(str, "20");
strcat(str, (char *)t->data);