diff options
author | 2014-04-14 13:30:33 +0000 | |
---|---|---|
committer | 2014-04-14 13:30:33 +0000 | |
commit | 3cc1ff8ec38031791068e4bd93059d53412b928a (patch) | |
tree | 4b5989035d28102e50c1be9b7fd37ebe761ec041 /lib/libssl/t1_meth.c | |
parent | fix test regarding false positives (diff) | |
download | wireguard-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/t1_meth.c')
-rw-r--r-- | lib/libssl/t1_meth.c | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/lib/libssl/t1_meth.c b/lib/libssl/t1_meth.c index 53c807de280..ab2d789e591 100644 --- a/lib/libssl/t1_meth.c +++ b/lib/libssl/t1_meth.c @@ -60,8 +60,9 @@ #include <openssl/objects.h> #include "ssl_locl.h" -static const SSL_METHOD *tls1_get_method(int ver) - { +static const SSL_METHOD +*tls1_get_method(int ver) +{ if (ver == TLS1_2_VERSION) return TLSv1_2_method(); if (ver == TLS1_1_VERSION) @@ -69,20 +70,13 @@ static const SSL_METHOD *tls1_get_method(int ver) if (ver == TLS1_VERSION) return TLSv1_method(); return NULL; - } +} IMPLEMENT_tls_meth_func(TLS1_2_VERSION, TLSv1_2_method, - ssl3_accept, - ssl3_connect, - tls1_get_method) + ssl3_accept, ssl3_connect, tls1_get_method) IMPLEMENT_tls_meth_func(TLS1_1_VERSION, TLSv1_1_method, - ssl3_accept, - ssl3_connect, - tls1_get_method) + ssl3_accept, ssl3_connect, tls1_get_method) IMPLEMENT_tls_meth_func(TLS1_VERSION, TLSv1_method, - ssl3_accept, - ssl3_connect, - tls1_get_method) - + ssl3_accept, ssl3_connect, tls1_get_method) |