diff options
author | Kurt Roeckx <kurt@roeckx.be> | 2015-04-18 12:50:25 +0200 |
---|---|---|
committer | Kurt Roeckx <kurt@roeckx.be> | 2015-05-20 22:19:34 +0200 |
commit | 2d8e705b2a68a6dfe620f781c55e8230a0cb2dfb (patch) | |
tree | a49fa90026109a5f734d4200c51acda596c11970 /crypto/x509 | |
parent | f4d1fb776955187a35c3ee36d4413871917c3138 (diff) |
Correctly check for export size limit
40 bit ciphers are limited to 512 bit RSA, 56 bit ciphers to 1024 bit.
Reviewed-by: Rich Salz <rsalz@openssl.org>
(cherry picked from commit ac38115c1a4fb61c66c2a8cd2a9800751828d328)
Diffstat (limited to 'crypto/x509')
-rw-r--r-- | crypto/x509/x509type.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/crypto/x509/x509type.c b/crypto/x509/x509type.c index 033175257a..9219f753bf 100644 --- a/crypto/x509/x509type.c +++ b/crypto/x509/x509type.c @@ -121,9 +121,6 @@ int X509_certificate_type(X509 *x, EVP_PKEY *pkey) } } - /* /8 because it's 1024 bits we look for, not bytes */ - if (EVP_PKEY_size(pk) <= 1024 / 8) - ret |= EVP_PKT_EXP; if (pkey == NULL) EVP_PKEY_free(pk); return (ret); |