summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509/x509_set.c
diff options
context:
space:
mode:
authorjsing <>2018-02-22 17:09:28 +0000
committerjsing <>2018-02-22 17:09:28 +0000
commit1fc0ba2260ec4438c3af3412f4a310a85d4bf02d (patch)
treeeef4124ce405fa306117f3455374062b382b9f45 /src/lib/libcrypto/x509/x509_set.c
parent26cd94af21f5006f80cc6b25e56eb31b2431ee6a (diff)
downloadopenbsd-1fc0ba2260ec4438c3af3412f4a310a85d4bf02d.tar.gz
openbsd-1fc0ba2260ec4438c3af3412f4a310a85d4bf02d.tar.bz2
openbsd-1fc0ba2260ec4438c3af3412f4a310a85d4bf02d.zip
Provide X509_get0_tbs_sigalg().
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 06ff12c146..becdaf6ce5 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.15 2018/02/22 17:06:42 jsing Exp $ */ 1/* $OpenBSD: x509_set.c,v 1.16 2018/02/22 17:09:28 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 *
@@ -69,6 +69,12 @@ X509_get0_extensions(const X509 *x)
69 return x->cert_info->extensions; 69 return x->cert_info->extensions;
70} 70}
71 71
72const X509_ALGOR *
73X509_get0_tbs_sigalg(const X509 *x)
74{
75 return x->cert_info->signature;
76}
77
72int 78int
73X509_set_version(X509 *x, long version) 79X509_set_version(X509 *x, long version)
74{ 80{