blob: 0e69513627849cfb1980308054446015dca01d07 [file] [log] [blame]
Manuel Pégourié-Gonnardfd6d8972015-05-15 12:09:00 +02001/**
2 * \file ssl_ticket.h
3 *
4 * \brief TLS server ticket callbacks implementation
5 *
6 * Copyright (C) 2015, ARM Limited, All Rights Reserved
7 *
8 * This file is part of mbed TLS (https://tls.mbed.org)
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License along
21 * with this program; if not, write to the Free Software Foundation, Inc.,
22 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 */
24#ifndef MBEDTLS_SSL_TICKET_H
25#define MBEDTLS_SSL_TICKET_H
26
27#include "ssl.h"
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
Manuel Pégourié-Gonnarda4a47352015-05-15 15:14:54 +020033/* Temporary, WIP */
Manuel Pégourié-Gonnardb0394be2015-05-19 11:40:30 +020034int mbedtls_ssl_ticket_write( void *p_ticket,
Manuel Pégourié-Gonnard69f17282015-05-18 14:35:08 +020035 const mbedtls_ssl_session *session,
36 unsigned char *start,
37 const unsigned char *end,
Manuel Pégourié-Gonnardb0394be2015-05-19 11:40:30 +020038 size_t *tlen,
39 uint32_t *ticket_lifetime );
Manuel Pégourié-Gonnarda4a47352015-05-15 15:14:54 +020040
41/* Temporary, WIP */
Manuel Pégourié-Gonnardb0394be2015-05-19 11:40:30 +020042int mbedtls_ssl_ticket_parse( void *p_ticket,
Manuel Pégourié-Gonnard69f17282015-05-18 14:35:08 +020043 mbedtls_ssl_session *session,
44 unsigned char *buf,
45 size_t len );
Manuel Pégourié-Gonnardfd6d8972015-05-15 12:09:00 +020046
47#ifdef __cplusplus
48}
49#endif
50
51#endif /* ssl_ticket.h */