summaryrefslogtreecommitdiff
path: root/lib/libtls/tls_config.c
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2015-02-22 15:09:55 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2015-02-22 15:09:55 +0000
commitf743d3f9096c9cff0299d95a1fc55481758e2a11 (patch)
treebb3a2d11601aa90c0718bb8a9a300d54c7b5e7a8 /lib/libtls/tls_config.c
parent5e54344a83adfb0dea1dc1d45d8fd74dd3d317f9 (diff)
Rename tls_config_insecure_noverifyhost() to
tls_config_insecure_noverifyname(), so that it is more accurate and keeps inline with the distinction between DNS hostname and server name. Requested by tedu@ during s2k15.
Diffstat (limited to 'lib/libtls/tls_config.c')
-rw-r--r--lib/libtls/tls_config.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/libtls/tls_config.c b/lib/libtls/tls_config.c
index 0b0a8120a43..4c25a793039 100644
--- a/lib/libtls/tls_config.c
+++ b/lib/libtls/tls_config.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tls_config.c,v 1.8 2015/02/22 14:59:37 jsing Exp $ */
+/* $OpenBSD: tls_config.c,v 1.9 2015/02/22 15:09:54 jsing Exp $ */
/*
* Copyright (c) 2014 Joel Sing <jsing@openbsd.org>
*
@@ -282,17 +282,16 @@ tls_config_set_verify_depth(struct tls_config *config, int verify_depth)
config->verify_depth = verify_depth;
}
-/* XXX - rename to noverifyname. */
void
-tls_config_insecure_noverifyhost(struct tls_config *config)
+tls_config_insecure_noverifycert(struct tls_config *config)
{
- config->verify_name = 0;
+ config->verify_cert = 0;
}
void
-tls_config_insecure_noverifycert(struct tls_config *config)
+tls_config_insecure_noverifyname(struct tls_config *config)
{
- config->verify_cert = 0;
+ config->verify_name = 0;
}
void