diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2007-01-15 07:45:42 +0000 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2007-01-15 07:45:42 +0000 |
commit | 4305c488ed5a2d61c04c37bf2619e40a4164a421 (patch) | |
tree | 15c7067519fc292c21ea2120578b6b341bac3c02 /src/pluto/ike_alg.c | |
parent | aa358acaa7699a32533df143e9510cedcad41a94 (diff) | |
download | strongswan-4305c488ed5a2d61c04c37bf2619e40a4164a421.tar.bz2 strongswan-4305c488ed5a2d61c04c37bf2619e40a4164a421.tar.xz |
fixed XAUTHResp bug
Diffstat (limited to 'src/pluto/ike_alg.c')
-rw-r--r-- | src/pluto/ike_alg.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/pluto/ike_alg.c b/src/pluto/ike_alg.c index a62285809..c43a7c7f5 100644 --- a/src/pluto/ike_alg.c +++ b/src/pluto/ike_alg.c @@ -231,11 +231,12 @@ ike_alg_db_new(struct alg_info_ike *ai , lset_t policy) { struct db_context *db_ctx = NULL; struct ike_info *ike_info; - u_int ealg, halg, modp, eklen = 0; struct encrypt_desc *enc_desc; - bool is_xauth_server; + u_int ealg, halg, modp, eklen = 0; int i; + bool is_xauth_server = (policy & POLICY_XAUTH_SERVER) != LEMPTY; + if (!ai) { whack_log(RC_LOG_SERIOUS, "no IKE algorithms " @@ -305,8 +306,6 @@ ike_alg_db_new(struct alg_info_ike *ai , lset_t policy) db_attr_add_values(db_ctx, OAKLEY_GROUP_DESCRIPTION, modp); } - is_xauth_server = (policy & POLICY_XAUTH_SERVER) != LEMPTY; - if (policy & POLICY_XAUTH_RSASIG) { db_trans_add(db_ctx, KEY_IKE); |