summaryrefslogtreecommitdiff
path: root/lib/alert.c
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/alert.c
parentd8be349fb196d569309f90f5070d7f3958128bce (diff)
downloadgnutls-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/alert.c')
-rw-r--r--lib/alert.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/alert.c b/lib/alert.c
index eda931a1c5..28ee91b13f 100644
--- a/lib/alert.c
+++ b/lib/alert.c
@@ -182,7 +182,7 @@ gnutls_alert_send(gnutls_session_t session, gnutls_alert_level_t level,
return ret;
}
- if (IS_KTLS_ENABLED(session)) {
+ if (IS_KTLS_ENABLED(session, KTLS_SEND)) {
ret =
_gnutls_ktls_send_control_msg(session, GNUTLS_ALERT, data, 2);
} else {