GNU libmicrohttpd  0.9.72
microhttpd_tls.h File Reference

interface for TLS plugins of libmicrohttpd More...

#include <microhttpd2.h>
Include dependency graph for microhttpd_tls.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  MHD_TLS_Plugin
 

Macros

#define MHD_TLS_ABI_VERSION   0
 
#define MHD_TLS_ABI_VERSION_STR   "0"
 
#define MHD_TLS_INIT(body)
 

Typedefs

typedef struct MHD_TLS_Plugin *(* MHD_TLS_PluginInit) (const char *ciphers)
 

Detailed Description

interface for TLS plugins of libmicrohttpd

Author
Christian Grothoff

Definition in file microhttpd_tls.h.

Macro Definition Documentation

◆ MHD_TLS_ABI_VERSION

#define MHD_TLS_ABI_VERSION   0

Version of the TLS ABI.

Definition at line 34 of file microhttpd_tls.h.

◆ MHD_TLS_ABI_VERSION_STR

#define MHD_TLS_ABI_VERSION_STR   "0"

Version of the TLS ABI as a string. Must match MHD_TLS_ABI_VERSION!

Definition at line 40 of file microhttpd_tls.h.

◆ MHD_TLS_INIT

#define MHD_TLS_INIT (   body)
Value:
struct MHD_TLS_Plugin * \
MHD_TLS_init_ ## MHD_TLS_ABI_VERSION (const char *ciphers) \ \
{ body }
#define MHD_TLS_ABI_VERSION

Define function to be exported from the TLS plugin.

body function body that receives ciphers argument and must return the plugin API, or NULL on error.

Definition at line 191 of file microhttpd_tls.h.

Typedef Documentation

◆ MHD_TLS_PluginInit

typedef struct MHD_TLS_Plugin*(* MHD_TLS_PluginInit) (const char *ciphers)

Signature of the initialization function each TLS plugin must export.

Parameters
ciphersdesired cipher suite
Returns
NULL on errors (in particular, invalid cipher suite)

Definition at line 1 of file microhttpd_tls.h.