summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2014-05-27 13:11:56 +0000
committerjsing <jsing@openbsd.org>2014-05-27 13:11:56 +0000
commitfbbe27b51c023028b74160c21024b9ef88de02ae (patch)
tree2bfcab56c66bc7af3dec8240a0260d412bda1e39 /lib/libssl/src
parentHandle the top bit of xterm(1)-style modifier keys, based on a diff from (diff)
downloadwireguard-openbsd-fbbe27b51c023028b74160c21024b9ef88de02ae.tar.xz
wireguard-openbsd-fbbe27b51c023028b74160c21024b9ef88de02ae.zip
More KNF.
Diffstat (limited to 'lib/libssl/src')
-rw-r--r--lib/libssl/src/ssl/s3_enc.c3
-rw-r--r--lib/libssl/src/ssl/ssl_ciph.c4
2 files changed, 4 insertions, 3 deletions
diff --git a/lib/libssl/src/ssl/s3_enc.c b/lib/libssl/src/ssl/s3_enc.c
index 119e7ce1f45..c9284c395ff 100644
--- a/lib/libssl/src/ssl/s3_enc.c
+++ b/lib/libssl/src/ssl/s3_enc.c
@@ -559,7 +559,8 @@ ssl3_free_digest_list(SSL *s)
void
ssl3_finish_mac(SSL *s, const unsigned char *buf, int len)
{
- if (s->s3->handshake_buffer && !(s->s3->flags & TLS1_FLAGS_KEEP_HANDSHAKE)) {
+ if (s->s3->handshake_buffer &&
+ !(s->s3->flags & TLS1_FLAGS_KEEP_HANDSHAKE)) {
BIO_write (s->s3->handshake_buffer,(void *)buf, len);
} else {
int i;
diff --git a/lib/libssl/src/ssl/ssl_ciph.c b/lib/libssl/src/ssl/ssl_ciph.c
index b2a1e93688c..c9485f81947 100644
--- a/lib/libssl/src/ssl/ssl_ciph.c
+++ b/lib/libssl/src/ssl/ssl_ciph.c
@@ -1407,8 +1407,8 @@ ssl_create_cipher_list(const SSL_METHOD *ssl_method,
free((void *)ca_list); /* Not needed anymore */
- if (!ok)
- { /* Rule processing failure */
+ if (!ok) {
+ /* Rule processing failure */
free(co_list);
return (NULL);
}