From d1ff925e1bf7b1388167e2c45e4399c0bfa2e122 Mon Sep 17 00:00:00 2001 From: jsing <> Date: Sat, 17 Mar 2018 14:55:39 +0000 Subject: Provide X509_PUBKEY_get0() by splitting X509_PUBKEY_get() and turning it into a wrapper that calls X509_PUBKEY_get0() and up refs. --- src/lib/libcrypto/x509/x509.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lib/libcrypto/x509') diff --git a/src/lib/libcrypto/x509/x509.h b/src/lib/libcrypto/x509/x509.h index 2b096ed3b3..a4aa849e31 100644 --- a/src/lib/libcrypto/x509/x509.h +++ b/src/lib/libcrypto/x509/x509.h @@ -1,4 +1,4 @@ -/* $OpenBSD: x509.h,v 1.42 2018/03/17 14:33:20 jsing Exp $ */ +/* $OpenBSD: x509.h,v 1.43 2018/03/17 14:55:39 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -806,6 +806,7 @@ extern const ASN1_ITEM X509_PUBKEY_it; int X509_PUBKEY_set(X509_PUBKEY **x, EVP_PKEY *pkey); EVP_PKEY * X509_PUBKEY_get(X509_PUBKEY *key); +EVP_PKEY * X509_PUBKEY_get0(X509_PUBKEY *key); int X509_get_pubkey_parameters(EVP_PKEY *pkey, STACK_OF(X509) *chain); int i2d_PUBKEY(EVP_PKEY *a,unsigned char **pp); -- cgit v1.2.3-55-g6feb