tls_server_extensions.h File Reference

Formatting and parsing of extensions (TLS server) More...

#include "tls.h"

Go to the source code of this file.

Functions

error_t tlsFormatServerSniExtension (TlsContext *context, uint8_t *p, size_t *written)
 Format SNI extension. More...
 
error_t tlsFormatServerMaxFragLenExtension (TlsContext *context, uint8_t *p, size_t *written)
 Format MaxFragmentLength extension. More...
 
error_t tlsFormatServerRecordSizeLimitExtension (TlsContext *context, uint8_t *p, size_t *written)
 Format RecordSizeLimit extension. More...
 
error_t tlsFormatServerEcPointFormatsExtension (TlsContext *context, uint8_t *p, size_t *written)
 Format EcPointFormats extension. More...
 
error_t tlsFormatServerAlpnExtension (TlsContext *context, uint8_t *p, size_t *written)
 Format ALPN extension. More...
 
error_t tlsFormatClientCertTypeExtension (TlsContext *context, uint8_t *p, size_t *written)
 Format ClientCertType extension. More...
 
error_t tlsFormatServerCertTypeExtension (TlsContext *context, uint8_t *p, size_t *written)
 Format ServerCertType extension. More...
 
error_t tlsFormatServerEmsExtension (TlsContext *context, uint8_t *p, size_t *written)
 Format ExtendedMasterSecret extension. More...
 
error_t tlsFormatServerRenegoInfoExtension (TlsContext *context, uint8_t *p, size_t *written)
 Format RenegotiationInfo extension. More...
 
error_t tlsParseClientSupportedVersionsExtension (TlsContext *context, const TlsSupportedVersionList *supportedVersionList)
 Parse SupportedVersions extension. More...
 
error_t tlsParseClientSniExtension (TlsContext *context, const TlsServerNameList *serverNameList)
 Parse SNI extension. More...
 
error_t tlsParseClientMaxFragLenExtension (TlsContext *context, const uint8_t *maxFragLen)
 Parse MaxFragmentLength extension. More...
 
error_t tlsParseClientRecordSizeLimitExtension (TlsContext *context, const uint8_t *recordSizeLimit)
 Parse RecordSizeLimit extension. More...
 
error_t tlsParseClientEcPointFormatsExtension (TlsContext *context, const TlsEcPointFormatList *ecPointFormatList)
 Parse EcPointFormats extension. More...
 
error_t tlsParseClientAlpnExtension (TlsContext *context, const TlsProtocolNameList *protocolNameList)
 Parse ALPN extension. More...
 
error_t tlsParseClientCertTypeListExtension (TlsContext *context, const TlsCertTypeList *clientCertTypeList)
 Parse ClientCertType extension. More...
 
error_t tlsParseServerCertTypeListExtension (TlsContext *context, const TlsCertTypeList *serverCertTypeList)
 Parse ServerCertType extension. More...
 
error_t tlsParseClientEmsExtension (TlsContext *context, const uint8_t *extendedMasterSecret)
 Parse ExtendedMasterSecret extension. More...
 
error_t tlsParseClientRenegoInfoExtension (TlsContext *context, const TlsRenegoInfo *renegoInfo)
 Parse RenegotiationInfo extension. More...
 

Detailed Description

Formatting and parsing of extensions (TLS server)

License

Copyright (C) 2010-2018 Oryx Embedded SARL. All rights reserved.

This file is part of CycloneSSL Open.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Author
Oryx Embedded SARL (www.oryx-embedded.com)
Version
1.9.0

Definition in file tls_server_extensions.h.

Function Documentation

◆ tlsFormatClientCertTypeExtension()

error_t tlsFormatClientCertTypeExtension ( TlsContext context,
uint8_t *  p,
size_t *  written 
)

Format ClientCertType extension.

Parameters
[in]contextPointer to the TLS context
[in]pOutput stream where to write the ClientCertType extension
[out]writtenTotal number of bytes that have been written
Returns
Error code

Definition at line 376 of file tls_server_extensions.c.

◆ tlsFormatServerAlpnExtension()

error_t tlsFormatServerAlpnExtension ( TlsContext context,
uint8_t *  p,
size_t *  written 
)

Format ALPN extension.

Parameters
[in]contextPointer to the TLS context
[in]pOutput stream where to write the ALPN extension
[out]writtenTotal number of bytes that have been written
Returns
Error code

Definition at line 309 of file tls_server_extensions.c.

◆ tlsFormatServerCertTypeExtension()

error_t tlsFormatServerCertTypeExtension ( TlsContext context,
uint8_t *  p,
size_t *  written 
)

Format ServerCertType extension.

Parameters
[in]contextPointer to the TLS context
[in]pOutput stream where to write the ServerCertType extension
[out]writtenTotal number of bytes that have been written
Returns
Error code

Definition at line 424 of file tls_server_extensions.c.

◆ tlsFormatServerEcPointFormatsExtension()

error_t tlsFormatServerEcPointFormatsExtension ( TlsContext context,
uint8_t *  p,
size_t *  written 
)

Format EcPointFormats extension.

Parameters
[in]contextPointer to the TLS context
[in]pOutput stream where to write the EcPointFormats extension
[out]writtenTotal number of bytes that have been written
Returns
Error code

Definition at line 236 of file tls_server_extensions.c.

◆ tlsFormatServerEmsExtension()

error_t tlsFormatServerEmsExtension ( TlsContext context,
uint8_t *  p,
size_t *  written 
)

Format ExtendedMasterSecret extension.

Parameters
[in]contextPointer to the TLS context
[in]pOutput stream where to write the ExtendedMasterSecret extension
[out]writtenTotal number of bytes that have been written
Returns
Error code

Definition at line 471 of file tls_server_extensions.c.

◆ tlsFormatServerMaxFragLenExtension()

error_t tlsFormatServerMaxFragLenExtension ( TlsContext context,
uint8_t *  p,
size_t *  written 
)

Format MaxFragmentLength extension.

Parameters
[in]contextPointer to the TLS context
[in]pOutput stream where to write the MaxFragmentLength extension
[out]writtenTotal number of bytes that have been written
Returns
Error code

Definition at line 107 of file tls_server_extensions.c.

◆ tlsFormatServerRecordSizeLimitExtension()

error_t tlsFormatServerRecordSizeLimitExtension ( TlsContext context,
uint8_t *  p,
size_t *  written 
)

Format RecordSizeLimit extension.

Parameters
[in]contextPointer to the TLS context
[in]pOutput stream where to write the RecordSizeLimit extension
[out]writtenTotal number of bytes that have been written
Returns
Error code

Definition at line 175 of file tls_server_extensions.c.

◆ tlsFormatServerRenegoInfoExtension()

error_t tlsFormatServerRenegoInfoExtension ( TlsContext context,
uint8_t *  p,
size_t *  written 
)

Format RenegotiationInfo extension.

Parameters
[in]contextPointer to the TLS context
[in]pOutput stream where to write the RenegotiationInfo extension
[out]writtenTotal number of bytes that have been written
Returns
Error code

Definition at line 512 of file tls_server_extensions.c.

◆ tlsFormatServerSniExtension()

error_t tlsFormatServerSniExtension ( TlsContext context,
uint8_t *  p,
size_t *  written 
)

Format SNI extension.

Parameters
[in]contextPointer to the TLS context
[in]pOutput stream where to write the ServerName extension
[out]writtenTotal number of bytes that have been written
Returns
Error code

Definition at line 53 of file tls_server_extensions.c.

◆ tlsParseClientAlpnExtension()

error_t tlsParseClientAlpnExtension ( TlsContext context,
const TlsProtocolNameList protocolNameList 
)

Parse ALPN extension.

Parameters
[in]contextPointer to the TLS context
[in]protocolNameListPointer to the ALPN extension
Returns
Error code

Definition at line 903 of file tls_server_extensions.c.

◆ tlsParseClientCertTypeListExtension()

error_t tlsParseClientCertTypeListExtension ( TlsContext context,
const TlsCertTypeList clientCertTypeList 
)

Parse ClientCertType extension.

Parameters
[in]contextPointer to the TLS context
[in]clientCertTypeListPointer to the ClientCertType extension
Returns
Error code

Definition at line 997 of file tls_server_extensions.c.

◆ tlsParseClientEcPointFormatsExtension()

error_t tlsParseClientEcPointFormatsExtension ( TlsContext context,
const TlsEcPointFormatList ecPointFormatList 
)

Parse EcPointFormats extension.

Parameters
[in]contextPointer to the TLS context
[in]ecPointFormatListPointer to the EcPointFormats extension
Returns
Error code

Definition at line 842 of file tls_server_extensions.c.

◆ tlsParseClientEmsExtension()

error_t tlsParseClientEmsExtension ( TlsContext context,
const uint8_t *  extendedMasterSecret 
)

Parse ExtendedMasterSecret extension.

Parameters
[in]contextPointer to the TLS context
[in]extendedMasterSecretPointer to the ExtendedMasterSecret extension
Returns
Error code

Definition at line 1140 of file tls_server_extensions.c.

◆ tlsParseClientMaxFragLenExtension()

error_t tlsParseClientMaxFragLenExtension ( TlsContext context,
const uint8_t *  maxFragLen 
)

Parse MaxFragmentLength extension.

Parameters
[in]contextPointer to the TLS context
[in]maxFragLenPointer to the MaxFragmentLength extension
Returns
Error code

Definition at line 705 of file tls_server_extensions.c.

◆ tlsParseClientRecordSizeLimitExtension()

error_t tlsParseClientRecordSizeLimitExtension ( TlsContext context,
const uint8_t *  recordSizeLimit 
)

Parse RecordSizeLimit extension.

Parameters
[in]contextPointer to the TLS context
[in]recordSizeLimitPointer to the RecordSizeLimit extension
Returns
Error code

Definition at line 778 of file tls_server_extensions.c.

◆ tlsParseClientRenegoInfoExtension()

error_t tlsParseClientRenegoInfoExtension ( TlsContext context,
const TlsRenegoInfo renegoInfo 
)

Parse RenegotiationInfo extension.

Parameters
[in]contextPointer to the TLS context
[in]renegoInfoPointer to the RenegotiationInfo extension
Returns
Error code

Definition at line 1199 of file tls_server_extensions.c.

◆ tlsParseClientSniExtension()

error_t tlsParseClientSniExtension ( TlsContext context,
const TlsServerNameList serverNameList 
)

Parse SNI extension.

Parameters
[in]contextPointer to the TLS context
[in]serverNameListPointer to the SNI extension
Returns
Error code

Definition at line 628 of file tls_server_extensions.c.

◆ tlsParseClientSupportedVersionsExtension()

error_t tlsParseClientSupportedVersionsExtension ( TlsContext context,
const TlsSupportedVersionList supportedVersionList 
)

Parse SupportedVersions extension.

Parameters
[in]contextPointer to the TLS context
[in]supportedVersionListPointer to the SupportedVersions extension
Returns
Error code

Definition at line 576 of file tls_server_extensions.c.

◆ tlsParseServerCertTypeListExtension()

error_t tlsParseServerCertTypeListExtension ( TlsContext context,
const TlsCertTypeList serverCertTypeList 
)

Parse ServerCertType extension.

Parameters
[in]contextPointer to the TLS context
[in]serverCertTypeListPointer to the ServerCertType extension
Returns
Error code

Definition at line 1077 of file tls_server_extensions.c.