summaryrefslogtreecommitdiffstats
path: root/ssl
diff options
context:
space:
mode:
authorFdaSilvaYY <fdasilvayy@gmail.com>2017-08-26 17:56:44 +0200
committerFdaSilvaYY <fdasilvayy@gmail.com>2017-11-07 17:09:24 +0100
commitf479eab2271c06d73d2e473ce47b0fc6ab742cef (patch)
tree1aeb6d0a6cf4ca64c060104fc2e9a440bbfaa208 /ssl
parent89635075d84353fc0c3d44a82fd0903ccd4ab24a (diff)
style : fix some if(...
Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Ben Kaduk <kaduk@mit.edu> (Merged from https://github.com/openssl/openssl/pull/4457)
Diffstat (limited to 'ssl')
-rw-r--r--ssl/record/rec_layer_s3.c4
-rw-r--r--ssl/t1_enc.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/ssl/record/rec_layer_s3.c b/ssl/record/rec_layer_s3.c
index d10b91b24f..c1101a6735 100644
--- a/ssl/record/rec_layer_s3.c
+++ b/ssl/record/rec_layer_s3.c
@@ -920,8 +920,8 @@ int do_ssl3_write(SSL *s, int type, const unsigned char *buf,
* This will be at most one cipher block or the tag length if using
* AEAD. SSL_RT_MAX_CIPHER_BLOCK_SIZE covers either case.
*/
- if(!WPACKET_reserve_bytes(thispkt, SSL_RT_MAX_CIPHER_BLOCK_SIZE,
- NULL)
+ if (!WPACKET_reserve_bytes(thispkt, SSL_RT_MAX_CIPHER_BLOCK_SIZE,
+ NULL)
/*
* We also need next the amount of bytes written to this
* sub-packet
diff --git a/ssl/t1_enc.c b/ssl/t1_enc.c
index 9839e1dc54..8fe2dfd3aa 100644
--- a/ssl/t1_enc.c
+++ b/ssl/t1_enc.c
@@ -448,7 +448,7 @@ int tls1_generate_master_secret(SSL *s, unsigned char *out, unsigned char *p,
*/
if (!ssl3_digest_cached_records(s, 1))
return 0;
- if(!ssl_handshake_hash(s, hash, sizeof(hash), &hashlen))
+ if (!ssl_handshake_hash(s, hash, sizeof(hash), &hashlen))
return 0;
#ifdef SSL_DEBUG
fprintf(stderr, "Handshake hashes:\n");