diff options
Diffstat (limited to 'src/lib/libcrypto/asn1/a_pkey.c')
| -rw-r--r-- | src/lib/libcrypto/asn1/a_pkey.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/libcrypto/asn1/a_pkey.c b/src/lib/libcrypto/asn1/a_pkey.c index c440861443..595b226051 100644 --- a/src/lib/libcrypto/asn1/a_pkey.c +++ b/src/lib/libcrypto/asn1/a_pkey.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: a_pkey.c,v 1.4 2022/11/26 16:08:50 tb Exp $ */ | 1 | /* $OpenBSD: a_pkey.c,v 1.5 2023/07/05 21:23:36 beck 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 | * |
| @@ -123,6 +123,7 @@ d2i_PrivateKey(int type, EVP_PKEY **a, const unsigned char **pp, long length) | |||
| 123 | EVP_PKEY_free(ret); | 123 | EVP_PKEY_free(ret); |
| 124 | return (NULL); | 124 | return (NULL); |
| 125 | } | 125 | } |
| 126 | LCRYPTO_ALIAS(d2i_PrivateKey); | ||
| 126 | 127 | ||
| 127 | int | 128 | int |
| 128 | i2d_PrivateKey(EVP_PKEY *a, unsigned char **pp) | 129 | i2d_PrivateKey(EVP_PKEY *a, unsigned char **pp) |
| @@ -139,6 +140,7 @@ i2d_PrivateKey(EVP_PKEY *a, unsigned char **pp) | |||
| 139 | ASN1error(ASN1_R_UNSUPPORTED_PUBLIC_KEY_TYPE); | 140 | ASN1error(ASN1_R_UNSUPPORTED_PUBLIC_KEY_TYPE); |
| 140 | return (-1); | 141 | return (-1); |
| 141 | } | 142 | } |
| 143 | LCRYPTO_ALIAS(i2d_PrivateKey); | ||
| 142 | 144 | ||
| 143 | /* This works like d2i_PrivateKey() except it automatically works out the type */ | 145 | /* This works like d2i_PrivateKey() except it automatically works out the type */ |
| 144 | 146 | ||
| @@ -184,3 +186,4 @@ d2i_AutoPrivateKey(EVP_PKEY **a, const unsigned char **pp, long length) | |||
| 184 | sk_ASN1_TYPE_pop_free(inkey, ASN1_TYPE_free); | 186 | sk_ASN1_TYPE_pop_free(inkey, ASN1_TYPE_free); |
| 185 | return d2i_PrivateKey(keytype, a, pp, length); | 187 | return d2i_PrivateKey(keytype, a, pp, length); |
| 186 | } | 188 | } |
| 189 | LCRYPTO_ALIAS(d2i_AutoPrivateKey); | ||
