initiator now checks for private key much earlier
authorAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 16 Jun 2009 05:59:31 +0000 (07:59 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 16 Jun 2009 05:59:31 +0000 (07:59 +0200)
src/pluto/ike_alg.c
testing/tests/ikev1/no-priv-key/evaltest.dat

index ee923c0..f833f85 100644 (file)
@@ -172,19 +172,19 @@ struct db_context *ike_alg_db_new(struct connection *c, lset_t policy)
 
                if (!ike_alg_get_crypter(ealg))
                {
-                       DBG_log("ike_alg: ike crypter %s not present",
+                       plog("ike alg: crypter %s not present",
                                        enum_show(&oakley_enc_names, ealg));
                        continue;
                }
                if (!ike_alg_get_hasher(halg)) 
                {
-                       DBG_log("ike_alg: ike hasher %s not present",
+                       plog("ike alg: hasher %s not present",
                                        enum_show(&oakley_hash_names, halg));
                        continue;
                }
                if (!ike_alg_get_dh_group(modp)) 
                {
-                       DBG_log("ike_alg: ike dh group %s not present",
+                       plog("ike alg: dh group %s not present",
                                        enum_show(&oakley_group_names, modp));
                        continue;
                }
@@ -197,6 +197,7 @@ struct db_context *ike_alg_db_new(struct connection *c, lset_t policy)
 
                        if (key == NULL)
                        {
+                               plog("ike alg: unable to locate my private key");
                                continue;
                        }
                        switch (key->get_type(key))
index 9bd85ba..c261216 100644 (file)
@@ -1,4 +1,4 @@
-carol::cat /var/log/auth.log::unable to locate my private key for RSA Signature::YES
-moon::cat /var/log/auth.log::ignoring informational payload, type AUTHENTICATION_FAILED::YES
+carol::cat /var/log/auth.log::unable to locate my private key::YES
+carol::cat /var/log/auth.log::empty ISAKMP SA proposal to send::YES
 moon::ipsec status::rw.*STATE_MAIN_R3.*ISAKMP SA established::NO
 carol::ipsec status::home.*STATE_MAIN_I4.*ISAKMP SA established::NO