File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -906,7 +906,7 @@ bool PublicKeyCipher::Cipher(
906906 void * label = OPENSSL_memdup (oaep_label.data (), oaep_label.size ());
907907 CHECK_NOT_NULL (label);
908908 if (0 >= EVP_PKEY_CTX_set0_rsa_oaep_label (ctx.get (),
909- reinterpret_cast <unsigned char *>(label),
909+ static_cast <unsigned char *>(label),
910910 oaep_label.size ())) {
911911 OPENSSL_free (label);
912912 return false ;
Original file line number Diff line number Diff line change @@ -210,7 +210,10 @@ WebCryptoCipherStatus RSA_Cipher(
210210 if (label_len > 0 ) {
211211 void * label = OPENSSL_memdup (params.label .get (), label_len);
212212 CHECK_NOT_NULL (label);
213- if (EVP_PKEY_CTX_set0_rsa_oaep_label (ctx.get (), label, label_len) <= 0 ) {
213+ if (EVP_PKEY_CTX_set0_rsa_oaep_label (
214+ ctx.get (),
215+ static_cast <unsigned char *>(label),
216+ label_len) <= 0 ) {
214217 OPENSSL_free (label);
215218 return WebCryptoCipherStatus::FAILED;
216219 }
You can’t perform that action at this time.
0 commit comments