diff options
author | jsing <> | 2018-03-17 14:55:39 +0000 |
---|---|---|
committer | jsing <> | 2018-03-17 14:55:39 +0000 |
commit | 53236ab726f2cb84436bc0cc39769e610cad136d (patch) | |
tree | 5be15ff9269fc26dff6867c5918dcb7f2e3f9d19 /src/lib/libcrypto/x509 | |
parent | 5d52c81e051f774e2609496afe66914cc601d068 (diff) | |
download | openbsd-53236ab726f2cb84436bc0cc39769e610cad136d.tar.gz openbsd-53236ab726f2cb84436bc0cc39769e610cad136d.tar.bz2 openbsd-53236ab726f2cb84436bc0cc39769e610cad136d.zip |
Provide X509_PUBKEY_get0() by splitting X509_PUBKEY_get() and turning it
into a wrapper that calls X509_PUBKEY_get0() and up refs.
Diffstat (limited to 'src/lib/libcrypto/x509')
-rw-r--r-- | src/lib/libcrypto/x509/x509.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 @@ | |||
1 | /* $OpenBSD: x509.h,v 1.42 2018/03/17 14:33:20 jsing Exp $ */ | 1 | /* $OpenBSD: x509.h,v 1.43 2018/03/17 14:55:39 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 | * |
@@ -806,6 +806,7 @@ extern const ASN1_ITEM X509_PUBKEY_it; | |||
806 | 806 | ||
807 | int X509_PUBKEY_set(X509_PUBKEY **x, EVP_PKEY *pkey); | 807 | int X509_PUBKEY_set(X509_PUBKEY **x, EVP_PKEY *pkey); |
808 | EVP_PKEY * X509_PUBKEY_get(X509_PUBKEY *key); | 808 | EVP_PKEY * X509_PUBKEY_get(X509_PUBKEY *key); |
809 | EVP_PKEY * X509_PUBKEY_get0(X509_PUBKEY *key); | ||
809 | int X509_get_pubkey_parameters(EVP_PKEY *pkey, | 810 | int X509_get_pubkey_parameters(EVP_PKEY *pkey, |
810 | STACK_OF(X509) *chain); | 811 | STACK_OF(X509) *chain); |
811 | int i2d_PUBKEY(EVP_PKEY *a,unsigned char **pp); | 812 | int i2d_PUBKEY(EVP_PKEY *a,unsigned char **pp); |