summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormcgreer%netscape.com <devnull@localhost>2000-10-02 17:39:37 +0000
committermcgreer%netscape.com <devnull@localhost>2000-10-02 17:39:37 +0000
commit86436a0909f82204ee225b10b19e8f196ee62513 (patch)
tree2c4ff49c6beb6b444149afc386b6bc56f8d90cf7
parent081e517960e4bee22b5f432e3646c91c5093d940 (diff)
downloadnss-hg-86436a0909f82204ee225b10b19e8f196ee62513.tar.gz
fix 3.1 bugs: change && to || for arg check, two new functions are static
-rw-r--r--security/nss/lib/freebl/rsa.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/security/nss/lib/freebl/rsa.c b/security/nss/lib/freebl/rsa.c
index 41b7936bf..86a7fe41e 100644
--- a/security/nss/lib/freebl/rsa.c
+++ b/security/nss/lib/freebl/rsa.c
@@ -133,7 +133,7 @@ RSA_NewKey(int keySizeInBits, SECItem *publicExponent)
RSAPrivateKey *key = NULL;
PRArenaPool *arena = NULL;
/* Require key size to be a multiple of 16 bits. */
- if (!publicExponent && keySizeInBits % 16 != 0) {
+ if (!publicExponent || keySizeInBits % 16 != 0) {
PORT_SetError(SEC_ERROR_INVALID_ARGS);
return NULL;
}
@@ -268,7 +268,7 @@ cleanup:
/*
** RSA Private key operation (no CRT).
*/
-SECStatus
+static SECStatus
rsa_PrivateKeyOp(RSAPrivateKey *key,
unsigned char *output,
unsigned char *input)
@@ -311,7 +311,7 @@ cleanup:
/*
** RSA Private key operation using CRT.
*/
-SECStatus
+static SECStatus
rsa_PrivateKeyOpCRT(RSAPrivateKey *key,
unsigned char *output,
unsigned char *input)