We set the export flag for 512 *bit* keys, not 512 *byte* ones.

PR: 587
This commit is contained in:
Richard Levitte 2003-06-19 18:55:56 +00:00
parent 705d0f5c8d
commit 4aae637f6c

View file

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