@@ -4817,7 +4817,7 @@ void DiffieHellman::Initialize(Environment* env, Local<Object> target) {
48174817
48184818bool DiffieHellman::Init (int primeLength, int g) {
48194819 dh_.reset (DH_new ());
4820- if (!DH_generate_parameters_ex (dh_.get (), primeLength, g, 0 ))
4820+ if (!DH_generate_parameters_ex (dh_.get (), primeLength, g, nullptr ))
48214821 return false ;
48224822 return VerifyContext ();
48234823}
@@ -4840,8 +4840,10 @@ bool DiffieHellman::Init(const char* p, int p_len, int g) {
48404840
48414841bool DiffieHellman::Init (const char * p, int p_len, const char * g, int g_len) {
48424842 dh_.reset (DH_new ());
4843- BIGNUM* bn_p = BN_bin2bn (reinterpret_cast <const unsigned char *>(p), p_len, 0 );
4844- BIGNUM* bn_g = BN_bin2bn (reinterpret_cast <const unsigned char *>(g), g_len, 0 );
4843+ BIGNUM* bn_p =
4844+ BN_bin2bn (reinterpret_cast <const unsigned char *>(p), p_len, nullptr );
4845+ BIGNUM* bn_g =
4846+ BN_bin2bn (reinterpret_cast <const unsigned char *>(g), g_len, nullptr );
48454847 if (!DH_set0_pqg (dh_.get (), bn_p, nullptr , bn_g)) {
48464848 BN_free (bn_p);
48474849 BN_free (bn_g);
@@ -5009,7 +5011,7 @@ void DiffieHellman::ComputeSecret(const FunctionCallbackInfo<Value>& args) {
50095011 BignumPointer key (BN_bin2bn (
50105012 reinterpret_cast <unsigned char *>(Buffer::Data (args[0 ])),
50115013 Buffer::Length (args[0 ]),
5012- 0 ));
5014+ nullptr ));
50135015
50145016 MallocedBuffer<char > data (DH_size (diffieHellman->dh_ .get ()));
50155017
0 commit comments