diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2009-06-12 19:59:35 +0200 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2009-06-12 19:59:49 +0200 |
commit | 11e6d28533221ed829fd0369b52c1c3957ca5219 (patch) | |
tree | af08ca2df8dc9d25e66e725fa0c2c769731a2c6f /src/libstrongswan/plugins/gcrypt | |
parent | eca36f44de3344805707bf126f348ba3b6a290b1 (diff) | |
download | strongswan-11e6d28533221ed829fd0369b52c1c3957ca5219.tar.bz2 strongswan-11e6d28533221ed829fd0369b52c1c3957ca5219.tar.xz |
pluto supports ECDSA authentication
Diffstat (limited to 'src/libstrongswan/plugins/gcrypt')
-rw-r--r-- | src/libstrongswan/plugins/gcrypt/gcrypt_rsa_private_key.c | 2 | ||||
-rw-r--r-- | src/libstrongswan/plugins/gcrypt/gcrypt_rsa_public_key.c | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/src/libstrongswan/plugins/gcrypt/gcrypt_rsa_private_key.c b/src/libstrongswan/plugins/gcrypt/gcrypt_rsa_private_key.c index 4ee431a83..d622a1fe1 100644 --- a/src/libstrongswan/plugins/gcrypt/gcrypt_rsa_private_key.c +++ b/src/libstrongswan/plugins/gcrypt/gcrypt_rsa_private_key.c @@ -144,8 +144,6 @@ static bool sign(private_gcrypt_rsa_private_key_t *this, signature_scheme_t sche { switch (scheme) { - case SIGN_DEFAULT: - /* default is EMSA-PKCS1 using SHA1 */ case SIGN_RSA_EMSA_PKCS1_SHA1: return sign_pkcs1(this, HASH_SHA1, "sha1", data, sig); case SIGN_RSA_EMSA_PKCS1_SHA256: diff --git a/src/libstrongswan/plugins/gcrypt/gcrypt_rsa_public_key.c b/src/libstrongswan/plugins/gcrypt/gcrypt_rsa_public_key.c index bdb5d7feb..ad02d3a28 100644 --- a/src/libstrongswan/plugins/gcrypt/gcrypt_rsa_public_key.c +++ b/src/libstrongswan/plugins/gcrypt/gcrypt_rsa_public_key.c @@ -138,8 +138,6 @@ static bool verify(private_gcrypt_rsa_public_key_t *this, return verify_pkcs1(this, HASH_SHA384, "sha384", data, signature); case SIGN_RSA_EMSA_PKCS1_SHA512: return verify_pkcs1(this, HASH_SHA512, "sha512", data, signature); - case SIGN_DEFAULT: - /* parsing hash OID currently not supported by gcrypt, fall */ default: DBG1("signature scheme %N not supported in RSA", signature_scheme_names, scheme); |