summaryrefslogtreecommitdiff
path: root/usr.bin/ldap
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2018-11-29 14:25:08 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2018-11-29 14:25:08 +0000
commit57034f8d36ca416ad4196e48c808f9d46f58e9e9 (patch)
treee3a1aa93a9edb1f10c9985dc905f743936718802 /usr.bin/ldap
parentf3617f8e9dd53819ac29a0550c6ec2a3698df312 (diff)
update for libtls default cert changes.
bonus: this exposed a few missing const qualifiers.
Diffstat (limited to 'usr.bin/ldap')
-rw-r--r--usr.bin/ldap/ldapclient.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ldap/ldapclient.c b/usr.bin/ldap/ldapclient.c
index 6bfd2b01afd..02b15e0669b 100644
--- a/usr.bin/ldap/ldapclient.c
+++ b/usr.bin/ldap/ldapclient.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ldapclient.c,v 1.10 2018/11/27 12:04:57 martijn Exp $ */
+/* $OpenBSD: ldapclient.c,v 1.11 2018/11/29 14:25:07 tedu Exp $ */
/*
* Copyright (c) 2018 Reyk Floeter <reyk@openbsd.org>
@@ -61,7 +61,7 @@ struct ldapc {
struct aldap *ldap_al;
char *ldap_host;
int ldap_port;
- char *ldap_capath;
+ const char *ldap_capath;
char *ldap_binddn;
char *ldap_secret;
unsigned int ldap_flags;
@@ -220,7 +220,7 @@ main(int argc, char *argv[])
if (ldap.ldap_protocol == LDAP && (ldap.ldap_flags & F_STARTTLS))
ldap.ldap_protocol = LDAPTLS;
if (ldap.ldap_capath == NULL)
- ldap.ldap_capath = TLS_CA_CERT_FILE;
+ ldap.ldap_capath = tls_default_ca_cert_file();
if (ls.ls_basedn == NULL)
ls.ls_basedn = "";
if (ls.ls_scope == -1)