From 267c1861dd219e3f11aa7be1c75a1409bf12f1fb Mon Sep 17 00:00:00 2001 From: Antti Kauppila Date: Wed, 20 Jan 2016 11:50:24 +0200 Subject: [PATCH] Cleanup --- source/coap_connection_handler.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/source/coap_connection_handler.c b/source/coap_connection_handler.c index 201b8f0c81..419986547c 100644 --- a/source/coap_connection_handler.c +++ b/source/coap_connection_handler.c @@ -79,12 +79,7 @@ static secure_session_t *secure_session_create(internal_socket_t *parent, uint8_ return NULL; } - SecureConnectionMode mode = PSK; -#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, + this->sec_handler = thread_security_create(parent->listen_socket, this->timer.id, address_ptr, port, ECJPAKE, &send_to_socket, &receive_from_socket, &start_timer, &timer_status); if( !this->sec_handler ){ ns_dyn_mem_free(this);