summaryrefslogtreecommitdiff
path: root/lib/cryptohi
diff options
context:
space:
mode:
authorWan-Teh Chang <wtc@google.com>2013-04-04 10:35:52 -0700
committerWan-Teh Chang <wtc@google.com>2013-04-04 10:35:52 -0700
commit619f38f2435c11c12cd8c14ce4a44e110c8b6a67 (patch)
tree602c21155a8f4ff8436e02178e51827dfdb10030 /lib/cryptohi
parent380a2f5f9f26ea94b643697c3c930a7ac98dce13 (diff)
downloadnss-hg-619f38f2435c11c12cd8c14ce4a44e110c8b6a67.tar.gz
Bug 367577: Only require NSS_ENABLE_ECC to sign data with EC keys.
r=rrelyea. Basic ECC. r=rrelyea.
Diffstat (limited to 'lib/cryptohi')
-rw-r--r--lib/cryptohi/secsign.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/cryptohi/secsign.c b/lib/cryptohi/secsign.c
index 25ace4d4d..8f59fe692 100644
--- a/lib/cryptohi/secsign.c
+++ b/lib/cryptohi/secsign.c
@@ -55,13 +55,6 @@ SGN_NewContext(SECOidTag alg, SECKEYPrivateKey *key)
return 0;
}
-#ifndef NSS_ECC_MORE_THAN_SUITE_B
- if (key->keyType == ecKey) {
- PORT_SetError(SEC_ERROR_INVALID_ALGORITHM);
- return 0;
- }
-#endif
-
cx = (SGNContext*) PORT_ZAlloc(sizeof(SGNContext));
if (cx) {
cx->hashalg = hashalg;