summaryrefslogtreecommitdiff
path: root/lib/gnutls_int.h
diff options
context:
space:
mode:
authorFrantisek Krenzelok <krenzelok.frantisek@gmail.com>2021-10-15 15:00:17 +0200
committerFrantisek Krenzelok <krenzelok.frantisek@gmail.com>2021-11-30 12:27:43 +0100
commitb8db73282a958fa6701b970e2904fff28898387c (patch)
tree6be2e9fa1e6fbb5c4a93e8b1028354979b3421a9 /lib/gnutls_int.h
parentd8be349fb196d569309f90f5070d7f3958128bce (diff)
downloadgnutls-b8db73282a958fa6701b970e2904fff28898387c.tar.gz
KTLS: APIktls_api
ktls is enabled by default, we can check if inicialization was succesfull with gnutls_transport_is_ktls_enabled Signed-off-by: Frantisek Krenzelok <krenzelok.frantisek@gmail.com>
Diffstat (limited to 'lib/gnutls_int.h')
-rw-r--r--lib/gnutls_int.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/gnutls_int.h b/lib/gnutls_int.h
index 1dbe404857..a660828a57 100644
--- a/lib/gnutls_int.h
+++ b/lib/gnutls_int.h
@@ -176,7 +176,7 @@ typedef enum record_send_state_t {
#define IS_DTLS(session) (session->internals.transport == GNUTLS_DGRAM)
/* To check whether we have a KTLS enabled */
-#define IS_KTLS_ENABLED(session) (session->internals.ktls_enabled)
+#define IS_KTLS_ENABLED(session, interface) (session->internals.ktls_enabled & interface)
/* the maximum size of encrypted packets */
#define DEFAULT_MAX_RECORD_SIZE 16384
@@ -1495,10 +1495,7 @@ typedef struct {
void *epoch_lock;
/* indicates whether or not was KTLS initialized properly. */
- bool ktls_enabled;
- int recv_fd;
- int send_fd;
-
+ int ktls_enabled;
/* If you add anything here, check _gnutls_handshake_internal_state_clear().
*/
} internals_st;