/src/gnutls/lib/tls13/session_ticket.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* |
2 | | * Copyright (C) 2017 Red Hat, Inc. |
3 | | * |
4 | | * Author: Nikos Mavrogiannopoulos, Ander Juaristi |
5 | | * |
6 | | * This file is part of GnuTLS. |
7 | | * |
8 | | * The GnuTLS is free software; you can redistribute it and/or |
9 | | * modify it under the terms of the GNU Lesser General Public License |
10 | | * as published by the Free Software Foundation; either version 2.1 of |
11 | | * the License, or (at your option) any later version. |
12 | | * |
13 | | * This library is distributed in the hope that it will be useful, but |
14 | | * WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
16 | | * Lesser General Public License for more details. |
17 | | * |
18 | | * You should have received a copy of the GNU Lesser General Public License |
19 | | * along with this program. If not, see <https://www.gnu.org/licenses/> |
20 | | * |
21 | | */ |
22 | | |
23 | | #ifndef GNUTLS_LIB_TLS13_SESSION_TICKET_H |
24 | | #define GNUTLS_LIB_TLS13_SESSION_TICKET_H |
25 | | |
26 | | int _gnutls13_recv_session_ticket(gnutls_session_t session, |
27 | | gnutls_buffer_st *buf); |
28 | | int _gnutls13_send_session_ticket(gnutls_session_t session, unsigned nr, |
29 | | unsigned again); |
30 | | |
31 | | static inline bool _gnutls13_can_send_session_ticket(gnutls_session_t session) |
32 | 0 | { |
33 | 0 | return session->key.stek_initialized && |
34 | 0 | !(session->internals.flags & GNUTLS_NO_TICKETS); |
35 | 0 | } Unexecuted instantiation: handshake-tls13.c:_gnutls13_can_send_session_ticket Unexecuted instantiation: handshake.c:_gnutls13_can_send_session_ticket Unexecuted instantiation: hello_ext.c:_gnutls13_can_send_session_ticket Unexecuted instantiation: session_pack.c:_gnutls13_can_send_session_ticket Unexecuted instantiation: state.c:_gnutls13_can_send_session_ticket Unexecuted instantiation: session_ticket.c:_gnutls13_can_send_session_ticket Unexecuted instantiation: pre_shared_key.c:_gnutls13_can_send_session_ticket Unexecuted instantiation: psk_ke_modes.c:_gnutls13_can_send_session_ticket |
36 | | |
37 | | int _gnutls13_unpack_session_ticket(gnutls_session_t session, |
38 | | gnutls_datum_t *data, |
39 | | tls13_ticket_st *ticket_data); |
40 | | |
41 | | inline static void tls13_ticket_deinit(tls13_ticket_st *ticket) |
42 | 0 | { |
43 | 0 | zeroize_temp_key(&ticket->resumption_master_secret, |
44 | 0 | sizeof(ticket->resumption_master_secret)); |
45 | |
|
46 | 0 | _gnutls_free_datum(&ticket->ticket); |
47 | 0 | memset(ticket, 0, sizeof(tls13_ticket_st)); |
48 | 0 | } Unexecuted instantiation: handshake-tls13.c:tls13_ticket_deinit Unexecuted instantiation: handshake.c:tls13_ticket_deinit Unexecuted instantiation: hello_ext.c:tls13_ticket_deinit Unexecuted instantiation: session_pack.c:tls13_ticket_deinit Unexecuted instantiation: state.c:tls13_ticket_deinit Unexecuted instantiation: session_ticket.c:tls13_ticket_deinit Unexecuted instantiation: pre_shared_key.c:tls13_ticket_deinit Unexecuted instantiation: psk_ke_modes.c:tls13_ticket_deinit |
49 | | |
50 | | #endif /* GNUTLS_LIB_TLS13_SESSION_TICKET_H */ |