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

OpenSSL BIO filter for fragmentation. More...

#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.

Functions

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

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

Function Documentation

BIO_METHOD* BIO_janus_dtls_filter ( void  )

OpenSSL BIO filter for fragmentation constructor.

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)