We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64ee64d commit e3b6c64Copy full SHA for e3b6c64
src/node_crypto.cc
@@ -5513,8 +5513,9 @@ bool PublicKeyCipher::Cipher(Environment* env,
5513
// OpenSSL takes ownership of the label, so we need to create a copy.
5514
void* label = OPENSSL_memdup(oaep_label, oaep_label_len);
5515
CHECK_NOT_NULL(label);
5516
- if (0 >= EVP_PKEY_CTX_set0_rsa_oaep_label(ctx.get(), label,
5517
- oaep_label_len)) {
+ if (0 >= EVP_PKEY_CTX_set0_rsa_oaep_label(ctx.get(),
+ reinterpret_cast<unsigned char*>(label),
5518
+ oaep_label_len)) {
5519
OPENSSL_free(label);
5520
return false;
5521
}
0 commit comments