fixed XAUTHResp bug
This commit is contained in:
+3
-4
@@ -231,11 +231,12 @@ ike_alg_db_new(struct alg_info_ike *ai , lset_t policy)
|
|||||||
{
|
{
|
||||||
struct db_context *db_ctx = NULL;
|
struct db_context *db_ctx = NULL;
|
||||||
struct ike_info *ike_info;
|
struct ike_info *ike_info;
|
||||||
u_int ealg, halg, modp, eklen = 0;
|
|
||||||
struct encrypt_desc *enc_desc;
|
struct encrypt_desc *enc_desc;
|
||||||
bool is_xauth_server;
|
u_int ealg, halg, modp, eklen = 0;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
bool is_xauth_server = (policy & POLICY_XAUTH_SERVER) != LEMPTY;
|
||||||
|
|
||||||
if (!ai)
|
if (!ai)
|
||||||
{
|
{
|
||||||
whack_log(RC_LOG_SERIOUS, "no IKE algorithms "
|
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);
|
db_attr_add_values(db_ctx, OAKLEY_GROUP_DESCRIPTION, modp);
|
||||||
}
|
}
|
||||||
|
|
||||||
is_xauth_server = (policy & POLICY_XAUTH_SERVER) != LEMPTY;
|
|
||||||
|
|
||||||
if (policy & POLICY_XAUTH_RSASIG)
|
if (policy & POLICY_XAUTH_RSASIG)
|
||||||
{
|
{
|
||||||
db_trans_add(db_ctx, KEY_IKE);
|
db_trans_add(db_ctx, KEY_IKE);
|
||||||
|
|||||||
Reference in New Issue
Block a user