mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-28 01:27:09 +03:00
tls: Update coap_session_get_tls() to return actual TLS information
This commit is contained in:
1 parent
75a41b7aed
commit
84a69c7436
9 files changed
+89
-11
No files matched your search
@@ -327,6 +327,17 @@ void coap_dtls_startup(void);
|
||||
*/
|
||||
void coap_dtls_shutdown(void);
|
||||
|
||||
/**
|
||||
* Get the actual (D)TLS object for the session.
|
||||
*
|
||||
* @param session The session.
|
||||
* @param tls_lib Updated with the library type.
|
||||
*
|
||||
* @return The TLS information.
|
||||
*/
|
||||
void *coap_dtls_get_tls(const coap_session_t *session,
|
||||
coap_tls_library_t *tls_lib);
|
||||
|
||||
/** @} */
|
||||
|
||||
#endif /* COAP_DTLS_INTERNAL_H */
|
||||
@@ -162,15 +162,17 @@ int coap_session_get_ifindex(const coap_session_t *session);
|
||||
* Get the session TLS security ptr (TLS type dependent)
|
||||
*
|
||||
* OpenSSL: SSL*
|
||||
* GnuTLS: coap_gnutls_env_t*
|
||||
* Mbed TLS: coap_mbedtls_env_t*
|
||||
* TinyDTLS: session_t*
|
||||
* GnuTLS: gnutls_session_t (implicit *)
|
||||
* Mbed TLS: mbedtls_ssl_context*
|
||||
* TinyDTLS: struct dtls_context*
|
||||
*
|
||||
* @param session The CoAP session.
|
||||
* @param tls_lib Updated with the library type.
|
||||
*
|
||||
* @return The session TLS ptr or @c NULL if not set up
|
||||
*/
|
||||
void *coap_session_get_tls(const coap_session_t *session);
|
||||
void *coap_session_get_tls(const coap_session_t *session,
|
||||
coap_tls_library_t *tls_lib);
|
||||
|
||||
/**
|
||||
* Get the session context
|
||||
|
||||
Reference in new issue
Block a user