diff options
author | defanor <defanor@uberspace.net> | 2023-09-23 11:35:39 +0300 |
---|---|---|
committer | defanor <defanor@uberspace.net> | 2023-09-24 13:14:42 +0300 |
commit | 7a63d327772dc64978e9159d49885a9ae7dd9b4e (patch) | |
tree | e3201f3fd56236a223ffc0f8be70f1b9950d6ad0 /src/rexmpp_jingle.h | |
parent | 4ea2ee3870d95b6d95c8e9c7c08277bc9d34d5e0 (diff) |
Move GnuTLS operations from Jingle module into TLS module
Diffstat (limited to 'src/rexmpp_jingle.h')
-rw-r--r-- | src/rexmpp_jingle.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/rexmpp_jingle.h b/src/rexmpp_jingle.h index a226b9a..57fe324 100644 --- a/src/rexmpp_jingle.h +++ b/src/rexmpp_jingle.h @@ -22,11 +22,12 @@ #ifdef HAVE_OPUS #include <opus/opus.h> #endif -#define DTLS_SRTP_BUF_SIZE 0x4000 #define PA_BUF_SIZE 0x4000 #endif #include "rexmpp.h" +#include "rexmpp_tls.h" + /** @brief Processes incoming Jingle IQs. */ int rexmpp_jingle_iq (rexmpp_t *s, rexmpp_xml_t *elem); @@ -76,10 +77,11 @@ struct rexmpp_jingle_component { rexmpp_t *s; rexmpp_jingle_session_t *session; int component_id; - gnutls_session_t dtls_session; - char dtls_buf[DTLS_SRTP_BUF_SIZE]; + rexmpp_tls_t *dtls; + /* gnutls_session_t dtls_session; */ + /* char dtls_buf[DTLS_SRTP_BUF_SIZE]; */ + /* size_t dtls_buf_len; */ enum tls_st dtls_state; - size_t dtls_buf_len; srtp_t srtp_in; srtp_t srtp_out; }; |