From c6f3fe1fbc8da2fa6de30b10f1f219ab1f809438 Mon Sep 17 00:00:00 2001 From: jsing <> Date: Wed, 11 Feb 2015 06:46:33 +0000 Subject: Be consistent with naming - only use "host" and "hostname" when referring to an actual host and use "servername" when referring to the name of the TLS server that we expect to be indentified in the server certificate. Likewise, rename verify_host to verify_name and use the term "name" throughout the verification code (rather than host or hostname). Requested by and ok tedu@ --- src/lib/libtls/tls_config.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/lib/libtls/tls_config.c') diff --git a/src/lib/libtls/tls_config.c b/src/lib/libtls/tls_config.c index 7697fa6ee8..116cde8297 100644 --- a/src/lib/libtls/tls_config.c +++ b/src/lib/libtls/tls_config.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tls_config.c,v 1.3 2015/02/07 06:19:26 jsing Exp $ */ +/* $OpenBSD: tls_config.c,v 1.4 2015/02/11 06:46:33 jsing Exp $ */ /* * Copyright (c) 2014 Joel Sing * @@ -208,10 +208,11 @@ 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) { - config->verify_host = 0; + config->verify_name = 0; } void @@ -223,6 +224,6 @@ tls_config_insecure_noverifycert(struct tls_config *config) void tls_config_verify(struct tls_config *config) { - config->verify_host = 1; config->verify_cert = 1; + config->verify_name = 1; } -- cgit v1.2.3-55-g6feb