diff options
author | Martin Willi <martin@strongswan.org> | 2009-08-13 17:14:41 +0200 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2009-08-26 11:23:50 +0200 |
commit | 833dcfa5300d707cb42a1fcd844d1ad5834d8bf6 (patch) | |
tree | 2ebb5b24aee2f1d53cf9de06f7ce8cd56b688ed1 /src | |
parent | 3f9ec06f6fee0484f76a1083c4722fe112b38082 (diff) | |
download | strongswan-833dcfa5300d707cb42a1fcd844d1ad5834d8bf6.tar.bz2 strongswan-833dcfa5300d707cb42a1fcd844d1ad5834d8bf6.tar.xz |
log loaded private key/certificates
Diffstat (limited to 'src')
-rw-r--r-- | src/pluto/certs.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/pluto/certs.c b/src/pluto/certs.c index ccf48e101..7bdeb07bc 100644 --- a/src/pluto/certs.c +++ b/src/pluto/certs.c @@ -142,7 +142,11 @@ private_key_t* load_private_key(char* filename, prompt_pass_t *pass, BUILD_FROM_FILE, path, BUILD_END); } - if (key == NULL) + if (key) + { + plog(" loaded private key from file '%s'", filename); + } + else { plog(" syntax error in private key file"); } @@ -161,6 +165,7 @@ bool load_cert(char *filename, const char *label, cert_t *out) if (cert) { /* the API passes an empty cert_t, we move over and free the built one */ + plog(" loaded '%s' certificate from '%s'", label, filename); *out = *cert; free(cert); return TRUE; |