keychain: flush certificate cache after reloading System keychain
authorMartin Willi <martin@revosec.ch>
Wed, 1 May 2013 09:14:16 +0000 (11:14 +0200)
committerMartin Willi <martin@revosec.ch>
Thu, 18 Jul 2013 10:17:54 +0000 (12:17 +0200)
src/libstrongswan/plugins/keychain/keychain_creds.c

index 546d3ef..ddcc7a4 100644 (file)
@@ -125,6 +125,8 @@ static OSStatus keychain_cb(SecKeychainEvent keychainEvent,
        lib->credmgr->add_set(lib->credmgr, &new->set);
        lib->credmgr->remove_set(lib->credmgr, &this->set->set);
 
+       lib->credmgr->flush_cache(lib->credmgr, CERT_X509);
+
        this->set->destroy(this->set);
        this->set = new;