Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/node_crypto.cc')
-rw-r--r--src/node_crypto.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/node_crypto.cc b/src/node_crypto.cc
index c53c5c4ccc4..87a3e5525d1 100644
--- a/src/node_crypto.cc
+++ b/src/node_crypto.cc
@@ -5510,8 +5510,9 @@ bool PublicKeyCipher::Cipher(Environment* env,
// OpenSSL takes ownership of the label, so we need to create a copy.
void* label = OPENSSL_memdup(oaep_label, oaep_label_len);
CHECK_NOT_NULL(label);
- if (0 >= EVP_PKEY_CTX_set0_rsa_oaep_label(ctx.get(), label,
- oaep_label_len)) {
+ if (0 >= EVP_PKEY_CTX_set0_rsa_oaep_label(ctx.get(),
+ reinterpret_cast<unsigned char*>(label),
+ oaep_label_len)) {
OPENSSL_free(label);
return false;
}