summaryrefslogtreecommitdiff
path: root/lib/tls.c
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2013-01-21 11:02:17 +0100
committerLinus Nordberg <linus@nordberg.se>2013-01-21 11:02:17 +0100
commit35311406413e0418112f7c295fee054a3506cbe8 (patch)
treef463a573a83951fb229a358425e08d9c7484268b /lib/tls.c
parentdc61b6b2c2dd3d7b47d83dc6d574bd65dffeadd6 (diff)
parentb8260ee68d9bc60f3204f860cc6919964a6e9464 (diff)
Merge branch 'libradsec-new-client' into libradsec
Diffstat (limited to 'lib/tls.c')
-rw-r--r--lib/tls.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/tls.c b/lib/tls.c
index 610df98..acc2f91 100644
--- a/lib/tls.c
+++ b/lib/tls.c
@@ -1,5 +1,5 @@
/* Copyright 2010, 2011 NORDUnet A/S. All rights reserved.
- See the file COPYING for licensing information. */
+ See LICENSE for licensing information. */
#if defined HAVE_CONFIG_H
#include <config.h>
@@ -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 "