Commit 64a27d08 authored by eroman's avatar eroman Committed by Commit bot

Change calling style for some Boring SSL functions which (now) return just 0 or 1.

Review URL: https://codereview.chromium.org/1634383002

Cr-Commit-Position: refs/heads/master@{#371683}
parent ee395332
...@@ -51,9 +51,9 @@ Status CommonEncryptDecrypt(InitFunc init_func, ...@@ -51,9 +51,9 @@ Status CommonEncryptDecrypt(InitFunc init_func,
crypto::ScopedEVP_PKEY_CTX ctx(EVP_PKEY_CTX_new(pkey, NULL)); crypto::ScopedEVP_PKEY_CTX ctx(EVP_PKEY_CTX_new(pkey, NULL));
if (!init_func(ctx.get()) || if (!init_func(ctx.get()) ||
1 != EVP_PKEY_CTX_set_rsa_padding(ctx.get(), RSA_PKCS1_OAEP_PADDING) || !EVP_PKEY_CTX_set_rsa_padding(ctx.get(), RSA_PKCS1_OAEP_PADDING) ||
1 != EVP_PKEY_CTX_set_rsa_oaep_md(ctx.get(), digest) || !EVP_PKEY_CTX_set_rsa_oaep_md(ctx.get(), digest) ||
1 != EVP_PKEY_CTX_set_rsa_mgf1_md(ctx.get(), digest)) { !EVP_PKEY_CTX_set_rsa_mgf1_md(ctx.get(), digest)) {
return Status::OperationError(); return Status::OperationError();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment