summaryrefslogtreecommitdiffstats
path: root/lib/libssl/ssl_lib.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2014-06-07 14:03:50 +0000
committerjsing <jsing@openbsd.org>2014-06-07 14:03:50 +0000
commit77b8c8ffc77ef3cb59f468474e6cdb30c33a0340 (patch)
treeccd5c51844ca7a73243d197612fe7128e119f08b /lib/libssl/ssl_lib.c
parentMore KNF. (diff)
downloadwireguard-openbsd-77b8c8ffc77ef3cb59f468474e6cdb30c33a0340.tar.xz
wireguard-openbsd-77b8c8ffc77ef3cb59f468474e6cdb30c33a0340.zip
More KNF.
Diffstat (limited to 'lib/libssl/ssl_lib.c')
-rw-r--r--lib/libssl/ssl_lib.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/libssl/ssl_lib.c b/lib/libssl/ssl_lib.c
index 7feb920ab84..be57df7736a 100644
--- a/lib/libssl/ssl_lib.c
+++ b/lib/libssl/ssl_lib.c
@@ -2234,8 +2234,7 @@ ssl_get_server_send_pkey(const SSL *s)
} else if (alg_a & SSL_aGOST01) {
i = SSL_PKEY_GOST01;
} else { /* if (alg_a & SSL_aNULL) */
- SSLerr(SSL_F_SSL_GET_SERVER_SEND_PKEY,
- ERR_R_INTERNAL_ERROR);
+ SSLerr(SSL_F_SSL_GET_SERVER_SEND_PKEY, ERR_R_INTERNAL_ERROR);
return (NULL);
}
@@ -2275,8 +2274,7 @@ ssl_get_sign_pkey(SSL *s, const SSL_CIPHER *cipher, const EVP_MD **pmd)
(c->pkeys[SSL_PKEY_ECC].privatekey != NULL))
idx = SSL_PKEY_ECC;
if (idx == -1) {
- SSLerr(SSL_F_SSL_GET_SIGN_PKEY,
- ERR_R_INTERNAL_ERROR);
+ SSLerr(SSL_F_SSL_GET_SIGN_PKEY, ERR_R_INTERNAL_ERROR);
return (NULL);
}
if (pmd)
@@ -3025,8 +3023,8 @@ SSL_use_psk_identity_hint(SSL *s, const char *identity_hint)
if (s->session == NULL)
return (1); /* session not created yet, ignored */
- if (identity_hint != NULL && strlen(identity_hint) >
- PSK_MAX_IDENTITY_LEN) {
+ if (identity_hint != NULL &&
+ strlen(identity_hint) > PSK_MAX_IDENTITY_LEN) {
SSLerr(SSL_F_SSL_USE_PSK_IDENTITY_HINT,
SSL_R_DATA_LENGTH_TOO_LONG);
return (0);