Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions ext/openssl/ossl_pkey_dh.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ static VALUE
ossl_dh_initialize_copy(VALUE self, VALUE other)
{
EVP_PKEY *pkey;
DH *dh, *dh_other;
DH *dh;
OSSL_3_const DH *dh_other;
const BIGNUM *pub, *priv;

TypedData_Get_Struct(self, EVP_PKEY, &ossl_evp_pkey_type, pkey);
Expand Down Expand Up @@ -318,7 +319,7 @@ ossl_dh_check_params(VALUE self)
ret = EVP_PKEY_param_check(pctx);
EVP_PKEY_CTX_free(pctx);
#else
DH *dh;
OSSL_3_const DH *dh;
int codes;

GetDH(self, dh);
Expand Down
3 changes: 2 additions & 1 deletion ext/openssl/ossl_pkey_dsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ static VALUE
ossl_dsa_initialize_copy(VALUE self, VALUE other)
{
EVP_PKEY *pkey;
DSA *dsa, *dsa_new;
OSSL_3_const DSA *dsa;
DSA *dsa_new;

TypedData_Get_Struct(self, EVP_PKEY, &ossl_evp_pkey_type, pkey);
if (pkey)
Expand Down
5 changes: 3 additions & 2 deletions ext/openssl/ossl_pkey_ec.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,8 @@ static VALUE
ossl_ec_key_initialize_copy(VALUE self, VALUE other)
{
EVP_PKEY *pkey;
EC_KEY *ec, *ec_new;
OSSL_3_const EC_KEY *ec;
EC_KEY *ec_new;

TypedData_Get_Struct(self, EVP_PKEY, &ossl_evp_pkey_type, pkey);
if (pkey)
Expand Down Expand Up @@ -566,7 +567,7 @@ static VALUE ossl_ec_key_check_key(VALUE self)

EVP_PKEY_CTX_free(pctx);
#else
EC_KEY *ec;
OSSL_3_const EC_KEY *ec;

GetEC(self, ec);
if (EC_KEY_check_key(ec) != 1)
Expand Down
3 changes: 2 additions & 1 deletion ext/openssl/ossl_pkey_rsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ static VALUE
ossl_rsa_initialize_copy(VALUE self, VALUE other)
{
EVP_PKEY *pkey;
RSA *rsa, *rsa_new;
OSSL_3_const RSA *rsa;
RSA *rsa_new;

TypedData_Get_Struct(self, EVP_PKEY, &ossl_evp_pkey_type, pkey);
if (pkey)
Expand Down