diff options
author | tb <> | 2023-12-21 20:50:43 +0000 |
---|---|---|
committer | tb <> | 2023-12-21 20:50:43 +0000 |
commit | fb1e428dca688e31d6de3084150760d9f3c7786b (patch) | |
tree | ab379475cb45ee4cf97608688fb8d1a1eadb4253 /src | |
parent | e517ff45fafa676184f89b80765a47b04013f869 (diff) | |
download | openbsd-fb1e428dca688e31d6de3084150760d9f3c7786b.tar.gz openbsd-fb1e428dca688e31d6de3084150760d9f3c7786b.tar.bz2 openbsd-fb1e428dca688e31d6de3084150760d9f3c7786b.zip |
Remove some superfluous parentheses
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/evp/evp_enc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/evp/evp_enc.c b/src/lib/libcrypto/evp/evp_enc.c index df3ede34a6..d8c01cdc47 100644 --- a/src/lib/libcrypto/evp/evp_enc.c +++ b/src/lib/libcrypto/evp/evp_enc.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: evp_enc.c,v 1.73 2023/12/20 14:15:19 tb Exp $ */ | 1 | /* $OpenBSD: evp_enc.c,v 1.74 2023/12/21 20:50:43 tb Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -601,7 +601,7 @@ EVP_CIPHER_CTX_set_key_length(EVP_CIPHER_CTX *c, int keylen) | |||
601 | keylen, NULL); | 601 | keylen, NULL); |
602 | if (c->key_len == keylen) | 602 | if (c->key_len == keylen) |
603 | return 1; | 603 | return 1; |
604 | if ((keylen > 0) && (c->cipher->flags & EVP_CIPH_VARIABLE_LENGTH)) { | 604 | if (keylen > 0 && (c->cipher->flags & EVP_CIPH_VARIABLE_LENGTH)) { |
605 | c->key_len = keylen; | 605 | c->key_len = keylen; |
606 | return 1; | 606 | return 1; |
607 | } | 607 | } |
@@ -654,7 +654,7 @@ EVP_CIPHER_CTX_rand_key(EVP_CIPHER_CTX *ctx, unsigned char *key) | |||
654 | int | 654 | int |
655 | EVP_CIPHER_CTX_copy(EVP_CIPHER_CTX *out, const EVP_CIPHER_CTX *in) | 655 | EVP_CIPHER_CTX_copy(EVP_CIPHER_CTX *out, const EVP_CIPHER_CTX *in) |
656 | { | 656 | { |
657 | if ((in == NULL) || (in->cipher == NULL)) { | 657 | if (in == NULL || in->cipher == NULL) { |
658 | EVPerror(EVP_R_INPUT_NOT_INITIALIZED); | 658 | EVPerror(EVP_R_INPUT_NOT_INITIALIZED); |
659 | return 0; | 659 | return 0; |
660 | } | 660 | } |