"mediation", 2, ike_cfg,
identification_create_from_encoding(ID_KEY_ID, me),
identification_create_from_encoding(ID_KEY_ID, other),
- CERT_NEVER_SEND, UNIQUE_REPLACE, CONF_AUTH_PUBKEY,
- 0, 0, /* EAP method, vendor */
+ CERT_NEVER_SEND, UNIQUE_REPLACE,
1, this->rekey*60, 0, /* keytries, rekey, reauth */
this->rekey*5, this->rekey*3, /* jitter, overtime */
TRUE, this->dpd, /* mobike, dpddelay */
name, 2, this->ike->get_ref(this->ike),
identification_create_from_encoding(ID_KEY_ID, me),
identification_create_from_encoding(ID_KEY_ID, other),
- CERT_NEVER_SEND, UNIQUE_REPLACE, CONF_AUTH_PUBKEY,
- 0, 0, /* EAP method, vendor */
+ CERT_NEVER_SEND, UNIQUE_REPLACE,
1, this->rekey*60, 0, /* keytries, rekey, reauth */
this->rekey*5, this->rekey*3, /* jitter, overtime */
TRUE, this->dpd, /* mobike, dpddelay */
name, 2, this->ike->get_ref(this->ike),
identification_create_from_encoding(ID_KEY_ID, me),
identification_create_from_encoding(ID_KEY_ID, other),
- CERT_NEVER_SEND, UNIQUE_REPLACE, AUTH_RSA,
- 0, 0, /* EAP method, vendor */
+ CERT_NEVER_SEND, UNIQUE_REPLACE,
1, this->rekey*60, 0, /* keytries, rekey, reauth */
this->rekey*5, this->rekey*3, /* jitter, overtime */
TRUE, this->dpd, /* mobike, dpddelay */
this->public.destroy = (void(*)(medcli_config_t*))destroy;
this->db = db;
- this->rekey = lib->settings->get_int(lib->settings,
- "medcli.rekey", 20) * 60;
- this->dpd = lib->settings->get_int(lib->settings, "medcli.dpd", 300);
+ this->rekey = lib->settings->get_time(lib->settings, "medcli.rekey", 1200);
+ this->dpd = lib->settings->get_time(lib->settings, "medcli.dpd", 300);
this->ike = ike_cfg_create(FALSE, FALSE, "0.0.0.0", "0.0.0.0");
this->ike->add_proposal(this->ike, proposal_create_default(PROTO_IKE));