diff options
Diffstat (limited to 'src/lib/libcrypto/pem/pem_pkey.c')
| -rw-r--r-- | src/lib/libcrypto/pem/pem_pkey.c | 10 |
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 | } |
| 150 | LCRYPTO_ALIAS(PEM_read_bio_PrivateKey); | ||
| 150 | 151 | ||
| 151 | int | 152 | int |
| 152 | PEM_write_bio_PrivateKey(BIO *bp, EVP_PKEY *x, const EVP_CIPHER *enc, | 153 | PEM_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 | } |
| 163 | LCRYPTO_ALIAS(PEM_write_bio_PrivateKey); | ||
| 162 | 164 | ||
| 163 | int | 165 | int |
| 164 | PEM_write_bio_PrivateKey_traditional(BIO *bp, EVP_PKEY *x, | 166 | PEM_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 | } |
| 177 | LCRYPTO_ALIAS(PEM_write_bio_PrivateKey_traditional); | ||
| 175 | 178 | ||
| 176 | EVP_PKEY * | 179 | EVP_PKEY * |
| 177 | PEM_read_bio_Parameters(BIO *bp, EVP_PKEY **x) | 180 | PEM_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 | } |
| 218 | LCRYPTO_ALIAS(PEM_read_bio_Parameters); | ||
| 215 | 219 | ||
| 216 | int | 220 | int |
| 217 | PEM_write_bio_Parameters(BIO *bp, EVP_PKEY *x) | 221 | PEM_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 | } |
| 233 | LCRYPTO_ALIAS(PEM_write_bio_Parameters); | ||
| 229 | 234 | ||
| 230 | EVP_PKEY * | 235 | EVP_PKEY * |
| 231 | PEM_read_PrivateKey(FILE *fp, EVP_PKEY **x, pem_password_cb *cb, void *u) | 236 | PEM_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 | } |
| 250 | LCRYPTO_ALIAS(PEM_read_PrivateKey); | ||
| 245 | 251 | ||
| 246 | int | 252 | int |
| 247 | PEM_write_PrivateKey(FILE *fp, EVP_PKEY *x, const EVP_CIPHER *enc, | 253 | PEM_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 | 267 | LCRYPTO_ALIAS(PEM_write_PrivateKey); | |
