Enable export_to functions to have access to the libctx
authorMatt Caswell <matt@openssl.org>
Mon, 6 Apr 2020 15:05:24 +0000 (16:05 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 9 Apr 2020 11:24:24 +0000 (12:24 +0100)
commit76e23fc50b2dcf9b4d33824102ce5ae03f8faea3
treeb62d1f7553025c0d7cd44932b99e2d0060bd5999
parent8519b244bc6c38f265bf9bad80c52bd7c0ff469f
Enable export_to functions to have access to the libctx

The EC export_to function calls EC_POINT_point2buf that can later
generate a random number in some circumstances. Therefore we pass in a
BN_CTX associated with the library context. This means we have to change
the export_to function signature to accept the library context.

Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/11493)
crypto/dh/dh_ameth.c
crypto/dsa/dsa_ameth.c
crypto/ec/ec_ameth.c
crypto/ec/ecx_meth.c
crypto/evp/p_lib.c
crypto/rsa/rsa_ameth.c
include/crypto/asn1.h