Skip to content

Commit

Permalink
src: remove redundant RsaPointer (use RSAPointer)
Browse files Browse the repository at this point in the history
PR-URL: nodejs#54003
Reviewed-By: Yagiz Nizipli <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
jasnell authored Jul 25, 2024
1 parent d1c7817 commit a851d0c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/crypto/crypto_rsa.cc
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ std::shared_ptr<KeyObjectData> ImportJWKRsaKey(

KeyType type = d_value->IsString() ? kKeyTypePrivate : kKeyTypePublic;

RsaPointer rsa(RSA_new());
RSAPointer rsa(RSA_new());

ByteSource n = ByteSource::FromEncodedString(env, n_value.As<String>());
ByteSource e = ByteSource::FromEncodedString(env, e_value.As<String>());
Expand Down
1 change: 0 additions & 1 deletion src/crypto/crypto_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ using DHPointer = ncrypto::DHPointer;
using ECDSASigPointer = ncrypto::ECDSASigPointer;
using HMACCtxPointer = ncrypto::HMACCtxPointer;
using CipherCtxPointer = ncrypto::CipherCtxPointer;
using RsaPointer = ncrypto::RSAPointer;
using DsaPointer = ncrypto::DSAPointer;
using DsaSigPointer = ncrypto::DSASigPointer;

Expand Down

0 comments on commit a851d0c

Please sign in to comment.