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, 1 insertions, 4 deletions
diff --git a/src/lib/libcrypto/asn1/a_pkey.c b/src/lib/libcrypto/asn1/a_pkey.c
index 595b226051..6e715d4f9e 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.5 2023/07/05 21:23:36 beck Exp $ */ 1/* $OpenBSD: a_pkey.c,v 1.6 2023/07/07 19:37:52 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,7 +123,6 @@ 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}
126LCRYPTO_ALIAS(d2i_PrivateKey);
127 126
128int 127int
129i2d_PrivateKey(EVP_PKEY *a, unsigned char **pp) 128i2d_PrivateKey(EVP_PKEY *a, unsigned char **pp)
@@ -140,7 +139,6 @@ i2d_PrivateKey(EVP_PKEY *a, unsigned char **pp)
140 ASN1error(ASN1_R_UNSUPPORTED_PUBLIC_KEY_TYPE); 139 ASN1error(ASN1_R_UNSUPPORTED_PUBLIC_KEY_TYPE);
141 return (-1); 140 return (-1);
142} 141}
143LCRYPTO_ALIAS(i2d_PrivateKey);
144 142
145/* This works like d2i_PrivateKey() except it automatically works out the type */ 143/* This works like d2i_PrivateKey() except it automatically works out the type */
146 144
@@ -186,4 +184,3 @@ d2i_AutoPrivateKey(EVP_PKEY **a, const unsigned char **pp, long length)
186 sk_ASN1_TYPE_pop_free(inkey, ASN1_TYPE_free); 184 sk_ASN1_TYPE_pop_free(inkey, ASN1_TYPE_free);
187 return d2i_PrivateKey(keytype, a, pp, length); 185 return d2i_PrivateKey(keytype, a, pp, length);
188} 186}
189LCRYPTO_ALIAS(d2i_AutoPrivateKey);