summaryrefslogtreecommitdiff
path: root/lib/libcrypto/x509/x509_set.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libcrypto/x509/x509_set.c')
-rw-r--r--lib/libcrypto/x509/x509_set.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/libcrypto/x509/x509_set.c b/lib/libcrypto/x509/x509_set.c
index 06ff12c1467..becdaf6ce5b 100644
--- a/lib/libcrypto/x509/x509_set.c
+++ b/lib/libcrypto/x509/x509_set.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: x509_set.c,v 1.15 2018/02/22 17:06:42 jsing Exp $ */
+/* $OpenBSD: x509_set.c,v 1.16 2018/02/22 17:09:28 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -69,6 +69,12 @@ X509_get0_extensions(const X509 *x)
return x->cert_info->extensions;
}
+const X509_ALGOR *
+X509_get0_tbs_sigalg(const X509 *x)
+{
+ return x->cert_info->signature;
+}
+
int
X509_set_version(X509 *x, long version)
{