summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_rsa.c
diff options
context:
space:
mode:
authortb <>2021-11-29 18:36:27 +0000
committertb <>2021-11-29 18:36:27 +0000
commitaa4ce0135dd3bc544775ea25bff216e87486ec80 (patch)
tree7fc341ce5f1fafb21e289e3a0cccd5326381410c /src/lib/libssl/ssl_rsa.c
parent0b1a9bd71e10a7b1f57eb401f99c29dd766eb047 (diff)
downloadopenbsd-aa4ce0135dd3bc544775ea25bff216e87486ec80.tar.gz
openbsd-aa4ce0135dd3bc544775ea25bff216e87486ec80.tar.bz2
openbsd-aa4ce0135dd3bc544775ea25bff216e87486ec80.zip
Stop using BIO_s_file_inernal() in libssl.
BIO_s_file_internal() should never have leaked out of libcrypto, but it did. As a first step of getting rid of it, stop using it internally. ok jsing
Diffstat (limited to 'src/lib/libssl/ssl_rsa.c')
-rw-r--r--src/lib/libssl/ssl_rsa.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/libssl/ssl_rsa.c b/src/lib/libssl/ssl_rsa.c
index eb60c2a372..e25b9387d7 100644
--- a/src/lib/libssl/ssl_rsa.c
+++ b/src/lib/libssl/ssl_rsa.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_rsa.c,v 1.36 2021/11/26 16:40:02 tb Exp $ */ 1/* $OpenBSD: ssl_rsa.c,v 1.37 2021/11/29 18:36:27 tb 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 *
@@ -91,7 +91,7 @@ SSL_use_certificate_file(SSL *ssl, const char *file, int type)
91 int ret = 0; 91 int ret = 0;
92 X509 *x = NULL; 92 X509 *x = NULL;
93 93
94 in = BIO_new(BIO_s_file_internal()); 94 in = BIO_new(BIO_s_file());
95 if (in == NULL) { 95 if (in == NULL) {
96 SSLerror(ssl, ERR_R_BUF_LIB); 96 SSLerror(ssl, ERR_R_BUF_LIB);
97 goto end; 97 goto end;
@@ -214,7 +214,7 @@ SSL_use_RSAPrivateKey_file(SSL *ssl, const char *file, int type)
214 BIO *in; 214 BIO *in;
215 RSA *rsa = NULL; 215 RSA *rsa = NULL;
216 216
217 in = BIO_new(BIO_s_file_internal()); 217 in = BIO_new(BIO_s_file());
218 if (in == NULL) { 218 if (in == NULL) {
219 SSLerror(ssl, ERR_R_BUF_LIB); 219 SSLerror(ssl, ERR_R_BUF_LIB);
220 goto end; 220 goto end;
@@ -283,7 +283,7 @@ SSL_use_PrivateKey_file(SSL *ssl, const char *file, int type)
283 BIO *in; 283 BIO *in;
284 EVP_PKEY *pkey = NULL; 284 EVP_PKEY *pkey = NULL;
285 285
286 in = BIO_new(BIO_s_file_internal()); 286 in = BIO_new(BIO_s_file());
287 if (in == NULL) { 287 if (in == NULL) {
288 SSLerror(ssl, ERR_R_BUF_LIB); 288 SSLerror(ssl, ERR_R_BUF_LIB);
289 goto end; 289 goto end;
@@ -406,7 +406,7 @@ SSL_CTX_use_certificate_file(SSL_CTX *ctx, const char *file, int type)
406 int ret = 0; 406 int ret = 0;
407 X509 *x = NULL; 407 X509 *x = NULL;
408 408
409 in = BIO_new(BIO_s_file_internal()); 409 in = BIO_new(BIO_s_file());
410 if (in == NULL) { 410 if (in == NULL) {
411 SSLerrorx(ERR_R_BUF_LIB); 411 SSLerrorx(ERR_R_BUF_LIB);
412 goto end; 412 goto end;
@@ -487,7 +487,7 @@ SSL_CTX_use_RSAPrivateKey_file(SSL_CTX *ctx, const char *file, int type)
487 BIO *in; 487 BIO *in;
488 RSA *rsa = NULL; 488 RSA *rsa = NULL;
489 489
490 in = BIO_new(BIO_s_file_internal()); 490 in = BIO_new(BIO_s_file());
491 if (in == NULL) { 491 if (in == NULL) {
492 SSLerrorx(ERR_R_BUF_LIB); 492 SSLerrorx(ERR_R_BUF_LIB);
493 goto end; 493 goto end;
@@ -553,7 +553,7 @@ SSL_CTX_use_PrivateKey_file(SSL_CTX *ctx, const char *file, int type)
553 BIO *in; 553 BIO *in;
554 EVP_PKEY *pkey = NULL; 554 EVP_PKEY *pkey = NULL;
555 555
556 in = BIO_new(BIO_s_file_internal()); 556 in = BIO_new(BIO_s_file());
557 if (in == NULL) { 557 if (in == NULL) {
558 SSLerrorx(ERR_R_BUF_LIB); 558 SSLerrorx(ERR_R_BUF_LIB);
559 goto end; 559 goto end;
@@ -659,7 +659,7 @@ use_certificate_chain_file(const char *file, CERT *cert,
659 BIO *in; 659 BIO *in;
660 int ret = 0; 660 int ret = 0;
661 661
662 in = BIO_new(BIO_s_file_internal()); 662 in = BIO_new(BIO_s_file());
663 if (in == NULL) { 663 if (in == NULL) {
664 SSLerrorx(ERR_R_BUF_LIB); 664 SSLerrorx(ERR_R_BUF_LIB);
665 goto end; 665 goto end;