From: Dr. Stephen Henson Date: Sat, 12 Sep 2009 23:09:45 +0000 (+0000) Subject: PR: 1411 X-Git-Tag: OpenSSL-fips-2_0-rc1~1538 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=33130b07ce68e7290b1947feeca0c629fa669c2c;ds=sidebyside PR: 1411 Submitted by: steve@openssl.org Allow use of trusted certificates in SSL_CTX_use_chain_file() --- diff --git a/ssl/ssl_rsa.c b/ssl/ssl_rsa.c index 27113eba50..c0960b5712 100644 --- a/ssl/ssl_rsa.c +++ b/ssl/ssl_rsa.c @@ -723,7 +723,7 @@ int SSL_CTX_use_certificate_chain_file(SSL_CTX *ctx, const char *file) goto end; } - x=PEM_read_bio_X509(in,NULL,ctx->default_passwd_callback,ctx->default_passwd_callback_userdata); + x=PEM_read_bio_X509_AUX(in,NULL,ctx->default_passwd_callback,ctx->default_passwd_callback_userdata); if (x == NULL) { SSLerr(SSL_F_SSL_CTX_USE_CERTIFICATE_CHAIN_FILE,ERR_R_PEM_LIB);