diff options
author | Pauli <paul.dale@oracle.com> | 2017-07-13 07:37:01 +1000 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2017-07-14 07:35:17 +1000 |
commit | c2500f658bbf378a94a76420ea7ef3d2bff17f9c (patch) | |
tree | 1c75aea7b9efb2be44b95fa62c637a8b1aab2341 /test/rsa_test.c | |
parent | 1f06acc08fc73a1828cca3f162d1dcd76b83a1cf (diff) |
Test cleaning and modernisation
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3917)
Diffstat (limited to 'test/rsa_test.c')
-rw-r--r-- | test/rsa_test.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/rsa_test.c b/test/rsa_test.c index 47be25848f..e8980deb12 100644 --- a/test/rsa_test.c +++ b/test/rsa_test.c @@ -1,5 +1,5 @@ /* - * Copyright 1999-2016 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 1999-2017 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy @@ -42,7 +42,7 @@ void register_tests(void) BN_bin2bn(dmq1, sizeof(dmq1)-1, NULL), \ BN_bin2bn(iqmp, sizeof(iqmp)-1, NULL)); \ memcpy(c, ctext_ex, sizeof(ctext_ex) - 1); \ - return (sizeof(ctext_ex) - 1); + return sizeof(ctext_ex) - 1; static int key1(RSA *key, unsigned char *c) { @@ -215,8 +215,8 @@ static int pad_unknown(void) unsigned long l; while ((l = ERR_get_error()) != 0) if (ERR_GET_REASON(l) == RSA_R_UNKNOWN_PADDING_TYPE) - return (1); - return (0); + return 1; + return 0; } static int rsa_setkey(RSA** key, unsigned char* ctext, int idx) |