summaryrefslogtreecommitdiff
path: root/src/danetool.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2013-01-18 18:50:47 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2013-01-18 18:50:47 +0100
commit8bb4d08009a12144a2b8b39a3caacaab23a4125b (patch)
tree318c98c4310aea10f04dea55d6f8233f9e5a9ad7 /src/danetool.c
parentdd11a8bce02895a1be5222f99a577c5fb93cd823 (diff)
downloadgnutls-8bb4d08009a12144a2b8b39a3caacaab23a4125b.tar.gz
Added --insecure flag to danetool.
Diffstat (limited to 'src/danetool.c')
-rw-r--r--src/danetool.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/danetool.c b/src/danetool.c
index 898454905e..ad6791e215 100644
--- a/src/danetool.c
+++ b/src/danetool.c
@@ -197,6 +197,9 @@ size_t size;
if (ENABLED_OPT(LOCAL_DNS))
flags = 0;
+ if (HAVE_OPT(INSECURE))
+ flags |= DANE_F_INSECURE;
+
printf("Querying %s (%s:%d)...\n", host, proto, port);
ret = dane_state_init(&s, flags);
if (ret < 0)