Manuel Pégourié-Gonnard | fd6d897 | 2015-05-15 12:09:00 +0200 | [diff] [blame] | 1 | /** |
| 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 |
| 30 | extern "C" { |
| 31 | #endif |
| 32 | |
Manuel Pégourié-Gonnard | a4a4735 | 2015-05-15 15:14:54 +0200 | [diff] [blame] | 33 | /* Temporary, WIP */ |
Manuel Pégourié-Gonnard | 69f1728 | 2015-05-18 14:35:08 +0200 | [diff] [blame^] | 34 | int mbedtls_ssl_ticket_write( const mbedtls_ssl_config *conf, |
| 35 | const mbedtls_ssl_session *session, |
| 36 | unsigned char *start, |
| 37 | const unsigned char *end, |
| 38 | size_t *tlen ); |
Manuel Pégourié-Gonnard | a4a4735 | 2015-05-15 15:14:54 +0200 | [diff] [blame] | 39 | |
| 40 | /* Temporary, WIP */ |
Manuel Pégourié-Gonnard | 69f1728 | 2015-05-18 14:35:08 +0200 | [diff] [blame^] | 41 | int mbedtls_ssl_ticket_parse( const mbedtls_ssl_config *conf, |
| 42 | mbedtls_ssl_session *session, |
| 43 | unsigned char *buf, |
| 44 | size_t len ); |
Manuel Pégourié-Gonnard | fd6d897 | 2015-05-15 12:09:00 +0200 | [diff] [blame] | 45 | |
| 46 | #ifdef __cplusplus |
| 47 | } |
| 48 | #endif |
| 49 | |
| 50 | #endif /* ssl_ticket.h */ |