diff options
Diffstat (limited to 'src/lib/libcrypto/asn1')
-rw-r--r-- | src/lib/libcrypto/asn1/a_pkey.c | 5 | ||||
-rw-r--r-- | src/lib/libcrypto/asn1/a_pubkey.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/lib/libcrypto/asn1/a_pkey.c b/src/lib/libcrypto/asn1/a_pkey.c index 1e8ebc913f..a730728076 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.7 2023/11/19 15:46:09 tb Exp $ */ | 1 | /* $OpenBSD: a_pkey.c,v 1.8 2024/04/09 13:52:41 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 | * |
@@ -115,6 +115,7 @@ d2i_PrivateKey(int type, EVP_PKEY **a, const unsigned char **pp, long length) | |||
115 | EVP_PKEY_free(ret); | 115 | EVP_PKEY_free(ret); |
116 | return (NULL); | 116 | return (NULL); |
117 | } | 117 | } |
118 | LCRYPTO_ALIAS(d2i_PrivateKey); | ||
118 | 119 | ||
119 | int | 120 | int |
120 | i2d_PrivateKey(EVP_PKEY *a, unsigned char **pp) | 121 | i2d_PrivateKey(EVP_PKEY *a, unsigned char **pp) |
@@ -131,6 +132,7 @@ i2d_PrivateKey(EVP_PKEY *a, unsigned char **pp) | |||
131 | ASN1error(ASN1_R_UNSUPPORTED_PUBLIC_KEY_TYPE); | 132 | ASN1error(ASN1_R_UNSUPPORTED_PUBLIC_KEY_TYPE); |
132 | return (-1); | 133 | return (-1); |
133 | } | 134 | } |
135 | LCRYPTO_ALIAS(i2d_PrivateKey); | ||
134 | 136 | ||
135 | /* This works like d2i_PrivateKey() except it automatically works out the type */ | 137 | /* This works like d2i_PrivateKey() except it automatically works out the type */ |
136 | 138 | ||
@@ -176,3 +178,4 @@ d2i_AutoPrivateKey(EVP_PKEY **a, const unsigned char **pp, long length) | |||
176 | sk_ASN1_TYPE_pop_free(inkey, ASN1_TYPE_free); | 178 | sk_ASN1_TYPE_pop_free(inkey, ASN1_TYPE_free); |
177 | return d2i_PrivateKey(keytype, a, pp, length); | 179 | return d2i_PrivateKey(keytype, a, pp, length); |
178 | } | 180 | } |
181 | LCRYPTO_ALIAS(d2i_AutoPrivateKey); | ||
diff --git a/src/lib/libcrypto/asn1/a_pubkey.c b/src/lib/libcrypto/asn1/a_pubkey.c index 5e022d34ec..544f3d2cf0 100644 --- a/src/lib/libcrypto/asn1/a_pubkey.c +++ b/src/lib/libcrypto/asn1/a_pubkey.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: a_pubkey.c,v 1.6 2023/07/07 19:37:52 beck Exp $ */ | 1 | /* $OpenBSD: a_pubkey.c,v 1.7 2024/04/09 13:52:41 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 | * |
@@ -136,6 +136,7 @@ d2i_PublicKey(int type, EVP_PKEY **a, const unsigned char **pp, long length) | |||
136 | EVP_PKEY_free(ret); | 136 | EVP_PKEY_free(ret); |
137 | return (NULL); | 137 | return (NULL); |
138 | } | 138 | } |
139 | LCRYPTO_ALIAS(d2i_PublicKey); | ||
139 | 140 | ||
140 | int | 141 | int |
141 | i2d_PublicKey(EVP_PKEY *a, unsigned char **pp) | 142 | i2d_PublicKey(EVP_PKEY *a, unsigned char **pp) |
@@ -158,3 +159,4 @@ i2d_PublicKey(EVP_PKEY *a, unsigned char **pp) | |||
158 | return (-1); | 159 | return (-1); |
159 | } | 160 | } |
160 | } | 161 | } |
162 | LCRYPTO_ALIAS(i2d_PublicKey); | ||