@@ -59,7 +59,8 @@ static int _read(struct dtls_context_t *ctx, session_t *session, uint8_t *buf,
5959 size_t len );
6060static int _event (struct dtls_context_t * ctx , session_t * session ,
6161 dtls_alert_level_t level , unsigned short code );
62-
62+ static void _get_user_parameters (struct dtls_context_t * ctx ,
63+ session_t * session , dtls_user_parameters_t * user_parameters );
6364static void _session_to_ep (const session_t * session , sock_udp_ep_t * ep );
6465static void _ep_to_session (const sock_udp_ep_t * ep , session_t * session );
6566static uint32_t _update_timeout (uint32_t start , uint32_t timeout );
@@ -68,6 +69,7 @@ static dtls_handler_t _dtls_handler = {
6869 .event = _event ,
6970 .write = _write ,
7071 .read = _read ,
72+ .get_user_parameters = _get_user_parameters ,
7173#ifdef CONFIG_DTLS_PSK
7274 .get_psk_info = _get_psk_info ,
7375#endif /* CONFIG_DTLS_PSK */
@@ -175,6 +177,15 @@ static int _event(struct dtls_context_t *ctx, session_t *session,
175177 return 0 ;
176178}
177179
180+ static void _get_user_parameters (struct dtls_context_t * ctx ,
181+ session_t * session , dtls_user_parameters_t * user_parameters ) {
182+ (void ) ctx ;
183+ (void ) session ;
184+
185+ user_parameters -> force_extended_master_secret = CONFIG_DTLS_FORCE_EXTENDED_MASTER_SECRET ;
186+ user_parameters -> force_renegotiation_info = CONFIG_DTLS_FORCE_RENEGOTIATION_INFO ;
187+ }
188+
178189#ifdef CONFIG_DTLS_PSK
179190static int _get_psk_info (struct dtls_context_t * ctx , const session_t * session ,
180191 dtls_credentials_type_t type ,
0 commit comments