support of encrypted private key files

This commit is contained in:
Andreas Steffen
2006-09-20 05:48:54 +00:00
parent 833a7cbc50
commit 490d267ac3
7 changed files with 61 additions and 28 deletions
@@ -488,7 +488,7 @@ rsa_public_key_t *rsa_public_key_create_from_file(char *filename)
chunk_t chunk = CHUNK_INITIALIZER;
rsa_public_key_t *pubkey = NULL;
if (!pem_asn1_load_file(filename, "", "public key", &chunk, &pgp))
if (!pem_asn1_load_file(filename, NULL, "public key", &chunk, &pgp))
return NULL;
pubkey = rsa_public_key_create_from_chunk(chunk);