diff options
author | Daiki Ueno <ueno@gnu.org> | 2021-05-03 14:19:22 +0200 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2021-05-03 14:19:22 +0200 |
commit | 2abc57ffdb4501c4e14ba1a887ab8b03fdd1b118 (patch) | |
tree | 0b3748d02ec55970f4ef2fff8428b6a26b10277b /src | |
parent | f17e1be2ac1e6b0c761002f9f5741565ca926fcf (diff) | |
download | gnutls-2abc57ffdb4501c4e14ba1a887ab8b03fdd1b118.tar.gz |
certtool: fix parsing of --verify-profile option
Signed-off-by: Daiki Ueno <ueno@gnu.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/certtool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/certtool.c b/src/certtool.c index f4e2f1b16d..2f1f367184 100644 --- a/src/certtool.c +++ b/src/certtool.c @@ -1423,7 +1423,7 @@ static void cmd_parser(int argc, char **argv) } if (HAVE_OPT(VERIFY_PROFILE)) { - if (strcasecmp(OPT_ARG(VERIFY_PROFILE), "none")) { + if (strcasecmp(OPT_ARG(VERIFY_PROFILE), "none") == 0) { cinfo.verification_profile = (gnutls_sec_param_t)GNUTLS_PROFILE_UNKNOWN; } else { cinfo.verification_profile = (gnutls_sec_param_t)gnutls_certificate_verification_profile_get_id(OPT_ARG(VERIFY_PROFILE)); |