Webserver+3d print
tls_server_misc.h File Reference
Helper functions (TLS server) More...
Go to the source code of this file.
Functions | |
error_t | tlsFormatPskIdentityHint (TlsContext *context, uint8_t *p, size_t *written) |
Format PSK identity hint. | |
error_t | tlsFormatServerKeyParams (TlsContext *context, uint8_t *p, size_t *written) |
Format server's key exchange parameters. | |
error_t | tlsGenerateServerKeySignature (TlsContext *context, uint8_t *p, const uint8_t *params, size_t paramsLen, size_t *written) |
Generate signature over the server's key exchange parameters. | |
error_t | tlsParsePskIdentity (TlsContext *context, const uint8_t *p, size_t length, size_t *consumed) |
Parse PSK identity. | |
error_t | tlsParseClientKeyParams (TlsContext *context, const uint8_t *p, size_t length, size_t *consumed) |
Parse client's key exchange parameters. |
Detailed Description
Helper functions (TLS server)
License
Copyright (C) 2010-2017 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.
- Version:
- 1.7.6
Definition in file tls_server_misc.h.
Function Documentation
error_t tlsFormatPskIdentityHint | ( | TlsContext * | context, |
uint8_t * | p, | ||
size_t * | written | ||
) |
Format PSK identity hint.
- Parameters:
-
[in] context Pointer to the TLS context [in] p Output stream where to write the PSK identity hint [out] written Total number of bytes that have been written
- Returns:
- Error code
Definition at line 57 of file tls_server_misc.c.
error_t tlsFormatServerKeyParams | ( | TlsContext * | context, |
uint8_t * | p, | ||
size_t * | written | ||
) |
Format server's key exchange parameters.
- Parameters:
-
[in] context Pointer to the TLS context [in] p Output stream where to write the PSK identity hint [out] written Total number of bytes that have been written
- Returns:
- Error code
Definition at line 100 of file tls_server_misc.c.
error_t tlsGenerateServerKeySignature | ( | TlsContext * | context, |
uint8_t * | p, | ||
const uint8_t * | params, | ||
size_t | paramsLen, | ||
size_t * | written | ||
) |
Generate signature over the server's key exchange parameters.
- Parameters:
-
[in] context Pointer to the TLS context [in] p Output stream where to write the PSK identity hint [in] params Pointer to the server's key exchange parameters [in] paramsLen Length of the server's key exchange parameters [out] written Total number of bytes that have been written
- Returns:
- Error code
Definition at line 275 of file tls_server_misc.c.
error_t tlsParseClientKeyParams | ( | TlsContext * | context, |
const uint8_t * | p, | ||
size_t | length, | ||
size_t * | consumed | ||
) |
Parse client's key exchange parameters.
- Parameters:
-
[in] context Pointer to the TLS context [in] p Input stream where to read the client's key exchange parameters [in] length Number of bytes available in the input stream [out] consumed Total number of bytes that have been consumed
- Returns:
- Error code
Definition at line 765 of file tls_server_misc.c.
error_t tlsParsePskIdentity | ( | TlsContext * | context, |
const uint8_t * | p, | ||
size_t | length, | ||
size_t * | consumed | ||
) |
Parse PSK identity.
- Parameters:
-
[in] context Pointer to the TLS context [in] p Input stream where to read the PSK identity hint [in] length Number of bytes available in the input stream [out] consumed Total number of bytes that have been consumed
- Returns:
- Error code
Definition at line 686 of file tls_server_misc.c.
Generated on Tue Jul 12 2022 17:10:23 by
