25RCSIDH(lib_bio_tls_h,
"$Id: 4cd5e44e97f923231ce7555ff998235015fe6194 $")
28#include <freeradius-devel/bio/base.h>
29#include <freeradius-devel/server/request.h>
31#include <openssl/ssl.h>
33typedef struct fr_tls_connection_s fr_tls_connection_t;
static uint8_t request[4]
void fr_bio_tls_close_send(fr_bio_tls_t *my)
Send a TLS close_notify alert to the peer.
bool client
Act as the client, and connect to a server.
fr_tls_connection_t * fr_bio_tls_conn(fr_bio_tls_t *my)
The TLS connection, so the caller can set conn->name
SSL_CTX * ssl_ctx
Used to create the TLS session.
int fr_bio_tls_connect(fr_bio_tls_t *my)
Take the connection through every state which comes before application data.
fr_bio_tls_t * fr_bio_tls_alloc(request_t *request, fr_bio_t *next, SSL_CTX *ssl_ctx, bool client, bool client_cert)
Allocate a TLS bio.
int fr_bio_tls_dtls_clienthello(fr_bio_tls_t *my, uint8_t const *data, size_t data_len)
Give a DTLS server the datagram which started the connection.
bool client_cert
For a server, require a client certificate.