aboutsummaryrefslogtreecommitdiff
path: root/test/ectest.c
diff options
context:
space:
mode:
authorx2018 <xkernel.wang@foxmail.com>2021-10-26 15:16:18 +0800
committerPauli <pauli@openssl.org>2021-10-28 13:10:46 +1000
commit1287dabd0b23326be491125698dd982e4ae28887 (patch)
tree3d6a62803bdd3d8ca9378eda3e7316a9c995c001 /test/ectest.c
parent01451721afebabd0b7bdcd4cb3a183c9b590d266 (diff)
downloadopenssl-1287dabd0b23326be491125698dd982e4ae28887.zip
openssl-1287dabd0b23326be491125698dd982e4ae28887.tar.gz
openssl-1287dabd0b23326be491125698dd982e4ae28887.tar.bz2
fix some code with obvious wrong coding style
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/16918)
Diffstat (limited to 'test/ectest.c')
-rw-r--r--test/ectest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ectest.c b/test/ectest.c
index c08b14b..56a0674 100644
--- a/test/ectest.c
+++ b/test/ectest.c
@@ -2861,11 +2861,11 @@ static int custom_params_test(int id)
goto err;
/* create two `EVP_PKEY`s from the `EC_KEY`s */
- if(!TEST_ptr(pkey1 = EVP_PKEY_new())
+ if (!TEST_ptr(pkey1 = EVP_PKEY_new())
|| !TEST_int_eq(EVP_PKEY_assign_EC_KEY(pkey1, eckey1), 1))
goto err;
eckey1 = NULL; /* ownership passed to pkey1 */
- if(!TEST_ptr(pkey2 = EVP_PKEY_new())
+ if (!TEST_ptr(pkey2 = EVP_PKEY_new())
|| !TEST_int_eq(EVP_PKEY_assign_EC_KEY(pkey2, eckey2), 1))
goto err;
eckey2 = NULL; /* ownership passed to pkey2 */