diff options
author | 2014-04-19 08:52:32 +0000 | |
---|---|---|
committer | 2014-04-19 08:52:32 +0000 | |
commit | dbea66cd1623e97296cb30d20896a9c0c5976d2c (patch) | |
tree | 19fdc86fc22b0040ec8adf299f852dd795e70bb8 /lib/libssl/src/ssl/s23_clnt.c | |
parent | tiny fix: Remove duplicate rows, they appeared after importing less 444 (diff) | |
download | wireguard-openbsd-dbea66cd1623e97296cb30d20896a9c0c5976d2c.tar.xz wireguard-openbsd-dbea66cd1623e97296cb30d20896a9c0c5976d2c.zip |
More KNF and style consistency tweaks
Diffstat (limited to 'lib/libssl/src/ssl/s23_clnt.c')
-rw-r--r-- | lib/libssl/src/ssl/s23_clnt.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/lib/libssl/src/ssl/s23_clnt.c b/lib/libssl/src/ssl/s23_clnt.c index 196ef1dfade..65e2be0c8c2 100644 --- a/lib/libssl/src/ssl/s23_clnt.c +++ b/lib/libssl/src/ssl/s23_clnt.c @@ -119,19 +119,18 @@ static const SSL_METHOD *ssl23_get_client_method(int ver); static int ssl23_client_hello(SSL *s); static int ssl23_get_server_hello(SSL *s); -static const SSL_METHOD -*ssl23_get_client_method(int ver) +static const SSL_METHOD * +ssl23_get_client_method(int ver) { if (ver == SSL3_VERSION) return (SSLv3_client_method()); - else if (ver == TLS1_VERSION) + if (ver == TLS1_VERSION) return (TLSv1_client_method()); - else if (ver == TLS1_1_VERSION) + if (ver == TLS1_1_VERSION) return (TLSv1_1_client_method()); - else if (ver == TLS1_2_VERSION) + if (ver == TLS1_2_VERSION) return (TLSv1_2_client_method()); - else - return (NULL); + return (NULL); } IMPLEMENT_ssl23_meth_func(SSLv23_client_method, |