summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509/x509_set.c
diff options
context:
space:
mode:
authorjsing <>2018-02-17 15:50:42 +0000
committerjsing <>2018-02-17 15:50:42 +0000
commit03a712df0b3b84b1cbf608cae685e0abab3d4820 (patch)
treea1a8d00a0481732fb7c3778126076a12781f423c /src/lib/libcrypto/x509/x509_set.c
parent3a5371ec683ea0509dc8876c66b1132bc8eab086 (diff)
downloadopenbsd-03a712df0b3b84b1cbf608cae685e0abab3d4820.tar.gz
openbsd-03a712df0b3b84b1cbf608cae685e0abab3d4820.tar.bz2
openbsd-03a712df0b3b84b1cbf608cae685e0abab3d4820.zip
Provide X509_get0_extensions() and X509_get0_signature()
Diffstat (limited to 'src/lib/libcrypto/x509/x509_set.c')
-rw-r--r--src/lib/libcrypto/x509/x509_set.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/libcrypto/x509/x509_set.c b/src/lib/libcrypto/x509/x509_set.c
index e60d6f967a..a43f009930 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.13 2018/02/14 16:57:25 jsing Exp $ */ 1/* $OpenBSD: x509_set.c,v 1.14 2018/02/17 15:50: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 *
@@ -63,6 +63,12 @@
63#include <openssl/objects.h> 63#include <openssl/objects.h>
64#include <openssl/x509.h> 64#include <openssl/x509.h>
65 65
66const STACK_OF(X509_EXTENSION) *
67X509_get0_extensions(const X509 *x)
68{
69 return x->cert_info->extensions;
70}
71
66int 72int
67X509_set_version(X509 *x, long version) 73X509_set_version(X509 *x, long version)
68{ 74{