0

net: Don't access SECOID_AlgorithmIDTemplate directly.

This is required when building nss as a dynamic library.

BUG=85776
TEST=none
Review URL: http://codereview.chromium.org/7189044

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89732 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
rvargas@google.com
2011-06-20 21:09:07 +00:00
parent cf5db4cbdf
commit 1dc2961c69
2 changed files with 4 additions and 2 deletions

@ -54,7 +54,8 @@ bool SignatureVerifier::VerifyInit(const uint8* signature_algorithm,
sig_alg_der.len = signature_algorithm_len;
SECAlgorithmID sig_alg_id;
SECStatus rv;
rv = SEC_QuickDERDecodeItem(arena, &sig_alg_id, SECOID_AlgorithmIDTemplate,
rv = SEC_QuickDERDecodeItem(arena, &sig_alg_id,
SEC_ASN1_GET(SECOID_AlgorithmIDTemplate),
&sig_alg_der);
if (rv != SECSuccess) {
SECKEY_DestroyPublicKey(public_key);

@ -226,7 +226,8 @@ bool DNSSECKeySet::VerifySignature(
sig_alg_der.len = signature_algorithm.size();
SECAlgorithmID sig_alg_id;
SECStatus rv;
rv = SEC_QuickDERDecodeItem(arena, &sig_alg_id, SECOID_AlgorithmIDTemplate,
rv = SEC_QuickDERDecodeItem(arena, &sig_alg_id,
SEC_ASN1_GET(SECOID_AlgorithmIDTemplate),
&sig_alg_der);
if (rv != SECSuccess) {
SECKEY_DestroyPublicKey(pub_key);