[−][src]Function libcoap_sys::coap_session_new_dtls_session
pub unsafe extern "C" fn coap_session_new_dtls_session(
session: *mut coap_session_t,
now: coap_tick_t
) -> *mut coap_session_t
Create a new DTLS session for the @p session. Note: the @p session is released if no DTLS server session can be created.
@ingroup dtls_internal
@param session Session to add DTLS session to @param now The current time in ticks.
@return CoAP session or @c NULL if error.