From d79063ee9f57ab73b9f39184440cc68b74621c1f Mon Sep 17 00:00:00 2001 From: Love Hornquist Astrand Date: Sun, 8 Aug 2010 15:49:49 -0700 Subject: [PATCH] add id-secsig-sha-1WithRSAEncryption --- lib/hx509/crypto.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lib/hx509/crypto.c b/lib/hx509/crypto.c index 26ae31602..4ddcdbe6e 100644 --- a/lib/hx509/crypto.c +++ b/lib/hx509/crypto.c @@ -1267,6 +1267,19 @@ static const struct signature_alg rsa_with_sha1_alg = { rsa_create_signature }; +static const struct signature_alg rsa_with_sha1_alg_secsig = { + "rsa-with-sha1", + &asn1_oid_id_secsig_sha_1WithRSAEncryption, + &_hx509_signature_rsa_with_sha1_data, + &asn1_oid_id_pkcs1_rsaEncryption, + &_hx509_signature_sha1_data, + PROVIDE_CONF|REQUIRE_SIGNER|RA_RSA_USES_DIGEST_INFO|SIG_PUBLIC_SIG|SELF_SIGNED_OK, + 0, + NULL, + rsa_verify_signature, + rsa_create_signature +}; + static const struct signature_alg rsa_with_md5_alg = { "rsa-with-md5", &asn1_oid_id_pkcs1_md5WithRSAEncryption, @@ -1344,6 +1357,7 @@ static const struct signature_alg *sig_algs[] = { #endif &rsa_with_sha256_alg, &rsa_with_sha1_alg, + &rsa_with_sha1_alg_secsig, &pkcs1_rsa_sha1_alg, &rsa_with_md5_alg, &heim_rsa_pkcs1_x509,