diff options
Diffstat (limited to 'src/lib/libcrypto/x509/x509_set.c')
-rw-r--r-- | src/lib/libcrypto/x509/x509_set.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/lib/libcrypto/x509/x509_set.c b/src/lib/libcrypto/x509/x509_set.c index a43f009930..06ff12c146 100644 --- a/src/lib/libcrypto/x509/x509_set.c +++ b/src/lib/libcrypto/x509/x509_set.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509_set.c,v 1.14 2018/02/17 15:50:42 jsing Exp $ */ | 1 | /* $OpenBSD: x509_set.c,v 1.15 2018/02/22 17:06:42 jsing Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -147,6 +147,12 @@ X509_set_notBefore(X509 *x, const ASN1_TIME *tm) | |||
147 | return (in != NULL); | 147 | return (in != NULL); |
148 | } | 148 | } |
149 | 149 | ||
150 | int | ||
151 | X509_set1_notBefore(X509 *x, const ASN1_TIME *tm) | ||
152 | { | ||
153 | return X509_set_notBefore(x, tm); | ||
154 | } | ||
155 | |||
150 | const ASN1_TIME * | 156 | const ASN1_TIME * |
151 | X509_get0_notAfter(const X509 *x) | 157 | X509_get0_notAfter(const X509 *x) |
152 | { | 158 | { |
@@ -180,6 +186,12 @@ X509_set_notAfter(X509 *x, const ASN1_TIME *tm) | |||
180 | } | 186 | } |
181 | 187 | ||
182 | int | 188 | int |
189 | X509_set1_notAfter(X509 *x, const ASN1_TIME *tm) | ||
190 | { | ||
191 | return X509_set_notAfter(x, tm); | ||
192 | } | ||
193 | |||
194 | int | ||
183 | X509_set_pubkey(X509 *x, EVP_PKEY *pkey) | 195 | X509_set_pubkey(X509 *x, EVP_PKEY *pkey) |
184 | { | 196 | { |
185 | if ((x == NULL) || (x->cert_info == NULL)) | 197 | if ((x == NULL) || (x->cert_info == NULL)) |