tls_server_extensions.h
Go to the documentation of this file.
1 /**
2  * @file tls_server_extensions.h
3  * @brief Formatting and parsing of extensions (TLS server)
4  *
5  * @section License
6  *
7  * Copyright (C) 2010-2018 Oryx Embedded SARL. All rights reserved.
8  *
9  * This file is part of CycloneSSL Open.
10  *
11  * This program is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU General Public License
13  * as published by the Free Software Foundation; either version 2
14  * of the License, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software Foundation,
23  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24  *
25  * @author Oryx Embedded SARL (www.oryx-embedded.com)
26  * @version 1.9.0
27  **/
28 
29 #ifndef _TLS_SERVER_EXTENSIONS_H
30 #define _TLS_SERVER_EXTENSIONS_H
31 
32 //Dependencies
33 #include "tls.h"
34 
35 //C++ guard
36 #ifdef __cplusplus
37  extern "C" {
38 #endif
39 
40 //TLS server specific functions
42  uint8_t *p, size_t *written);
43 
45  uint8_t *p, size_t *written);
46 
48  uint8_t *p, size_t *written);
49 
51  uint8_t *p, size_t *written);
52 
54  uint8_t *p, size_t *written);
55 
57  uint8_t *p, size_t *written);
58 
60  uint8_t *p, size_t *written);
61 
63  uint8_t *p, size_t *written);
64 
66  uint8_t *p, size_t *written);
67 
69  const TlsSupportedVersionList *supportedVersionList);
70 
72  const TlsServerNameList *serverNameList);
73 
75  const uint8_t *maxFragLen);
76 
78  const uint8_t *recordSizeLimit);
79 
81  const TlsEcPointFormatList *ecPointFormatList);
82 
84  const TlsProtocolNameList *protocolNameList);
85 
87  const TlsCertTypeList *clientCertTypeList);
88 
90  const TlsCertTypeList *serverCertTypeList);
91 
93  const uint8_t *extendedMasterSecret);
94 
96  const TlsRenegoInfo *renegoInfo);
97 
98 //C++ guard
99 #ifdef __cplusplus
100  }
101 #endif
102 
103 #endif
TLS (Transport Layer Security)
__start_packed struct @78 TlsRenegoInfo
Renegotiated connection.
error_t tlsFormatServerRecordSizeLimitExtension(TlsContext *context, uint8_t *p, size_t *written)
Format RecordSizeLimit extension.
error_t tlsParseClientEmsExtension(TlsContext *context, const uint8_t *extendedMasterSecret)
Parse ExtendedMasterSecret extension.
uint8_t p
Definition: ndp.h:295
error_t tlsParseClientSupportedVersionsExtension(TlsContext *context, const TlsSupportedVersionList *supportedVersionList)
Parse SupportedVersions extension.
error_t tlsFormatServerAlpnExtension(TlsContext *context, uint8_t *p, size_t *written)
Format ALPN extension.
error_t tlsFormatServerEcPointFormatsExtension(TlsContext *context, uint8_t *p, size_t *written)
Format EcPointFormats extension.
error_t tlsFormatServerCertTypeExtension(TlsContext *context, uint8_t *p, size_t *written)
Format ServerCertType extension.
__start_packed struct @74 TlsProtocolNameList
List of protocol names.
error_t tlsFormatClientCertTypeExtension(TlsContext *context, uint8_t *p, size_t *written)
Format ClientCertType extension.
error_t tlsParseServerCertTypeListExtension(TlsContext *context, const TlsCertTypeList *serverCertTypeList)
Parse ServerCertType extension.
__start_packed struct @70 TlsSupportedVersionList
List of supported versions.
__start_packed struct @76 TlsEcPointFormatList
List of supported EC point formats.
error_t tlsParseClientSniExtension(TlsContext *context, const TlsServerNameList *serverNameList)
Parse SNI extension.
error_t tlsFormatServerRenegoInfoExtension(TlsContext *context, uint8_t *p, size_t *written)
Format RenegotiationInfo extension.
error_t tlsParseClientEcPointFormatsExtension(TlsContext *context, const TlsEcPointFormatList *ecPointFormatList)
Parse EcPointFormats extension.
error_t
Error codes.
Definition: error.h:40
error_t tlsParseClientRenegoInfoExtension(TlsContext *context, const TlsRenegoInfo *renegoInfo)
Parse RenegotiationInfo extension.
error_t tlsFormatServerSniExtension(TlsContext *context, uint8_t *p, size_t *written)
Format SNI extension.
error_t tlsFormatServerEmsExtension(TlsContext *context, uint8_t *p, size_t *written)
Format ExtendedMasterSecret extension.
error_t tlsParseClientMaxFragLenExtension(TlsContext *context, const uint8_t *maxFragLen)
Parse MaxFragmentLength extension.
error_t tlsParseClientRecordSizeLimitExtension(TlsContext *context, const uint8_t *recordSizeLimit)
Parse RecordSizeLimit extension.
error_t tlsParseClientAlpnExtension(TlsContext *context, const TlsProtocolNameList *protocolNameList)
Parse ALPN extension.
__start_packed struct @72 TlsServerNameList
List of server names.
__start_packed struct @77 TlsCertTypeList
List of supported certificate types.
#define TlsContext
Definition: tls.h:34
error_t tlsFormatServerMaxFragLenExtension(TlsContext *context, uint8_t *p, size_t *written)
Format MaxFragmentLength extension.
error_t tlsParseClientCertTypeListExtension(TlsContext *context, const TlsCertTypeList *clientCertTypeList)
Parse ClientCertType extension.