summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509/x509_set.c
diff options
context:
space:
mode:
authortb <>2021-10-21 13:02:01 +0000
committertb <>2021-10-21 13:02:01 +0000
commitcaeb6082a7dcc89548f640d69f605cc496938309 (patch)
tree25a577afbd849c7c11bf24241591ca8c98b2709d /src/lib/libcrypto/x509/x509_set.c
parent6bbdef386209b363437824c0f6ffb9aedbd1d5db (diff)
downloadopenbsd-caeb6082a7dcc89548f640d69f605cc496938309.tar.gz
openbsd-caeb6082a7dcc89548f640d69f605cc496938309.tar.bz2
openbsd-caeb6082a7dcc89548f640d69f605cc496938309.zip
Prepare to provide X509_get_X509_PUBKEY() as a function.
ok jsing
Diffstat (limited to 'src/lib/libcrypto/x509/x509_set.c')
-rw-r--r--src/lib/libcrypto/x509/x509_set.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/libcrypto/x509/x509_set.c b/src/lib/libcrypto/x509/x509_set.c
index 1a4b583ab7..e086c021cd 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.17 2018/08/24 19:55:58 tb Exp $ */ 1/* $OpenBSD: x509_set.c,v 1.18 2021/10/21 13:02:01 tb 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 *
@@ -216,3 +216,11 @@ X509_get_signature_type(const X509 *x)
216{ 216{
217 return EVP_PKEY_type(OBJ_obj2nid(x->sig_alg->algorithm)); 217 return EVP_PKEY_type(OBJ_obj2nid(x->sig_alg->algorithm));
218} 218}
219
220#if defined(LIBRESSL_NEW_API)
221X509_PUBKEY *
222X509_get_X509_PUBKEY(const X509 *x)
223{
224 return x->cert_info->key;
225}
226#endif