diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2016-08-19 17:21:21 +0200 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2016-08-19 17:52:58 +0200 |
commit | dc047d31fa0c31872db8601a1b9fcd35f24d8589 (patch) | |
tree | 751aa4ab6e7c2344281f6f9f73130d07f650cee6 /apps/req.c | |
parent | Avoid duplicated code. (diff) | |
download | openssl-dc047d31fa0c31872db8601a1b9fcd35f24d8589.tar.xz openssl-dc047d31fa0c31872db8601a1b9fcd35f24d8589.zip |
Set certificate times in one function.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'apps/req.c')
-rw-r--r-- | apps/req.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/req.c b/apps/req.c index 112553b48e..bd18708e3a 100644 --- a/apps/req.c +++ b/apps/req.c @@ -616,9 +616,7 @@ int req_main(int argc, char **argv) if (!X509_set_issuer_name(x509ss, X509_REQ_get_subject_name(req))) goto end; - if (!X509_gmtime_adj(X509_get_notBefore(x509ss), 0)) - goto end; - if (!X509_time_adj_ex(X509_get_notAfter(x509ss), days, 0, NULL)) + if (!set_cert_times(x509ss, NULL, NULL, days)) goto end; if (!X509_set_subject_name (x509ss, X509_REQ_get_subject_name(req))) |