22#ifndef _MBED_HTTPS_TLS_TCP_SOCKET_H_
23#define _MBED_HTTPS_TLS_TCP_SOCKET_H_
33#if !defined(MBED_CONF_NSAPI_OFFLOAD_TLSSOCKET) || !(MBED_CONF_NSAPI_OFFLOAD_TLSSOCKET)
36#if defined(MBEDTLS_SSL_CLI_C) || defined(DOXYGEN_ONLY)
72 return tcp_socket.
open(stack);
132 const void *client_private_key_pem,
size_t client_private_key_len);
nsapi_error_t open(NetworkStack *stack)
Open a network socket on the network stack of the given network interface.
TLSSocket is a wrapper around TCPSocket for interacting with TLS servers.
TLSSocket()
Create an uninitialized socket.
nsapi_error_t open(NetworkStack *stack)
Opens a socket.
nsapi_error_t connect(const SocketAddress &address=SocketAddress()) override
Connect the transport socket and start handshake.
~TLSSocket() override
Destroy the TLSSocket and closes the transport.
TLSSocket is a wrapper around Socket for interacting with TLS servers.
void set_hostname(const char *hostname)
Set hostname.
nsapi_error_t set_root_ca_cert(const void *root_ca, size_t len)
Sets the certification of Root CA.
nsapi_error_t connect(const SocketAddress &address=SocketAddress()) override
Connect the transport socket and start handshake.
nsapi_error_t set_client_cert_key(const void *client_cert, size_t client_cert_len, const void *client_private_key_pem, size_t client_private_key_len)
Sets client certificate, and client private key.
Error to string translation.
This file contains definitions and functions for the CTR_DRBG pseudorandom generator.
Entropy accumulator implementation.
signed int nsapi_error_t
Type used to represent error codes.
NetworkStack * nsapi_create_stack(nsapi_stack_t *stack)
Convert a raw nsapi_stack_t object into a C++ NetworkStack object.