summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2012-12-18 13:24:45 +0100
committerLinus Nordberg <linus@nordberg.se>2012-12-18 13:24:45 +0100
commitbefa2a400c0635d752f458f0cc394d97828f74c0 (patch)
tree002ee33b22b7e41fc77efcdafc8558614e3af85b /lib
parente627ff1d2b8888897c04f7b368cc307f948be6ff (diff)
Whitespace.
Diffstat (limited to 'lib')
-rw-r--r--lib/tls.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/tls.c b/lib/tls.c
index 610df98..5c7045a 100644
--- a/lib/tls.c
+++ b/lib/tls.c
@@ -214,15 +214,15 @@ tls_verify_cert (struct rs_connection *conn)
goto out;
}
- if (inet_pton(AF_INET, hostname, &addr))
+ if (inet_pton (AF_INET, hostname, &addr))
success = (subjectaltnameaddr (peer_cert, AF_INET, &addr) == 1);
- else if (inet_pton(AF_INET6, hostname, &addr))
+ else if (inet_pton (AF_INET6, hostname, &addr))
success = (subjectaltnameaddr (peer_cert, AF_INET6, &addr) == 1);
else
success = (subjectaltnameregexp (peer_cert, GEN_DNS, hostname, NULL) == 1);
if (!success)
- success = (cnregexp(peer_cert, hostname, NULL) == 1);
+ success = (cnregexp (peer_cert, hostname, NULL) == 1);
if (!success)
err = rs_err_conn_push (conn, RSE_CERT, "server certificate doesn't "