mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
dirmngr: Support ECDSA for OCSP.
* dirmngr/validate.c (pk_algo_from_sexp): Make public. Support ECC.
* dirmngr/ocsp.c (check_signature): Remove hash preparation out to ...
(check_signature_core): here. This changes the arg s_hash to md.
Support ECDSA.
--
The test was done with my qualified signature certificate from the
Telesec and their responder http://tqrca1.ocsp.telesec.de/ocspr .
See also libksba commit rK24992a4a7a61d93759e1dbd104b845903d4589bf
(cherry picked from commit 890e9849b5
)
This commit is contained in:
parent
502d43ac30
commit
afaed3c122
3 changed files with 107 additions and 50 deletions
|
@ -48,6 +48,9 @@
|
|||
#define VALIDATE_FLAG_NOCRLCHECK 1024
|
||||
|
||||
|
||||
/* Helper to get the public key algo from a public key. */
|
||||
int pk_algo_from_sexp (gcry_sexp_t pkey);
|
||||
|
||||
/* Validate the certificate CHAIN up to the trust anchor. Optionally
|
||||
return the closest expiration time in R_EXPTIME. */
|
||||
gpg_error_t validate_cert_chain (ctrl_t ctrl,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue