API for checking session encryption

This commit is contained in:
Magdalena Szumny authored and Jon Shallow committed 2026-02-17 09:57:28 +00:00
1 parent 146e0bbe77
commit e80fe9edd2
6 files changed
+30

No files matched your search

+9
View File
@@ -198,6 +198,15 @@ coap_proto_t coap_session_get_proto(const coap_session_t *session);
*/
coap_session_type_t coap_session_get_type(const coap_session_t *session);
/**
* Check if the session is using OSCORE.
*
* @param session The CoAP session.
*
* @return @c 1 if the session is using OSCORE, @c 0 otherwise.
*/
int coap_session_is_oscore(const coap_session_t *session);
/**
* Get the session state
*