Openssl 3.0.0. EVP_PKEY RSA is NULL

Dr Paul Dale pauli at openssl.org
Wed Sep 15 00:04:15 UTC 2021



On 15/9/21 9:19 am, Ken Goldman wrote:
>     irc = EVP_PKEY_fromdata_init(ctx);
>     irc = EVP_PKEY_fromdata(ctx, (EVP_PKEY **)rsa_pub_key, /* freed by 
> caller */
>                 EVP_PKEY_PUBLIC_KEY, params);

Do you mean :
     irc = EVP_PKEY_fromdata(ctx, &rsa_pub_key, EVP_PKEY_PUBLIC_KEY, 
params);
here?

The cast looks wrong.


Pauli



More information about the openssl-users mailing list