dirmngr: Add option --no-crl to the VALIDATE cmd.
authorWerner Koch <wk@gnupg.org>
Fri, 17 Feb 2017 20:31:33 +0000 (21:31 +0100)
committerWerner Koch <wk@gnupg.org>
Fri, 17 Feb 2017 20:31:33 +0000 (21:31 +0100)
commitf07811ee2c0a8044551e2ec063eda61cff7f6e39
tree36f07a12fc3c897a4ef2a4bd9d39cc8e01045021
parent070211eb990f5ea41271eba432b6a6b485cef7c7
dirmngr: Add option --no-crl to the VALIDATE cmd.

* dirmngr/validate.h: Remove enums VALIDATE_MODE_*.
(VALIDATE_FLAG_SYSTRUST, VALIDATE_FLAG_EXTRATRUST)
(VALIDATE_FLAG_CRL, VALIDATE_FLAG_RECURSIVE)
(VALIDATE_FLAG_OCSP, VALIDATE_FLAG_TLS)
(VALIDATE_FLAG_NOCRLCHECK): New constants.
* dirmngr/validate.c (validate_cert_chain): Change arg 'mode' to
'flags'.  Change code accordingly.  Remove NO-CRL in TLS mode kludge.
* dirmngr/crlcache.c (crl_parse_insert): Change to use flag values for
the validate_cert_chain call.
* dirmngr/server.c (cmd_validate): Ditto.  Add new option --no-crl.

Signed-off-by: Werner Koch <wk@gnupg.org>
dirmngr/crlcache.c
dirmngr/server.c
dirmngr/validate.c
dirmngr/validate.h