Embedded TCP/IP stack  4.7.0

◆ fnet_tls_init()

fnet_tls_desc_t fnet_tls_init ( fnet_tls_role_t  role)

Initialize the TLS context.

Parameters
roleTLS role. Client or server.
Returns
This function returns:
  • TLS Context descriptor if no error occurs.
  • FNET_NULL if an error occurs.
See also
fnet_tls_release(), fnet_tls_socket(), fnet_tls_set_own_certificate()

This function initializes the TLS context.
It allocates all resources and set parameters required for TLS connection. After a successful initialization, the application may create TLS sockets using fnet_tls_socket(). The context may be shared between several sockets.


© 2005-2020 by Andrej Butok. http://fnet.sourceforge.net