Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(288)

Unified Diff: nss/lib/softoken/lowkey.c

Issue 195763027: Update NSS to NSS_3_16_RC0. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/nss/
Patch Set: Use the RTM tag Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « nss/lib/softoken/fipstokn.c ('k') | nss/lib/softoken/lowkeyi.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: nss/lib/softoken/lowkey.c
===================================================================
--- nss/lib/softoken/lowkey.c (revision 256695)
+++ nss/lib/softoken/lowkey.c (working copy)
@@ -9,7 +9,7 @@
#include "secasn1.h"
#include "secerr.h"
-#ifdef NSS_ENABLE_ECC
+#ifndef NSS_DISABLE_ECC
#include "softoken.h"
#endif
@@ -91,7 +91,7 @@
{ 0, }
};
-#ifdef NSS_ENABLE_ECC
+#ifndef NSS_DISABLE_ECC
/* XXX This is just a placeholder for later when we support
* generic curves and need full-blown support for parsing EC
@@ -140,7 +140,7 @@
SEC_ASN1_SUB(SEC_BitStringTemplate) },
{ 0, }
};
-#endif /* NSS_ENABLE_ECC */
+#endif /* NSS_DISABLE_ECC */
/*
* See bugzilla bug 125359
* Since NSS (via PKCS#11) wants to handle big integers as unsigned ints,
@@ -196,7 +196,7 @@
key->u.dh.privateValue.type = siUnsignedInteger;
}
-#ifdef NSS_ENABLE_ECC
+#ifndef NSS_DISABLE_ECC
void
prepare_low_ecparams_for_asn1(ECParams *params)
{
@@ -213,7 +213,7 @@
key->u.ec.privateValue.type = siUnsignedInteger;
key->u.ec.publicValue.type = siUnsignedInteger;
}
-#endif /* NSS_ENABLE_ECC */
+#endif /* NSS_DISABLE_ECC */
void
nsslowkey_DestroyPrivateKey(NSSLOWKEYPrivateKey *privk)
@@ -341,7 +341,7 @@
if (rv == SECSuccess) return pubk;
}
break;
-#ifdef NSS_ENABLE_ECC
+#ifndef NSS_DISABLE_ECC
case NSSLOWKEYECKey:
pubk = (NSSLOWKEYPublicKey *)PORT_ArenaZAlloc(arena,
sizeof(NSSLOWKEYPublicKey));
@@ -360,7 +360,7 @@
if (rv == SECSuccess) return pubk;
}
break;
-#endif /* NSS_ENABLE_ECC */
+#endif /* NSS_DISABLE_ECC */
/* No Fortezza in Low Key implementations (Fortezza keys aren't
* stored in our data base */
default:
@@ -459,7 +459,7 @@
&(privKey->u.dh.base));
if(rv != SECSuccess) break;
break;
-#ifdef NSS_ENABLE_ECC
+#ifndef NSS_DISABLE_ECC
case NSSLOWKEYECKey:
rv = SECITEM_CopyItem(poolp, &(returnKey->u.ec.version),
&(privKey->u.ec.version));
@@ -476,7 +476,7 @@
&(privKey->u.ec.ecParams));
if (rv != SECSuccess) break;
break;
-#endif /* NSS_ENABLE_ECC */
+#endif /* NSS_DISABLE_ECC */
default:
rv = SECFailure;
}
« no previous file with comments | « nss/lib/softoken/fipstokn.c ('k') | nss/lib/softoken/lowkeyi.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698