From: Richard Levitte Date: Thu, 19 Jun 2003 18:55:53 +0000 (+0000) Subject: We set the export flag for 512 *bit* keys, not 512 *byte* ones. X-Git-Tag: OpenSSL_0_9_6k~21 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a974518704e2e2d9086ffd5750063e7ca291b1b5;p=oweals%2Fopenssl.git We set the export flag for 512 *bit* keys, not 512 *byte* ones. PR: 587 --- diff --git a/crypto/x509/x509type.c b/crypto/x509/x509type.c index 11e7b51693..f78c2a6b43 100644 --- a/crypto/x509/x509type.c +++ b/crypto/x509/x509type.c @@ -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);