]> granicus.if.org Git - neomutt/commit
Change gnutls certificate_file processing and interactive prompts.
authorKevin McCarthy <kevin@8t8.us>
Tue, 9 Oct 2018 21:39:09 +0000 (14:39 -0700)
committerRichard Russon <rich@flatcap.org>
Tue, 9 Oct 2018 21:39:09 +0000 (14:39 -0700)
commita4b9da297f5fec84883d3df7ca9c9ab287ef9fc2
tree1cdc518b6fccab67ea90d7540d9b63c0d04ffa19
parent12031c8d689119fbeda3dc919b2a77765da165da
Change gnutls certificate_file processing and interactive prompts.

Accept a saved cert at any point in the chain, except for those
revoked or with invalid dates.

The INSECUREALG processing was a bit goofed up.  It was skipping the
prompt for every chain except the host, and was only displaying an
error for entry 1 (the host being 0, root being len-1).  Instead
prompt at any point, and display a warning as with the other errors.

Add a CERTERR_OTHER type to capture other bits.  Recently GnuTLS has
added additional certificate_status_t types.  We may want to improve
the prompts in the future for those, but for now at least make sure
it's recorded in certerr.
conn/ssl_gnutls.c