File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -5215,15 +5215,16 @@ bool PublicKeyCipher::Cipher(Environment* env,
5215
5215
return false ;
5216
5216
5217
5217
if (digest != nullptr ) {
5218
- if (! EVP_PKEY_CTX_set_rsa_oaep_md (ctx.get (), digest))
5218
+ if (EVP_PKEY_CTX_set_rsa_oaep_md (ctx.get (), digest) <= 0 )
5219
5219
return false ;
5220
5220
}
5221
5221
5222
5222
if (oaep_label_len != 0 ) {
5223
5223
// OpenSSL takes ownership of the label, so we need to create a copy.
5224
5224
void * label = OPENSSL_memdup (oaep_label, oaep_label_len);
5225
5225
CHECK_NOT_NULL (label);
5226
- if (!EVP_PKEY_CTX_set0_rsa_oaep_label (ctx.get (), label, oaep_label_len)) {
5226
+ if (0 >= EVP_PKEY_CTX_set0_rsa_oaep_label (ctx.get (), label,
5227
+ oaep_label_len)) {
5227
5228
OPENSSL_free (label);
5228
5229
return false ;
5229
5230
}
You can’t perform that action at this time.
0 commit comments