diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2001-02-04 04:04:43 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2001-02-04 04:04:43 +0100 |
commit | 2b916952a8de5b1197169801925dad74aa3360cd (patch) | |
tree | 3da79abd19c83d3b089374ec34a048bf1711a55e /crypto/asn1/a_time.c | |
parent | Various OCSP responder utility functions. (diff) | |
download | openssl-2b916952a8de5b1197169801925dad74aa3360cd.tar.xz openssl-2b916952a8de5b1197169801925dad74aa3360cd.zip |
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/a_time.c')
-rw-r--r-- | crypto/asn1/a_time.c | 4 |
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); |