extended hasher_signature_algorithm_to_oid() function

This commit is contained in:
Andreas Steffen
2009-09-13 21:41:51 +02:00
parent ba274c2343
commit 210d287368
5 changed files with 47 additions and 76 deletions
+2 -1
View File
@@ -825,7 +825,8 @@ bool build_envelopedData(private_pkcs7_t *this, x509_t *cert,
bool build_signedData(private_pkcs7_t *this, rsa_private_key_t *private_key,
hash_algorithm_t alg)
{
int signature_oid = hasher_signature_algorithm_to_oid(alg);
int signature_oid = hasher_signature_algorithm_to_oid(alg,
private_key->get_type(private_key));
chunk_t authenticatedAttributes = chunk_empty;
chunk_t encryptedDigest = chunk_empty;
chunk_t signerInfo;