aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/plugins/x509/x509_ocsp_request.c
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2008-06-22 17:41:07 +0000
committerAndreas Steffen <andreas.steffen@strongswan.org>2008-06-22 17:41:07 +0000
commit0d12006def5a4eda4b2d00f4b6a6ac2446103128 (patch)
tree15f85027a66ba16082387c97f975808447a7c7f7 /src/libstrongswan/plugins/x509/x509_ocsp_request.c
parent3af698fa4d1d3b72cfd63b770e6b6719fe88a12b (diff)
downloadstrongswan-0d12006def5a4eda4b2d00f4b6a6ac2446103128.tar.bz2
strongswan-0d12006def5a4eda4b2d00f4b6a6ac2446103128.tar.xz
support of ECDSA signatures for all certificate types
Diffstat (limited to 'src/libstrongswan/plugins/x509/x509_ocsp_request.c')
-rw-r--r--src/libstrongswan/plugins/x509/x509_ocsp_request.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libstrongswan/plugins/x509/x509_ocsp_request.c b/src/libstrongswan/plugins/x509/x509_ocsp_request.c
index 9f27f2306..0fc5b9df5 100644
--- a/src/libstrongswan/plugins/x509/x509_ocsp_request.c
+++ b/src/libstrongswan/plugins/x509/x509_ocsp_request.c
@@ -267,6 +267,10 @@ static chunk_t build_optionalSignature(private_x509_ocsp_request_t *this,
oid = OID_SHA1_WITH_RSA;
scheme = SIGN_RSA_EMSA_PKCS1_SHA1;
break;
+ case KEY_ECDSA:
+ oid = OID_ECDSA_WITH_SHA1;
+ scheme = SIGN_ECDSA_WITH_SHA1;
+ break;
default:
DBG1("unable to sign OCSP request, %N signature not supported",
key_type_names, this->key->get_type(this->key));