2222/**
2323 * @brief create a private key object according to input private key
2424 */
25- EVP_PKEY * __EVP_PKEY_new (EVP_PKEY * ipk , void * rngctx )
25+ EVP_PKEY * __EVP_PKEY_new (EVP_PKEY * ipk )
2626{
2727 int ret ;
2828 EVP_PKEY * pkey ;
@@ -39,7 +39,7 @@ EVP_PKEY* __EVP_PKEY_new(EVP_PKEY *ipk, void *rngctx)
3939 pkey -> method = EVP_PKEY_method ();
4040 }
4141
42- ret = EVP_PKEY_METHOD_CALL (new , pkey , ipk , rngctx );
42+ ret = EVP_PKEY_METHOD_CALL (new , pkey , ipk );
4343 if (ret ) {
4444 SSL_DEBUG (SSL_PKEY_ERROR_LEVEL , "EVP_PKEY_METHOD_CALL(new) return %d" , ret );
4545 goto failed ;
@@ -56,9 +56,9 @@ EVP_PKEY* __EVP_PKEY_new(EVP_PKEY *ipk, void *rngctx)
5656/**
5757 * @brief create a private key object
5858 */
59- EVP_PKEY * EVP_PKEY_new (void * rngctx )
59+ EVP_PKEY * EVP_PKEY_new (void )
6060{
61- return __EVP_PKEY_new (NULL , rngctx );
61+ return __EVP_PKEY_new (NULL );
6262}
6363
6464/**
@@ -80,7 +80,7 @@ void EVP_PKEY_free(EVP_PKEY *pkey)
8080EVP_PKEY * d2i_PrivateKey (int type ,
8181 EVP_PKEY * * a ,
8282 const unsigned char * * pp ,
83- long length , void * rngctx )
83+ long length )
8484{
8585 int m = 0 ;
8686 int ret ;
@@ -93,7 +93,7 @@ EVP_PKEY *d2i_PrivateKey(int type,
9393 if (a && * a ) {
9494 pkey = * a ;
9595 } else {
96- pkey = EVP_PKEY_new (rngctx );
96+ pkey = EVP_PKEY_new ();
9797 if (!pkey ) {
9898 SSL_DEBUG (SSL_PKEY_ERROR_LEVEL , "EVP_PKEY_new() return NULL" );
9999 goto failed1 ;
@@ -167,7 +167,7 @@ int SSL_CTX_use_PrivateKey_ASN1(int type, SSL_CTX *ctx,
167167 int ret ;
168168 EVP_PKEY * pk ;
169169
170- pk = d2i_PrivateKey (0 , NULL , & d , len , ctx -> rngctx );
170+ pk = d2i_PrivateKey (0 , NULL , & d , len );
171171 if (!pk ) {
172172 SSL_DEBUG (SSL_PKEY_ERROR_LEVEL , "d2i_PrivateKey() return NULL" );
173173 goto failed1 ;
@@ -196,7 +196,7 @@ int SSL_use_PrivateKey_ASN1(int type, SSL *ssl,
196196 int ret ;
197197 EVP_PKEY * pk ;
198198
199- pk = d2i_PrivateKey (0 , NULL , & d , len , ssl -> ctx -> rngctx );
199+ pk = d2i_PrivateKey (0 , NULL , & d , len );
200200 if (!pk ) {
201201 SSL_DEBUG (SSL_PKEY_ERROR_LEVEL , "d2i_PrivateKey() return NULL" );
202202 goto failed1 ;
0 commit comments