From 024b979522fa8cad18bef96208064db5e68e228e Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Fri, 13 Oct 2017 14:33:43 +0200 Subject: certificate: Return signature scheme and parameters from issued_by() method This also required some include restructuring (avoid including library.h in headers) to avoid unresolvable circular dependencies. --- src/libstrongswan/plugins/x509/x509_ocsp_response.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/libstrongswan/plugins/x509/x509_ocsp_response.c') diff --git a/src/libstrongswan/plugins/x509/x509_ocsp_response.c b/src/libstrongswan/plugins/x509/x509_ocsp_response.c index fd0d84e48..e803c185c 100644 --- a/src/libstrongswan/plugins/x509/x509_ocsp_response.c +++ b/src/libstrongswan/plugins/x509/x509_ocsp_response.c @@ -703,7 +703,7 @@ METHOD(certificate_t, has_issuer, id_match_t, METHOD(certificate_t, issued_by, bool, private_x509_ocsp_response_t *this, certificate_t *issuer, - signature_scheme_t *schemep) + signature_params_t **schemep) { public_key_t *key; signature_scheme_t scheme; @@ -758,7 +758,9 @@ METHOD(certificate_t, issued_by, bool, key->destroy(key); if (valid && schemep) { - *schemep = scheme; + INIT(*schemep, + .scheme = scheme, + ); } return valid; } -- cgit v1.2.3