Coverage Report

Created: 2023-03-26 08:33

/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
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
42
void tls13_ticket_deinit(tls13_ticket_st * ticket)
43
0
{
44
0
  zeroize_temp_key(&ticket->resumption_master_secret,
45
0
       sizeof(ticket->resumption_master_secret));
46
47
0
  _gnutls_free_datum(&ticket->ticket);
48
0
  memset(ticket, 0, sizeof(tls13_ticket_st));
49
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
50
51
#endif        /* GNUTLS_LIB_TLS13_SESSION_TICKET_H */