diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-04-19 19:18:05 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-04-19 19:26:27 +0200 |
commit | 2e37e3c4a22e88024cca71269d25163e012ac146 (patch) | |
tree | 26ed06bc6329fa39c2371d0c04386f7a8066da74 /src/danetool.c | |
parent | 1e409923cf9371737eb7c11f68afcfe2cf3db340 (diff) | |
download | gnutls-2e37e3c4a22e88024cca71269d25163e012ac146.tar.gz |
tools: avoid extracting the value of the app-proto alias
Instead always extract the starttls-proto value, as it seems
that libopts doesn't report any value for the former. This
corrects the starttls capability of danetool and gnutls-cli-debug.
Diffstat (limited to 'src/danetool.c')
-rw-r--r-- | src/danetool.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/danetool.c b/src/danetool.c index b05c49b78c..bdccbb3c8b 100644 --- a/src/danetool.c +++ b/src/danetool.c @@ -220,8 +220,8 @@ static void dane_check(const char *host, const char *proto, if (!cinfo->cert) { const char *app_proto = NULL; - if (HAVE_OPT(APP_PROTO)) - app_proto = OPT_ARG(APP_PROTO); + if (HAVE_OPT(STARTTLS_PROTO)) + app_proto = OPT_ARG(STARTTLS_PROTO); cinfo->cert = obtain_cert(host, proto, service, app_proto, HAVE_OPT(QUIET)); del = 1; |