Skip to content

Commit

Permalink
Fix error message to match actual operation
Browse files Browse the repository at this point in the history
  • Loading branch information
sylph01 committed Jul 7, 2023
1 parent b48fcab commit e9ccf58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/openssl/ossl_pkey.c
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ ossl_pkey_initialize_private(VALUE self, VALUE type, VALUE key)

pkey = EVP_PKEY_new_raw_private_key(pkey_id, NULL, (unsigned char *)RSTRING_PTR(key), keylen);
if (!pkey)
ossl_raise(ePKeyError, "Could not parse PKey");
ossl_raise(ePKeyError, "EVP_PKEY_new_raw_private_key");

return ossl_pkey_new(pkey);
}
Expand Down Expand Up @@ -689,7 +689,7 @@ ossl_pkey_initialize_public(VALUE self, VALUE type, VALUE key)

pkey = EVP_PKEY_new_raw_public_key(pkey_id, NULL, (unsigned char *)RSTRING_PTR(key), keylen);
if (!pkey)
ossl_raise(ePKeyError, "Could not parse PKey");
ossl_raise(ePKeyError, "EVP_PKEY_new_raw_public_key");

return ossl_pkey_new(pkey);
}
Expand Down

0 comments on commit e9ccf58

Please sign in to comment.