]> git.ipfire.org Git - thirdparty/strongswan.git/commit
swanctl: Use returned key ID to track loaded private keys
authorTobias Brunner <tobias@strongswan.org>
Fri, 12 May 2017 07:15:24 +0000 (09:15 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 23 May 2017 14:41:02 +0000 (16:41 +0200)
commitcbbd34f507b789cd2d629a39baffe1c430121142
treef60edac93ea2191db74839d4df97b383f41ea039
parent605a98c7ce108e8083502364292cce87c0a72b51
swanctl: Use returned key ID to track loaded private keys

There was a direct call to load_key() for unencrypted keys that didn't
remove the key ID from the hashtable, which caused keys to get unloaded
when --load-creds was called multiple times.
src/swanctl/commands/load_creds.c