GNU libmicrohttpd
0.9.72
|
#include <microhttpd_tls.h>
Data Fields | |
void * | cls |
void(* | done )(struct MHD_TLS_Plugin *plugin) |
enum MHD_StatusCode(* | init_kcp )(void *cls, const char *mem_key, const char *mem_cert, const char *pass) |
enum MHD_StatusCode(* | init_dhparams )(void *cls, const char *dh) |
enum MHD_StatusCode(* | init_mem_trust )(void *cls, const char *mem_trust) |
struct MHD_TLS_ConnectionState *(* | setup_connection )(void *cls,...) |
enum MHD_Bool(* | handshake )(void *cls, struct MHD_TLS_ConnectionState *cs) |
enum MHD_Bool(* | idle_ready )(void *cls, struct MHD_TLS_ConnectionState *cs) |
enum MHD_Bool(* | update_event_loop_info )(void *cls, struct MHD_TLS_ConnectionState *cs, enum MHD_RequestEventLoopInfo *eli) |
ssize_t(* | send )(void *cls, struct MHD_TLS_ConnectionState *cs, const void *buf, size_t buf_size) |
ssize_t(* | recv )(void *cls, struct MHD_TLS_ConnectionState *cs, void *buf, size_t buf_size) |
const char *(* | strerror )(void *cls, int ec) |
enum MHD_Bool(* | check_record_pending )(void *cls, struct MHD_TLS_ConnectionState *cs) |
enum MHD_Bool(* | shutdown_connection )(void *cls, struct MHD_TLS_ConnectionState *cs) |
void(* | teardown_connection )(void *cls, struct MHD_TLS_ConnectionState *cs) |
Callback functions to use for TLS operations.
Definition at line 52 of file microhttpd_tls.h.
enum MHD_Bool(* MHD_TLS_Plugin::check_record_pending) (void *cls, struct MHD_TLS_ConnectionState *cs) |
Definition at line 150 of file microhttpd_tls.h.
void* MHD_TLS_Plugin::cls |
Closure with plugin's internal state, opaque to MHD.
Definition at line 57 of file microhttpd_tls.h.
Referenced by connection_update_event_loop_info(), MHD_connection_cleanup_(), MHD_connection_mark_closed_(), MHD_request_handle_idle_(), MHD_request_handle_read_(), and MHD_request_handle_write_().
void(* MHD_TLS_Plugin::done) (struct MHD_TLS_Plugin *plugin) |
Destroy the plugin, we are done with it.
Definition at line 62 of file microhttpd_tls.h.
enum MHD_Bool(* MHD_TLS_Plugin::handshake) (void *cls, struct MHD_TLS_ConnectionState *cs) |
Definition at line 62 of file microhttpd_tls.h.
Referenced by MHD_request_handle_read_(), and MHD_request_handle_write_().
enum MHD_Bool(* MHD_TLS_Plugin::idle_ready) (void *cls, struct MHD_TLS_ConnectionState *cs) |
Definition at line 62 of file microhttpd_tls.h.
Referenced by MHD_request_handle_idle_().
enum MHD_StatusCode(* MHD_TLS_Plugin::init_dhparams) (void *cls, const char *dh) |
Initialize DH parameters.
cls | the cls of this struct |
dh | parameters to use |
Definition at line 62 of file microhttpd_tls.h.
enum MHD_StatusCode(* MHD_TLS_Plugin::init_kcp) (void *cls, const char *mem_key, const char *mem_cert, const char *pass) |
Initialize key and certificate data from memory.
cls | the cls of this struct |
mem_key | private key (key.pem) to be used by the HTTPS daemon. Must be the actual data in-memory, not a filename. |
mem_cert | certificate (cert.pem) to be used by the HTTPS daemon. Must be the actual data in-memory, not a filename. |
pass | passphrase phrase to decrypt 'key.pem', NULL if |
mem_key | is in cleartext already |
Definition at line 62 of file microhttpd_tls.h.
enum MHD_StatusCode(* MHD_TLS_Plugin::init_mem_trust) (void *cls, const char *mem_trust) |
Initialize certificate to use for client authentication.
cls | the cls of this struct |
mem_trust | client certificate |
Definition at line 62 of file microhttpd_tls.h.
ssize_t(* MHD_TLS_Plugin::recv) (void *cls, struct MHD_TLS_ConnectionState *cs, void *buf, size_t buf_size) |
Definition at line 143 of file microhttpd_tls.h.
ssize_t(* MHD_TLS_Plugin::send) (void *cls, struct MHD_TLS_ConnectionState *cs, const void *buf, size_t buf_size) |
Definition at line 136 of file microhttpd_tls.h.
struct MHD_TLS_ConnectionState*(* MHD_TLS_Plugin::setup_connection) (void *cls,...) |
Function called when we receive a connection and need to initialize our TLS state for it.
cls | the cls of this struct |
... | TBD |
Definition at line 62 of file microhttpd_tls.h.
enum MHD_Bool(* MHD_TLS_Plugin::shutdown_connection) (void *cls, struct MHD_TLS_ConnectionState *cs) |
Definition at line 150 of file microhttpd_tls.h.
Referenced by MHD_connection_mark_closed_().
const char*(* MHD_TLS_Plugin::strerror) (void *cls, int ec) |
Definition at line 150 of file microhttpd_tls.h.
void(* MHD_TLS_Plugin::teardown_connection) (void *cls, struct MHD_TLS_ConnectionState *cs) |
Definition at line 163 of file microhttpd_tls.h.
Referenced by MHD_connection_cleanup_().
enum MHD_Bool(* MHD_TLS_Plugin::update_event_loop_info) (void *cls, struct MHD_TLS_ConnectionState *cs, enum MHD_RequestEventLoopInfo *eli) |
Definition at line 62 of file microhttpd_tls.h.
Referenced by connection_update_event_loop_info().