summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/pem/pem_pkey.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/pem/pem_pkey.c')
-rw-r--r--src/lib/libcrypto/pem/pem_pkey.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/lib/libcrypto/pem/pem_pkey.c b/src/lib/libcrypto/pem/pem_pkey.c
index fa2d38f566..2961952139 100644
--- a/src/lib/libcrypto/pem/pem_pkey.c
+++ b/src/lib/libcrypto/pem/pem_pkey.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: pem_pkey.c,v 1.26 2022/11/26 16:08:53 tb Exp $ */ 1/* $OpenBSD: pem_pkey.c,v 1.27 2023/07/07 13:40:44 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 *
@@ -147,6 +147,7 @@ err:
147 freezero(data, len); 147 freezero(data, len);
148 return (ret); 148 return (ret);
149} 149}
150LCRYPTO_ALIAS(PEM_read_bio_PrivateKey);
150 151
151int 152int
152PEM_write_bio_PrivateKey(BIO *bp, EVP_PKEY *x, const EVP_CIPHER *enc, 153PEM_write_bio_PrivateKey(BIO *bp, EVP_PKEY *x, const EVP_CIPHER *enc,
@@ -159,6 +160,7 @@ PEM_write_bio_PrivateKey(BIO *bp, EVP_PKEY *x, const EVP_CIPHER *enc,
159 return PEM_write_bio_PrivateKey_traditional(bp, x, enc, kstr, klen, cb, 160 return PEM_write_bio_PrivateKey_traditional(bp, x, enc, kstr, klen, cb,
160 u); 161 u);
161} 162}
163LCRYPTO_ALIAS(PEM_write_bio_PrivateKey);
162 164
163int 165int
164PEM_write_bio_PrivateKey_traditional(BIO *bp, EVP_PKEY *x, 166PEM_write_bio_PrivateKey_traditional(BIO *bp, EVP_PKEY *x,
@@ -172,6 +174,7 @@ PEM_write_bio_PrivateKey_traditional(BIO *bp, EVP_PKEY *x,
172 return PEM_ASN1_write_bio((i2d_of_void *)i2d_PrivateKey, 174 return PEM_ASN1_write_bio((i2d_of_void *)i2d_PrivateKey,
173 pem_str, bp, x, enc, kstr, klen, cb, u); 175 pem_str, bp, x, enc, kstr, klen, cb, u);
174} 176}
177LCRYPTO_ALIAS(PEM_write_bio_PrivateKey_traditional);
175 178
176EVP_PKEY * 179EVP_PKEY *
177PEM_read_bio_Parameters(BIO *bp, EVP_PKEY **x) 180PEM_read_bio_Parameters(BIO *bp, EVP_PKEY **x)
@@ -212,6 +215,7 @@ err:
212 free(data); 215 free(data);
213 return (ret); 216 return (ret);
214} 217}
218LCRYPTO_ALIAS(PEM_read_bio_Parameters);
215 219
216int 220int
217PEM_write_bio_Parameters(BIO *bp, EVP_PKEY *x) 221PEM_write_bio_Parameters(BIO *bp, EVP_PKEY *x)
@@ -226,6 +230,7 @@ PEM_write_bio_Parameters(BIO *bp, EVP_PKEY *x)
226 return PEM_ASN1_write_bio((i2d_of_void *)x->ameth->param_encode, 230 return PEM_ASN1_write_bio((i2d_of_void *)x->ameth->param_encode,
227 pem_str, bp, x, NULL, NULL, 0, 0, NULL); 231 pem_str, bp, x, NULL, NULL, 0, 0, NULL);
228} 232}
233LCRYPTO_ALIAS(PEM_write_bio_Parameters);
229 234
230EVP_PKEY * 235EVP_PKEY *
231PEM_read_PrivateKey(FILE *fp, EVP_PKEY **x, pem_password_cb *cb, void *u) 236PEM_read_PrivateKey(FILE *fp, EVP_PKEY **x, pem_password_cb *cb, void *u)
@@ -242,6 +247,7 @@ PEM_read_PrivateKey(FILE *fp, EVP_PKEY **x, pem_password_cb *cb, void *u)
242 BIO_free(b); 247 BIO_free(b);
243 return (ret); 248 return (ret);
244} 249}
250LCRYPTO_ALIAS(PEM_read_PrivateKey);
245 251
246int 252int
247PEM_write_PrivateKey(FILE *fp, EVP_PKEY *x, const EVP_CIPHER *enc, 253PEM_write_PrivateKey(FILE *fp, EVP_PKEY *x, const EVP_CIPHER *enc,
@@ -258,4 +264,4 @@ PEM_write_PrivateKey(FILE *fp, EVP_PKEY *x, const EVP_CIPHER *enc,
258 BIO_free(b); 264 BIO_free(b);
259 return ret; 265 return ret;
260} 266}
261 267LCRYPTO_ALIAS(PEM_write_PrivateKey);