diff options
author | Paul Yang <yang.yang@baishancloud.com> | 2017-08-23 01:36:49 +0800 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2017-08-25 16:23:07 +0100 |
commit | 90862ab4b2fb80ebbc89849bc28393da393022fb (patch) | |
tree | 5ed19a6764b691ac08415e82bf4fc3d82dff1e9e /crypto/rsa/rsa_ossl.c | |
parent | 8686c474807d3c7bcb722294f39ac4e5627e9fa2 (diff) | |
download | openssl-90862ab4b2fb80ebbc89849bc28393da393022fb.zip openssl-90862ab4b2fb80ebbc89849bc28393da393022fb.tar.gz openssl-90862ab4b2fb80ebbc89849bc28393da393022fb.tar.bz2 |
This part fixes braces around if-else.
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4223)
Diffstat (limited to 'crypto/rsa/rsa_ossl.c')
-rw-r--r-- | crypto/rsa/rsa_ossl.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/crypto/rsa/rsa_ossl.c b/crypto/rsa/rsa_ossl.c index 6199b4f..40c84dd 100644 --- a/crypto/rsa/rsa_ossl.c +++ b/crypto/rsa/rsa_ossl.c @@ -200,12 +200,12 @@ static BN_BLINDING *rsa_get_blinding(RSA *rsa, int *local, BN_CTX *ctx) static int rsa_blinding_convert(BN_BLINDING *b, BIGNUM *f, BIGNUM *unblind, BN_CTX *ctx) { - if (unblind == NULL) + if (unblind == NULL) { /* * Local blinding: store the unblinding factor in BN_BLINDING. */ return BN_BLINDING_convert_ex(f, NULL, b, ctx); - else { + } else { /* * Shared blinding: store the unblinding factor outside BN_BLINDING. */ @@ -347,8 +347,9 @@ static int rsa_ossl_private_encrypt(int flen, const unsigned char *from, res = f; else res = ret; - } else + } else { res = ret; + } /* * put in leading 0 bytes if the number is less than the length of the |