summaryrefslogtreecommitdiffstats
path: root/crypto/signature_verifier_nss.cc
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-20 21:09:07 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-20 21:09:07 +0000
commit1dc2961c69bb18a61b0572e8f7bc0b8449b8fd60 (patch)
tree304c15ae51fe0d9d5ec2056500000914bdc7d852 /crypto/signature_verifier_nss.cc
parentcf5db4cbdfe677e4291cb8c077a472813af418af (diff)
downloadchromium_src-1dc2961c69bb18a61b0572e8f7bc0b8449b8fd60.zip
chromium_src-1dc2961c69bb18a61b0572e8f7bc0b8449b8fd60.tar.gz
chromium_src-1dc2961c69bb18a61b0572e8f7bc0b8449b8fd60.tar.bz2
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
Diffstat (limited to 'crypto/signature_verifier_nss.cc')
-rw-r--r--crypto/signature_verifier_nss.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/signature_verifier_nss.cc b/crypto/signature_verifier_nss.cc
index 8a7fd4f..662e8f2 100644
--- a/crypto/signature_verifier_nss.cc
+++ b/crypto/signature_verifier_nss.cc
@@ -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);