summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/a_pkey.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/asn1/a_pkey.c')
-rw-r--r--src/lib/libcrypto/asn1/a_pkey.c5
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 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}
118LCRYPTO_ALIAS(d2i_PrivateKey);
118 119
119int 120int
120i2d_PrivateKey(EVP_PKEY *a, unsigned char **pp) 121i2d_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}
135LCRYPTO_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}
181LCRYPTO_ALIAS(d2i_AutoPrivateKey);