diff options
author | 2003-11-11 22:15:18 +0000 | |
---|---|---|
committer | 2003-11-11 22:15:18 +0000 | |
commit | cdc51833b6c06c4d2bb61dab574d6d6c40e4a806 (patch) | |
tree | f9fc9a67a1a98fe5ec5af41fc8a54135caae46f8 /lib/libcrypto/x509/x509type.c | |
parent | import 0.9.7c (diff) | |
download | wireguard-openbsd-cdc51833b6c06c4d2bb61dab574d6d6c40e4a806.tar.xz wireguard-openbsd-cdc51833b6c06c4d2bb61dab574d6d6c40e4a806.zip |
merge 0.9.7c; minor bugsfixes;
API addition: ERR_release_err_state_table
[make includes before you build libssl/libcrypto]
Diffstat (limited to 'lib/libcrypto/x509/x509type.c')
-rw-r--r-- | lib/libcrypto/x509/x509type.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libcrypto/x509/x509type.c b/lib/libcrypto/x509/x509type.c index 8e78b344581..f78c2a6b438 100644 --- a/lib/libcrypto/x509/x509type.c +++ b/lib/libcrypto/x509/x509type.c @@ -99,14 +99,15 @@ int X509_certificate_type(X509 *x, EVP_PKEY *pkey) case EVP_PKEY_RSA: ret|=EVP_PKS_RSA; break; - case EVP_PKS_DSA: + case EVP_PKEY_DSA: ret|=EVP_PKS_DSA; break; default: 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); |