-/* $OpenBSD: x509.h,v 1.70 2018/08/24 19:55:58 tb Exp $ */
+/* $OpenBSD: x509.h,v 1.71 2018/08/24 19:59:32 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
long X509_get_version(const X509 *x);
int X509_set_serialNumber(X509 *x, ASN1_INTEGER *serial);
ASN1_INTEGER * X509_get_serialNumber(X509 *x);
+const ASN1_INTEGER *X509_get0_serialNumber(const X509 *x);
int X509_set_issuer_name(X509 *x, X509_NAME *name);
X509_NAME * X509_get_issuer_name(const X509 *a);
int X509_set_subject_name(X509 *x, X509_NAME *name);
-/* $OpenBSD: x509_cmp.c,v 1.33 2018/05/18 19:24:08 tb Exp $ */
+/* $OpenBSD: x509_cmp.c,v 1.34 2018/08/24 19:59:32 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
return (a->cert_info->serialNumber);
}
+const ASN1_INTEGER *
+X509_get0_serialNumber(const X509 *a)
+{
+ return (a->cert_info->serialNumber);
+}
+
unsigned long
X509_subject_name_hash(X509 *x)
{