From 568ce3a583a17c33feacbf5028ece9f7f0680478 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Fri, 19 Aug 2016 12:39:57 +0100 Subject: Constify certificate and CRL time routines. Update certificate and CRL time routines to match new standard. Reviewed-by: Rich Salz --- apps/apps.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/apps.c') diff --git a/apps/apps.c b/apps/apps.c index 1ce632f003..23c65698ff 100644 --- a/apps/apps.c +++ b/apps/apps.c @@ -2604,7 +2604,7 @@ int set_cert_times(X509 *x, const char *startdate, const char *enddate, goto err; } - if (!X509_set_notBefore(x, tm)) + if (!X509_set1_notBefore(x, tm)) goto err; if (enddate == NULL) { @@ -2614,7 +2614,7 @@ int set_cert_times(X509 *x, const char *startdate, const char *enddate, goto err; } - if (!X509_set_notAfter(x, tm)) + if (!X509_set1_notAfter(x, tm)) goto err; rv = 1; -- cgit v1.2.3