diff options
author | Frantisek Krenzelok <krenzelok.frantisek@gmail.com> | 2021-10-15 15:00:17 +0200 |
---|---|---|
committer | Frantisek Krenzelok <krenzelok.frantisek@gmail.com> | 2021-11-30 12:27:43 +0100 |
commit | b8db73282a958fa6701b970e2904fff28898387c (patch) | |
tree | 6be2e9fa1e6fbb5c4a93e8b1028354979b3421a9 /lib/system/ktls.h | |
parent | d8be349fb196d569309f90f5070d7f3958128bce (diff) | |
download | gnutls-ktls_api.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/system/ktls.h')
-rw-r--r-- | lib/system/ktls.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/system/ktls.h b/lib/system/ktls.h index 3955052f58..829799e212 100644 --- a/lib/system/ktls.h +++ b/lib/system/ktls.h @@ -3,7 +3,13 @@ #include "gnutls_int.h" -int _gnutls_ktls_enable(gnutls_session_t session, int sockin, int sockout); +enum{ + KTLS_RECV = 1, + KTLS_SEND, + KTLS_DUPLEX, +}; + +int _gnutls_ktls_enable(gnutls_session_t session); int _gnutls_ktls_set_keys(gnutls_session_t session); int _gnutls_ktls_send_control_msg(gnutls_session_t session, unsigned char record_type, const void *data, size_t data_size); |