Webserver+3d print

Dependents:   Nucleo

Embed: (wiki syntax)

« Back to documentation index

tls_server_misc.h File Reference

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.

Author:
Oryx Embedded SARL (www.oryx-embedded.com)
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]contextPointer to the TLS context
[in]pOutput stream where to write the PSK identity hint
[out]writtenTotal 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]contextPointer to the TLS context
[in]pOutput stream where to write the PSK identity hint
[out]writtenTotal 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]contextPointer to the TLS context
[in]pOutput stream where to write the PSK identity hint
[in]paramsPointer to the server's key exchange parameters
[in]paramsLenLength of the server's key exchange parameters
[out]writtenTotal 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]contextPointer to the TLS context
[in]pInput stream where to read the client's key exchange parameters
[in]lengthNumber of bytes available in the input stream
[out]consumedTotal 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]contextPointer to the TLS context
[in]pInput stream where to read the PSK identity hint
[in]lengthNumber of bytes available in the input stream
[out]consumedTotal number of bytes that have been consumed
Returns:
Error code

Definition at line 686 of file tls_server_misc.c.