Loading...
Searching...
No Matches
dtls-bio.h
Go to the documentation of this file.
#ifndef JANUS_DTLS_BIO_H
#define JANUS_DTLS_BIO_H
#include <openssl/opensslv.h>
#include <openssl/err.h>
#include <openssl/ssl.h>
int janus_dtls_bio_agent_init(void);
BIO *BIO_janus_dtls_agent_new(void *dtls);
void janus_dtls_bio_agent_set_mtu(int start_mtu);
int janus_dtls_bio_agent_get_mtu(void);
#if defined(LIBRESSL_VERSION_NUMBER)
#define JANUS_USE_OPENSSL_PRE_1_1_API (LIBRESSL_VERSION_NUMBER < 0x30500000L)
#else
#define JANUS_USE_OPENSSL_PRE_1_1_API (OPENSSL_VERSION_NUMBER < 0x10100000L)
#endif
#endif
janus_dtls_bio_agent_init
int janus_dtls_bio_agent_init(void)
OpenSSL BIO agent writer initialization.
Definition dtls-bio.c:55
BIO_janus_dtls_agent_new
BIO * BIO_janus_dtls_agent_new(void *dtls)
OpenSSL BIO agent writer constructor.
Definition dtls-bio.c:79
janus_dtls_bio_agent_set_mtu
void janus_dtls_bio_agent_set_mtu(int start_mtu)
Set the MTU for the BIO agent writer.
Definition dtls-bio.c:20
janus_dtls_bio_agent_get_mtu
int janus_dtls_bio_agent_get_mtu(void)
Return which MTU was configured for the BIO agent writer.
Definition dtls-bio.c:28