Fork me on GitHub
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Macros | Functions
dtls-bio.h File Reference

OpenSSL BIO filter for fragmentation. More...

#include <openssl/opensslv.h>
#include <openssl/err.h>
#include <openssl/ssl.h>
Include dependency graph for dtls-bio.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define JANUS_USE_OPENSSL_PRE_1_1_API   (OPENSSL_VERSION_NUMBER < 0x10100000L)
 

Functions

int janus_dtls_bio_filter_init (void)
 OpenSSL BIO filter for fragmentation initialization. More...
 
BIO_METHOD * BIO_janus_dtls_filter (void)
 OpenSSL BIO filter for fragmentation constructor. More...
 
void janus_dtls_bio_filter_set_mtu (int start_mtu)
 Set the MTU for the BIO filter. More...
 

Detailed Description

OpenSSL BIO filter for fragmentation.

OpenSSL BIO filter for fragmentation (headers)

Author
Lorenzo Miniero loren.nosp@m.zo@m.nosp@m.eetec.nosp@m.ho.c.nosp@m.om

Implementation of an OpenSSL BIO filter to fix the broken behaviour of fragmented packets when using mem BIOs (as we do in Janus). See https://mta.openssl.org/pipermail/openssl-users/2015-June/001503.html and https://github.com/meetecho/janus-gateway/issues/252 for more details.

Protocols

Macro Definition Documentation

#define JANUS_USE_OPENSSL_PRE_1_1_API   (OPENSSL_VERSION_NUMBER < 0x10100000L)

Function Documentation

BIO_METHOD* BIO_janus_dtls_filter ( void  )

OpenSSL BIO filter for fragmentation constructor.

int janus_dtls_bio_filter_init ( void  )

OpenSSL BIO filter for fragmentation initialization.

void janus_dtls_bio_filter_set_mtu ( int  start_mtu)

Set the MTU for the BIO filter.

Note
The default starting MTU is 1472, in case fragmentation is needed the OpenSSL DTLS stack automatically decreases it. That said, if you know for sure the MTU in the network Janus is deployed in is smaller than that, it makes sense to configure an according value to start from
Parameters
start_mtuThe MTU to start from (1472 by default)