Skip to content
Closed
Changes from 1 commit
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
2 changes: 2 additions & 0 deletions src/crypto/crypto_rsa.cc
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,8 @@ KeyObjectData ImportJWKRsaKey(Environment* env,
KeyType type = d_value->IsString() ? kKeyTypePrivate : kKeyTypePublic;

RSAPointer rsa(RSA_new());
if (!rsa) return {};
Comment thread
addaleax marked this conversation as resolved.
Outdated

ncrypto::Rsa rsa_view(rsa.get());

ByteSource n = ByteSource::FromEncodedString(env, n_value.As<String>());
Expand Down
Loading