From 1fc0ba2260ec4438c3af3412f4a310a85d4bf02d Mon Sep 17 00:00:00 2001 From: jsing <> Date: Thu, 22 Feb 2018 17:09:28 +0000 Subject: Provide X509_get0_tbs_sigalg(). --- src/lib/libcrypto/x509/x509_set.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/lib/libcrypto/x509/x509_set.c') 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 @@ -/* $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) { -- cgit v1.2.3-55-g6feb