aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/plugins/openssl/openssl_crl.c
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2012-06-11 14:33:34 +0200
committerMartin Willi <martin@revosec.ch>2012-06-12 14:24:49 +0200
commita37f2d2006e74bce8614ebf13b45c7a7e9851f83 (patch)
tree3372f601ece522e8a171d62e436274ac213038b7 /src/libstrongswan/plugins/openssl/openssl_crl.c
parent439d0742e907a5a56005acad17b0bfe1082bdf24 (diff)
downloadstrongswan-a37f2d2006e74bce8614ebf13b45c7a7e9851f83.tar.bz2
strongswan-a37f2d2006e74bce8614ebf13b45c7a7e9851f83.tar.xz
certificate_t->issued_by takes an argument to receive signature scheme
Diffstat (limited to 'src/libstrongswan/plugins/openssl/openssl_crl.c')
-rw-r--r--src/libstrongswan/plugins/openssl/openssl_crl.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/libstrongswan/plugins/openssl/openssl_crl.c b/src/libstrongswan/plugins/openssl/openssl_crl.c
index 9a9efb2b6..e529ff8a5 100644
--- a/src/libstrongswan/plugins/openssl/openssl_crl.c
+++ b/src/libstrongswan/plugins/openssl/openssl_crl.c
@@ -225,7 +225,8 @@ METHOD(certificate_t, has_subject_or_issuer, id_match_t,
}
METHOD(certificate_t, issued_by, bool,
- private_openssl_crl_t *this, certificate_t *issuer)
+ private_openssl_crl_t *this, certificate_t *issuer,
+ signature_scheme_t *scheme)
{
chunk_t fingerprint, tbs;
public_key_t *key;
@@ -270,6 +271,10 @@ METHOD(certificate_t, issued_by, bool,
openssl_asn1_str2chunk(this->crl->signature));
free(tbs.ptr);
key->destroy(key);
+ if (valid && scheme)
+ {
+ *scheme = this->scheme;
+ }
return valid;
}