diff options
author | ylavic <ylavic@13f79535-47bb-0310-9956-ffa450edef68> | 2017-02-02 13:14:16 +0000 |
---|---|---|
committer | ylavic <ylavic@13f79535-47bb-0310-9956-ffa450edef68> | 2017-02-02 13:14:16 +0000 |
commit | c3943db7e50a70ab829a6e1ab90b62996141715c (patch) | |
tree | 74287704dcee14fa6ae364e05b57d73e258e5041 /crypto | |
parent | 061cdafe7e0a19226e9496705ff2e61bffb1168a (diff) | |
download | libapr-c3943db7e50a70ab829a6e1ab90b62996141715c.tar.gz |
apr_crypto: follow up to r1772803.
Still avoid excessive bcrypt iterations, verification side this time.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1781391 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/crypt_blowfish.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/crypt_blowfish.c b/crypto/crypt_blowfish.c index 013c1ed82..3d306cf8d 100644 --- a/crypto/crypt_blowfish.c +++ b/crypto/crypt_blowfish.c @@ -675,9 +675,9 @@ static char *BF_crypt(const char *key, const char *setting, setting[2] < 'a' || setting[2] > 'z' || !flags_by_subtype[(unsigned int)(unsigned char)setting[2] - 'a'] || setting[3] != '$' || - setting[4] < '0' || setting[4] > '3' || + setting[4] < '0' || setting[4] > '1' || setting[5] < '0' || setting[5] > '9' || - (setting[4] == '3' && setting[5] > '1') || + (setting[4] == '1' && setting[5] > '7') || setting[6] != '$') { __set_errno(EINVAL); return NULL; |