-/* $OpenBSD: x509.h,v 1.38 2018/02/22 17:05:35 jsing Exp $ */
+/* $OpenBSD: x509.h,v 1.39 2018/02/22 17:06:42 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
int X509_set_subject_name(X509 *x, X509_NAME *name);
X509_NAME * X509_get_subject_name(X509 *a);
int X509_set_notBefore(X509 *x, const ASN1_TIME *tm);
+int X509_set1_notBefore(X509 *x, const ASN1_TIME *tm);
int X509_set_notAfter(X509 *x, const ASN1_TIME *tm);
+int X509_set1_notAfter(X509 *x, const ASN1_TIME *tm);
const ASN1_TIME *X509_get0_notBefore(const X509 *x);
ASN1_TIME *X509_getm_notBefore(const X509 *x);
const ASN1_TIME *X509_get0_notAfter(const X509 *x);
-/* $OpenBSD: x509_set.c,v 1.14 2018/02/17 15:50:42 jsing Exp $ */
+/* $OpenBSD: x509_set.c,v 1.15 2018/02/22 17:06:42 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
return (in != NULL);
}
+int
+X509_set1_notBefore(X509 *x, const ASN1_TIME *tm)
+{
+ return X509_set_notBefore(x, tm);
+}
+
const ASN1_TIME *
X509_get0_notAfter(const X509 *x)
{
return (in != NULL);
}
+int
+X509_set1_notAfter(X509 *x, const ASN1_TIME *tm)
+{
+ return X509_set_notAfter(x, tm);
+}
+
int
X509_set_pubkey(X509 *x, EVP_PKEY *pkey)
{