New verify-error GnuTLS interface for certificate validation
authorTed Zlatanov <tzz@lifelogs.com>
Sat, 14 Dec 2013 18:04:09 +0000 (13:04 -0500)
committerTed Zlatanov <tzz@lifelogs.com>
Sat, 14 Dec 2013 18:04:09 +0000 (13:04 -0500)
commit31b4827ea9ba8d22deb17c0593f0f555a33e1fa4
treedbfcb55f9fa3edc10623b34d5cf964a9a1167f7d
parentf93cc74f04312c1b27bfcc870c1782083525fc61
New verify-error GnuTLS interface for certificate validation

* net/gnutls.el (gnutls-verify-error): New defcustom to control
the behavior when a certificate fails validation.  Defaults to
old behavior: never abort, just warn.
(gnutls-negotiate): Use it.

* gnutls.c: Replace `:verify_hostname_error' with `:verify_error',
now a list of certificate validation checks that will abort a
connection with an error.
(Fgnutls_boot): Document it and use it.
lisp/ChangeLog
lisp/net/gnutls.el
src/ChangeLog
src/gnutls.c