mirror of
https://github.com/chris2511/xca.git
synced 2026-09-14 11:06:19 +05:00
Fixup for "Assure traditional file format if PKCS#8 NOT selected"
Also RSA and DSA keys were marked as EC PRIVATE KEY. Add break to the switch statement
This commit is contained in:
parent
3ee2fc4015
commit
cd118e4e72
@ -732,10 +732,10 @@ int PEM_write_bio_PrivateKey_traditional(BIO *bp, EVP_PKEY *x,
|
||||
int keytype = EVP_PKEY_id(x);
|
||||
|
||||
switch (keytype) {
|
||||
case EVP_PKEY_RSA: t = "RSA";
|
||||
case EVP_PKEY_DSA: t = "DSA";
|
||||
case EVP_PKEY_RSA: t = "RSA"; break;
|
||||
case EVP_PKEY_DSA: t = "DSA"; break;
|
||||
#ifndef OPENSSL_NO_EC
|
||||
case EVP_PKEY_EC: t = "EC";
|
||||
case EVP_PKEY_EC: t = "EC"; break;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user