Fixed compiler warning (set but unused variable)
authorMartin Willi <martin@revosec.ch>
Tue, 13 Dec 2011 12:42:41 +0000 (13:42 +0100)
committerMartin Willi <martin@revosec.ch>
Tue, 20 Mar 2012 16:31:20 +0000 (17:31 +0100)
src/libcharon/sa/authenticators/pubkey_v1_authenticator.c

index 82fc8cf..e3e7a80 100644 (file)
@@ -76,7 +76,7 @@ METHOD(authenticator_t, build, status_t,
 
        id = this->ike_sa->get_my_id(this->ike_sa);
        auth = this->ike_sa->get_auth_cfg(this->ike_sa, TRUE);
-       private = lib->credmgr->get_private(lib->credmgr, KEY_RSA, id, auth);
+       private = lib->credmgr->get_private(lib->credmgr, type, id, auth);
        if (!private)
        {
                DBG1(DBG_IKE, "no private key found for '%Y'", id);