projects
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
11ba084
)
Oops, use right function name...
author
Dr. Stephen Henson
<steve@openssl.org>
Tue, 14 Jul 2009 15:14:39 +0000
(15:14 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Tue, 14 Jul 2009 15:14:39 +0000
(15:14 +0000)
apps/x509.c
patch
|
blob
|
history
diff --git
a/apps/x509.c
b/apps/x509.c
index af534f63d1f1f06a198c3ef0cc56b9a47076fea7..f4198d97be0ba82a6d4f89ac16bc9468c3d78749 100644
(file)
--- a/
apps/x509.c
+++ b/
apps/x509.c
@@
-626,7
+626,7
@@
bad:
if (!X509_set_subject_name(x,req->req_info->subject)) goto end;
X509_gmtime_adj(X509_get_notBefore(x),0);
if (!X509_set_subject_name(x,req->req_info->subject)) goto end;
X509_gmtime_adj(X509_get_notBefore(x),0);
- X509_
gm
time_adj_ex(X509_get_notAfter(x),days, 0, NULL);
+ X509_time_adj_ex(X509_get_notAfter(x),days, 0, NULL);
pkey = X509_REQ_get_pubkey(req);
X509_set_pubkey(x,pkey);
pkey = X509_REQ_get_pubkey(req);
X509_set_pubkey(x,pkey);
@@
-1147,7
+1147,7
@@
static int x509_certify(X509_STORE *ctx, char *CAfile, const EVP_MD *digest,
goto end;
/* hardwired expired */
goto end;
/* hardwired expired */
- if (X509_
gmtime_adj(X509_get_notAfter(x),(long)60*60*24*days
) == NULL)
+ if (X509_
time_adj_ex(X509_get_notAfter(x),days, 0, NULL
) == NULL)
goto end;
if (clrext)
goto end;
if (clrext)