Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mike Perry
Tor
Commits
f958b537
Commit
f958b537
authored
Mar 17, 2020
by
Nick Mathewson
⛰
Browse files
Use >= consistently with max_bits.
parent
2328c79a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/crypt_ops/crypto_rsa_nss.c
View file @
f958b537
...
...
@@ -736,7 +736,7 @@ crypto_pk_asn1_decode_private(const char *str, size_t len, int max_bits)
if
(
output
)
{
const
int
bits
=
SECKEY_PublicKeyStrengthInBits
(
output
->
pubkey
);
if
(
max_bits
>
0
&&
bits
>
max_bits
)
{
if
(
max_bits
>
=
0
&&
bits
>
max_bits
)
{
log_info
(
LD_CRYPTO
,
"Private key longer than expected."
);
crypto_pk_free
(
output
);
output
=
NULL
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment