libtls: Add control flags and replace GENERIC_NULLOK purpose with one
This commit is contained in:
@@ -173,7 +173,7 @@ static eap_peap_t *eap_peap_create(private_eap_peap_t * this,
|
||||
include_length = lib->settings->get_bool(lib->settings,
|
||||
"%s.plugins.eap-peap.include_length", FALSE, lib->ns);
|
||||
tls = tls_create(is_server, server, peer, TLS_PURPOSE_EAP_PEAP,
|
||||
application, NULL);
|
||||
application, NULL, 0);
|
||||
this->tls_eap = tls_eap_create(EAP_PEAP, tls, frag_size, max_msg_count,
|
||||
include_length);
|
||||
if (!this->tls_eap)
|
||||
|
||||
@@ -158,7 +158,7 @@ static eap_tls_t *eap_tls_create(identification_t *server,
|
||||
lib->ns);
|
||||
include_length = lib->settings->get_bool(lib->settings,
|
||||
"%s.plugins.eap-tls.include_length", TRUE, lib->ns);
|
||||
tls = tls_create(is_server, server, peer, TLS_PURPOSE_EAP_TLS, NULL, NULL);
|
||||
tls = tls_create(is_server, server, peer, TLS_PURPOSE_EAP_TLS, NULL, NULL, 0);
|
||||
this->tls_eap = tls_eap_create(EAP_TLS, tls, frag_size, max_msg_count,
|
||||
include_length);
|
||||
if (!this->tls_eap)
|
||||
|
||||
@@ -170,7 +170,7 @@ static eap_ttls_t *eap_ttls_create(identification_t *server,
|
||||
include_length = lib->settings->get_bool(lib->settings,
|
||||
"%s.plugins.eap-ttls.include_length", TRUE, lib->ns);
|
||||
tls = tls_create(is_server, server, peer, TLS_PURPOSE_EAP_TTLS,
|
||||
application, NULL);
|
||||
application, NULL, 0);
|
||||
this->tls_eap = tls_eap_create(EAP_TTLS, tls, frag_size, max_msg_count,
|
||||
include_length);
|
||||
if (!this->tls_eap)
|
||||
|
||||
@@ -877,7 +877,7 @@ static bool soap_init(private_tnc_ifmap_soap_t *this)
|
||||
|
||||
/* open TLS socket */
|
||||
this->tls = tls_socket_create(FALSE, server_id, client_id, this->fd,
|
||||
NULL, TLS_UNSPEC, TLS_UNSPEC, FALSE);
|
||||
NULL, TLS_UNSPEC, TLS_UNSPEC, 0);
|
||||
if (!this->tls)
|
||||
{
|
||||
DBG1(DBG_TNC, "creating TLS socket failed");
|
||||
|
||||
Reference in New Issue
Block a user