summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509/x509_set.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/x509/x509_set.c')
-rw-r--r--src/lib/libcrypto/x509/x509_set.c14
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
150int
151X509_set1_notBefore(X509 *x, const ASN1_TIME *tm)
152{
153 return X509_set_notBefore(x, tm);
154}
155
150const ASN1_TIME * 156const ASN1_TIME *
151X509_get0_notAfter(const X509 *x) 157X509_get0_notAfter(const X509 *x)
152{ 158{
@@ -180,6 +186,12 @@ X509_set_notAfter(X509 *x, const ASN1_TIME *tm)
180} 186}
181 187
182int 188int
189X509_set1_notAfter(X509 *x, const ASN1_TIME *tm)
190{
191 return X509_set_notAfter(x, tm);
192}
193
194int
183X509_set_pubkey(X509 *x, EVP_PKEY *pkey) 195X509_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))