1 Star 0 Fork 0

MorSunChen/janus-gateway

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
dtls-bio.h 1.24 KB
一键复制 编辑 原始数据 按行查看 历史
/*! \file dtls-bio.h
* \author Lorenzo Miniero <lorenzo@meetecho.com>
* \copyright GNU General Public License v3
* \brief OpenSSL BIO agent writer
* \details OpenSSL BIO that writes packets to a libnice agent.
*
* \ingroup protocols
* \ref protocols
*/
#ifndef _JANUS_DTLS_BIO_H
#define _JANUS_DTLS_BIO_H
#include <openssl/opensslv.h>
#include <openssl/err.h>
#include <openssl/ssl.h>
#include "dtls.h"
/*! \brief OpenSSL BIO agent writer initialization */
int janus_dtls_bio_agent_init(void);
/*! \brief OpenSSL BIO agent writer constructor */
BIO *BIO_janus_dtls_agent_new(struct janus_dtls_srtp *dtls);
/*! \brief Set the MTU for the BIO agent writer
* \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
* @param start_mtu The MTU to start from (1472 by default)
*/
void janus_dtls_bio_agent_set_mtu(int start_mtu);
#if defined(LIBRESSL_VERSION_NUMBER)
#define JANUS_USE_OPENSSL_PRE_1_1_API (1)
#else
#define JANUS_USE_OPENSSL_PRE_1_1_API (OPENSSL_VERSION_NUMBER < 0x10100000L)
#endif
#endif
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/MorsunJacky/janus-gateway.git
git@gitee.com:MorsunJacky/janus-gateway.git
MorsunJacky
janus-gateway
janus-gateway
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385