BSB Developer Docs
Loading...
Searching...
No Matches
mongoose_tls.h File Reference

Custom TLS connection flow implementation for the Mongoose library. More...

#include <mongoose.h>
#include <toolbox/tls_config.h>

Go to the source code of this file.

Functions

bool mongoose_tls_init (struct mg_connection *conn, const char *url, const TlsConfig *tls_config)
 Initialise the TLS layer for the given Mongoose connection.
 

Detailed Description

Custom TLS connection flow implementation for the Mongoose library.

This module replaces the implementation for the mg_tls_init function extending it with hardware crypto-based mTLS capability.

Function Documentation

◆ mongoose_tls_init()

bool mongoose_tls_init ( struct mg_connection * conn,
const char * url,
const TlsConfig * tls_config )

Initialise the TLS layer for the given Mongoose connection.

Parameters
[in,out]connpointer to the Mongoose connection to be acted upon
[in]urlpointer to a zero-terminated string containing the remote server URL
[in]tls_configpointer to a TLS configuration structure
Returns
true on success, false otherwise