pull/3240/head
Antti Kauppila 2016-01-20 11:50:24 +02:00
parent a32c3614b4
commit 267c1861dd
1 changed files with 1 additions and 6 deletions

View File

@ -79,12 +79,7 @@ static secure_session_t *secure_session_create(internal_socket_t *parent, uint8_
return NULL; return NULL;
} }
SecureConnectionMode mode = PSK; this->sec_handler = thread_security_create(parent->listen_socket, this->timer.id, address_ptr, port, ECJPAKE,
#if defined(MBEDTLS_KEY_EXCHANGE_ECJPAKE_ENABLED)
mode = ECJPAKE;
#endif
this->sec_handler = thread_security_create(parent->listen_socket, this->timer.id, address_ptr, port, mode,
&send_to_socket, &receive_from_socket, &start_timer, &timer_status); &send_to_socket, &receive_from_socket, &start_timer, &timer_status);
if( !this->sec_handler ){ if( !this->sec_handler ){
ns_dyn_mem_free(this); ns_dyn_mem_free(this);