|
pianod2
multisource multiuser scriptable networked music player
|
Football transport implementations for GNU TLS. More...
#include <config.h>#include <assert.h>#include <errno.h>#include "fb_public.h"#include "fb_transport.h"#include "fb_service.h"#include <sys/socket.h>#include <gnutls/gnutls.h>
Functions | |
| bool | fb_gnutls_configure (const FB_TLS_CONFIG_FILENAMES *paths) |
| bool | fb_gnutls_init (FB_CONNECTION *connection) |
| ssize_t | fb_gnutls_handshake (struct fb_connection_t *connection) |
| Perform TLS handshaking on a new connection. Return incomplete, failure, or 0. More... | |
| ssize_t | fb_gnutls_buffering (struct fb_connection_t *connection) |
| Query number of bytes in TLS buffers. More... | |
| ssize_t | fb_gnutls_read (struct fb_connection_t *connection, char *data, ssize_t byte_count) |
| ssize_t | fb_gnutls_write (struct fb_connection_t *connection, const char *data, ssize_t byte_count) |
| void | fb_gnutls_done (FB_CONNECTION *connection) |
| void | fb_gnutls_cleanup () |
Variables | |
| static bool | fb_tls_initialized |
| static gnutls_certificate_credentials_t | fb_tls_credentials |
| static gnutls_dh_params_t | fb_tls_dh_params |
| static gnutls_priority_t | fb_tls_priorities |
| const FB_TRANSPORT_FUNCS | fb_transport_encrypted |
Football transport implementations for GNU TLS.
| ssize_t fb_gnutls_buffering | ( | struct fb_connection_t * | connection | ) |
Query number of bytes in TLS buffers.
| void fb_gnutls_cleanup | ( | ) |
| bool fb_gnutls_configure | ( | const FB_TLS_CONFIG_FILENAMES * | paths | ) |
Initialize state, load certificates and keys.
| void fb_gnutls_done | ( | FB_CONNECTION * | connection | ) |
| ssize_t fb_gnutls_handshake | ( | struct fb_connection_t * | connection | ) |
Perform TLS handshaking on a new connection. Return incomplete, failure, or 0.
| bool fb_gnutls_init | ( | FB_CONNECTION * | connection | ) |
Initialize the TLS stuff for a new connection.
| connection | The connection to initialize. |
| ssize_t fb_gnutls_read | ( | struct fb_connection_t * | connection, |
| char * | data, | ||
| ssize_t | byte_count | ||
| ) |
Read data from a TLS connection using GNU TLS.
| ssize_t fb_gnutls_write | ( | struct fb_connection_t * | connection, |
| const char * | data, | ||
| ssize_t | byte_count | ||
| ) |
Write data to a TLS connection using GNU TLS.
|
static |
|
static |
|
static |
|
static |
| const FB_TRANSPORT_FUNCS fb_transport_encrypted |