initiator now checks for private key much earlier

This commit is contained in:
Andreas Steffen 2009-06-16 07:59:31 +02:00
parent 0002de3b98
commit 5fa879238b
2 changed files with 6 additions and 5 deletions

View 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))

View 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