football
socket abstraction layer
Loading...
Searching...
No Matches
Functions | Variables
fb_transport_libressl.c File Reference

Football transport implementations for LibreSSL (libtls). More...

#include <config.h>
#include <assert.h>
#include <errno.h>
#include <tls.h>
#include "fb_public.h"
#include "fb_transport.h"
#include "fb_service.h"

Functions

bool fb_libressl_configure (const FB_TLS_CONFIG_FILENAMES *paths)
 
bool fb_libressl_init (FB_CONNECTION *connection)
 
ssize_t fb_libressl_handshake (struct fb_connection_t *connection)
 Perform TLS handshaking on a new connection. Return incomplete, failure, or 0.
 
ssize_t fb_libressl_buffering (struct fb_connection_t *connection)
 Query number of bytes in TLS buffers.
 
ssize_t fb_libressl_read (struct fb_connection_t *connection, char *data, ssize_t byte_count)
 
ssize_t fb_libressl_write (struct fb_connection_t *connection, const char *data, ssize_t byte_count)
 
void fb_libressl_done (FB_CONNECTION *connection)
 
void fb_libressl_cleanup ()
 

Variables

const FB_TRANSPORT_FUNCS fb_transport_encrypted
 

Detailed Description

Football transport implementations for LibreSSL (libtls).

Variable Documentation

◆ fb_transport_encrypted

const FB_TRANSPORT_FUNCS fb_transport_encrypted
Initial value:
= {
.configure = fb_libressl_configure,
.cleanup = fb_libressl_cleanup,
.init = fb_libressl_init,
.handshake = fb_libressl_handshake,
.buffering = fb_libressl_buffering,
.read = fb_libressl_read,
.write = fb_libressl_write,
.done = fb_libressl_done
}
ssize_t fb_libressl_handshake(struct fb_connection_t *connection)
Perform TLS handshaking on a new connection. Return incomplete, failure, or 0.
Definition fb_transport_libressl.c:89
ssize_t fb_libressl_buffering(struct fb_connection_t *connection)
Query number of bytes in TLS buffers.
Definition fb_transport_libressl.c:104