summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src/ssl/t1_clnt.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2014-04-14 13:30:33 +0000
committerjsing <jsing@openbsd.org>2014-04-14 13:30:33 +0000
commit3cc1ff8ec38031791068e4bd93059d53412b928a (patch)
tree4b5989035d28102e50c1be9b7fd37ebe761ec041 /lib/libssl/src/ssl/t1_clnt.c
parentfix test regarding false positives (diff)
downloadwireguard-openbsd-3cc1ff8ec38031791068e4bd93059d53412b928a.tar.xz
wireguard-openbsd-3cc1ff8ec38031791068e4bd93059d53412b928a.zip
First pass at applying KNF to the OpenSSL code, which almost makes it
readable. This pass is whitespace only and can readily be verified using tr and md5.
Diffstat (limited to 'lib/libssl/src/ssl/t1_clnt.c')
-rw-r--r--lib/libssl/src/ssl/t1_clnt.c21
1 files changed, 8 insertions, 13 deletions
diff --git a/lib/libssl/src/ssl/t1_clnt.c b/lib/libssl/src/ssl/t1_clnt.c
index 578617ed84b..ac8ff7309ff 100644
--- a/lib/libssl/src/ssl/t1_clnt.c
+++ b/lib/libssl/src/ssl/t1_clnt.c
@@ -64,8 +64,10 @@
#include <openssl/evp.h>
static const SSL_METHOD *tls1_get_client_method(int ver);
-static const SSL_METHOD *tls1_get_client_method(int ver)
- {
+
+static const SSL_METHOD
+*tls1_get_client_method(int ver)
+{
if (ver == TLS1_2_VERSION)
return TLSv1_2_client_method();
if (ver == TLS1_1_VERSION)
@@ -73,20 +75,13 @@ static const SSL_METHOD *tls1_get_client_method(int ver)
if (ver == TLS1_VERSION)
return TLSv1_client_method();
return NULL;
- }
+}
IMPLEMENT_tls_meth_func(TLS1_2_VERSION, TLSv1_2_client_method,
- ssl_undefined_function,
- ssl3_connect,
- tls1_get_client_method)
+ ssl_undefined_function, ssl3_connect, tls1_get_client_method)
IMPLEMENT_tls_meth_func(TLS1_1_VERSION, TLSv1_1_client_method,
- ssl_undefined_function,
- ssl3_connect,
- tls1_get_client_method)
+ ssl_undefined_function, ssl3_connect, tls1_get_client_method)
IMPLEMENT_tls_meth_func(TLS1_VERSION, TLSv1_client_method,
- ssl_undefined_function,
- ssl3_connect,
- tls1_get_client_method)
-
+ ssl_undefined_function, ssl3_connect, tls1_get_client_method)