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

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.
 
ssize_t fb_gnutls_buffering (struct fb_connection_t *connection)
 Query number of bytes in TLS buffers.
 
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

const FB_TRANSPORT_FUNCS fb_transport_encrypted
 

Detailed Description

Football transport implementations for GNU TLS.

Variable Documentation

◆ fb_transport_encrypted

const FB_TRANSPORT_FUNCS fb_transport_encrypted
Initial value:
= {
.configure = fb_gnutls_configure,
.cleanup = fb_gnutls_cleanup,
.init = fb_gnutls_init,
.handshake = fb_gnutls_handshake,
.buffering = fb_gnutls_buffering,
.read = fb_gnutls_read,
.write = fb_gnutls_write,
.done = fb_gnutls_done
}
ssize_t fb_gnutls_buffering(struct fb_connection_t *connection)
Query number of bytes in TLS buffers.
Definition fb_transport_gnutls.c:129
ssize_t fb_gnutls_handshake(struct fb_connection_t *connection)
Perform TLS handshaking on a new connection. Return incomplete, failure, or 0.
Definition fb_transport_gnutls.c:113