mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-02 16:05:50 +03:00
API for checking session encryption
This commit is contained in:
1 parent
146e0bbe77
commit
e80fe9edd2
6 files changed
+30
No files matched your search
@@ -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
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user