diff options
author | mcgreer%netscape.com <devnull@localhost> | 2001-01-05 22:37:50 +0000 |
---|---|---|
committer | mcgreer%netscape.com <devnull@localhost> | 2001-01-05 22:37:50 +0000 |
commit | e72d426d521a4b638748053fd8f4bd4165cdd9ed (patch) | |
tree | a0d24a43daccb969c33c75c7bd52a46137c53167 /security/nss/lib/freebl/rsa.c | |
parent | 39242ea5f66431eeb520160648f397e3fb42f028 (diff) | |
download | nss-hg-e72d426d521a4b638748053fd8f4bd4165cdd9ed.tar.gz |
widespread changes to reduce compiler warnings. liberal application of const.
Diffstat (limited to 'security/nss/lib/freebl/rsa.c')
-rw-r--r-- | security/nss/lib/freebl/rsa.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/security/nss/lib/freebl/rsa.c b/security/nss/lib/freebl/rsa.c index d9279c94a..3940a794a 100644 --- a/security/nss/lib/freebl/rsa.c +++ b/security/nss/lib/freebl/rsa.c @@ -116,7 +116,7 @@ rsa_keygen_from_primes(mp_int *p, mp_int *q, mp_int *e, RSAPrivateKey *key, /* 1. Compute n = p*q */ CHECK_MPI_OK( mp_mul(p, q, &n) ); /* verify that the modulus has the desired number of bits */ - if (mpl_significant_bits(&n) != keySizeInBits) { + if ((unsigned)mpl_significant_bits(&n) != keySizeInBits) { PORT_SetError(SEC_ERROR_NEED_RANDOM); rv = SECFailure; goto cleanup; @@ -277,7 +277,7 @@ rsa_modulusLen(SECItem *modulus) SECStatus RSA_PublicKeyOp(RSAPublicKey *key, unsigned char *output, - unsigned char *input) + const unsigned char *input) { unsigned int modLen; mp_int n, e, m, c; @@ -590,7 +590,7 @@ cleanup: SECStatus RSA_PrivateKeyOp(RSAPrivateKey *key, unsigned char *output, - unsigned char *input) + const unsigned char *input) { unsigned int modLen; unsigned int offset; |