summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ntpd/constraint.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2015-02-22 15:09:54 +0000
committerjsing <jsing@openbsd.org>2015-02-22 15:09:54 +0000
commit1ff22c4bbd4622f8229d211a8dc7b50971e35f1d (patch)
tree1d25d6a8c0be8092459fbaf674eafd55319f1ccf /usr.sbin/ntpd/constraint.c
parentCheck return values when setting dheparams and ecdhecurve for the default (diff)
downloadwireguard-openbsd-1ff22c4bbd4622f8229d211a8dc7b50971e35f1d.tar.xz
wireguard-openbsd-1ff22c4bbd4622f8229d211a8dc7b50971e35f1d.zip
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 'usr.sbin/ntpd/constraint.c')
-rw-r--r--usr.sbin/ntpd/constraint.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ntpd/constraint.c b/usr.sbin/ntpd/constraint.c
index c9c923e0d41..680afe16842 100644
--- a/usr.sbin/ntpd/constraint.c
+++ b/usr.sbin/ntpd/constraint.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: constraint.c,v 1.5 2015/02/22 14:55:41 jsing Exp $ */
+/* $OpenBSD: constraint.c,v 1.6 2015/02/22 15:09:54 jsing Exp $ */
/*
* Copyright (c) 2015 Reyk Floeter <reyk@openbsd.org>
@@ -599,7 +599,7 @@ httpsdate_init(const char *hname, const char *port, const char *name,
goto fail;
/* XXX we have to pre-resolve, so name and host are not equal */
- tls_config_insecure_noverifyhost(httpsdate->tls_config);
+ tls_config_insecure_noverifyname(httpsdate->tls_config);
if (ca == NULL || ca_len == 0)
tls_config_insecure_noverifycert(httpsdate->tls_config);