Lines Matching +full:- +full:alert
1 // SPDX-License-Identifier: GPL-2.0-only
3 * Handle the TLS Alert protocol
27 * tls_alert_send - send a TLS Alert on a kTLS socket
29 * @level: TLS Alert level
30 * @description: TLS Alert description
41 u8 alert[2]; in tls_alert_send() local
44 trace_tls_alert_send(sock->sk, level, description); in tls_alert_send()
46 alert[0] = level; in tls_alert_send()
47 alert[1] = description; in tls_alert_send()
48 iov.iov_base = alert; in tls_alert_send()
49 iov.iov_len = sizeof(alert); in tls_alert_send()
57 cmsg->cmsg_level = SOL_TLS; in tls_alert_send()
58 cmsg->cmsg_type = TLS_SET_RECORD_TYPE; in tls_alert_send()
59 cmsg->cmsg_len = CMSG_LEN(sizeof(record_type)); in tls_alert_send()
68 * tls_get_record_type - Look for TLS RECORD_TYPE information
78 if (cmsg->cmsg_level != SOL_TLS) in tls_get_record_type()
80 if (cmsg->cmsg_type != TLS_GET_RECORD_TYPE) in tls_get_record_type()
90 * tls_alert_recv - Parse TLS Alert messages
93 * @level: OUT - TLS AlertLevel value
94 * @description: OUT - TLS AlertDescription value
103 iov = msg->msg_iter.kvec; in tls_alert_recv()
104 data = iov->iov_base; in tls_alert_recv()