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 e7f941c commit d0e22e7Copy full SHA for d0e22e7
src/crypto/crypto_rsa.cc
@@ -210,7 +210,10 @@ WebCryptoCipherStatus RSA_Cipher(
210
if (label_len > 0) {
211
void* label = OPENSSL_memdup(params.label.get(), label_len);
212
CHECK_NOT_NULL(label);
213
- if (EVP_PKEY_CTX_set0_rsa_oaep_label(ctx.get(), label, label_len) <= 0) {
+ if (EVP_PKEY_CTX_set0_rsa_oaep_label(
214
+ ctx.get(),
215
+ reinterpret_cast<unsigned char*>(label),
216
+ label_len) <= 0) {
217
OPENSSL_free(label);
218
return WebCryptoCipherStatus::FAILED;
219
}
0 commit comments