Teach PEM_read_bio_PrivateKey about libctx
authorMatt Caswell <matt@openssl.org>
Mon, 6 Apr 2020 17:21:50 +0000 (18:21 +0100)
committerMatt Caswell <matt@openssl.org>
Wed, 15 Apr 2020 10:24:13 +0000 (11:24 +0100)
commit1531241c54b36be74967753cdea78c16831f7aa5
treefdb87950cae868810cb58c3efbc6743f32c23561
parent8755b085244c792bc8a78b38984b0f4061bc9f91
Teach PEM_read_bio_PrivateKey about libctx

Now that d2i_PrivateKey_ex() and other similar functions exist we should
use it when loading a PEM PrivateKey.

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/11494)
crypto/pem/pem_pkey.c
include/openssl/pem.h
util/libcrypto.num