1024 is the export key bits limit according to current regulations, not 512.

PR: 771
Submitted by: c zhang <czhang2005@hotmail.com>
This commit is contained in:
Richard Levitte 2003-11-28 22:39:19 +00:00
parent 444c3a8492
commit b727907ae8

View File

@ -112,7 +112,7 @@ int X509_certificate_type(X509 *x, EVP_PKEY *pkey)
break;
}
if (EVP_PKEY_size(pk) <= 512/8) /* /8 because it's 512 bits we look
if (EVP_PKEY_size(pk) <= 1024/8)/* /8 because it's 1024 bits we look
for, not bytes */
ret|=EVP_PKT_EXP;
if(pkey==NULL) EVP_PKEY_free(pk);