diff options
author | Richard Levitte <levitte@openssl.org> | 2003-06-19 18:55:50 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2003-06-19 18:55:50 +0000 |
commit | f6b9cd7f8224f8f1b7191d36a9bf1f55abeb3555 (patch) | |
tree | 43d442136e2b3088352f15aae165e789090b4265 /crypto/x509 | |
parent | 8fbb2af3921fa1b0b12976055e29a93055caca78 (diff) |
We set the export flag for 512 *bit* keys, not 512 *byte* ones.
PR: 587
Diffstat (limited to 'crypto/x509')
-rw-r--r-- | crypto/x509/x509type.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/x509/x509type.c b/crypto/x509/x509type.c index 4af98214a8..8fe1c54583 100644 --- a/crypto/x509/x509type.c +++ b/crypto/x509/x509type.c @@ -112,7 +112,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); |