Line data Source code
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, gnutls_buffer_st *buf); 27 : int _gnutls13_send_session_ticket(gnutls_session_t session, unsigned nr, unsigned again); 28 : 29 : int _gnutls13_unpack_session_ticket(gnutls_session_t session, 30 : gnutls_datum_t *data, 31 : tls13_ticket_st *ticket_data); 32 : 33 : inline static 34 23186 : void tls13_ticket_deinit(tls13_ticket_st *ticket) 35 : { 36 23186 : zeroize_temp_key(&ticket->resumption_master_secret, 37 : sizeof(ticket->resumption_master_secret)); 38 : 39 23186 : _gnutls_free_datum(&ticket->ticket); 40 23186 : memset(ticket, 0, sizeof(tls13_ticket_st)); 41 23186 : } 42 : 43 : #endif /* GNUTLS_LIB_TLS13_SESSION_TICKET_H */