pki: Actually make the default key type KEY_ANY for --self

Fixes: 05ccde0a8b ("pki: Add generic 'priv' key type that loads any
type of private key")
This commit is contained in:
Tobias Brunner 2017-03-24 10:10:13 +01:00
parent 3610d7607e
commit 3207193cbf
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ static void destroy_policy_mapping(x509_policy_mapping_t *mapping)
static int self()
{
cred_encoding_type_t form = CERT_ASN1_DER;
key_type_t type = KEY_RSA;
key_type_t type = KEY_ANY;
hash_algorithm_t digest = HASH_UNKNOWN;
certificate_t *cert = NULL;
private_key_t *private = NULL;