ported parts of two-sim branch
eap_identity parameter to exchange in eap_identity some auth_info/peer_cfg refactorings fixed some bugs, introduced new ones
This commit is contained in:
@@ -97,6 +97,11 @@ static cert_payload_t *build_cert_payload(private_ike_cert_post_t *this, certifi
|
||||
return payload;
|
||||
}
|
||||
|
||||
/**
|
||||
* from ike_auth.c
|
||||
*/
|
||||
auth_class_t get_auth_class(peer_cfg_t *config);
|
||||
|
||||
/**
|
||||
* add certificates to message
|
||||
*/
|
||||
@@ -105,7 +110,7 @@ static void build_certs(private_ike_cert_post_t *this, message_t *message)
|
||||
peer_cfg_t *peer_cfg;
|
||||
|
||||
peer_cfg = this->ike_sa->get_peer_cfg(this->ike_sa);
|
||||
if (peer_cfg && peer_cfg->get_auth_method(peer_cfg) == CONF_AUTH_PUBKEY)
|
||||
if (peer_cfg && get_auth_class(peer_cfg) == AUTH_CLASS_PUBKEY)
|
||||
{
|
||||
switch (peer_cfg->get_cert_policy(peer_cfg))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user