Skip to content

Commit e9ccf58

Browse files
committed
Fix error message to match actual operation
1 parent b48fcab commit e9ccf58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/openssl/ossl_pkey.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ ossl_pkey_initialize_private(VALUE self, VALUE type, VALUE key)
656656

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

661661
return ossl_pkey_new(pkey);
662662
}
@@ -689,7 +689,7 @@ ossl_pkey_initialize_public(VALUE self, VALUE type, VALUE key)
689689

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

694694
return ossl_pkey_new(pkey);
695695
}

0 commit comments

Comments
 (0)