metaRTC5.0新版本支持mbedtls(PolarSSL)

本文介绍了mbedTLS,一个适用于小型嵌入式设备的SSL/TLS协议实现,它在性能上优于openssl。metaRTC5.0版本开始支持mbedTLS,提供了对mbedtls2.0和mbedtls3.0的兼容。文章详细阐述了如何编译mbedtls和srtp2,并在metaRTC项目中配置和使用mbedtls,包括修改配置文件、创建构建目录、执行编译命令等步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

概述

mbed TLS(PolarSSL)是TLS和SSL协议的实现,和openssl相比,mbed TLS更适合小型嵌入式设备,性能也优于openssl,metaRTC5.0新版本支持openssl和mbed TLS,metaRTC实现了对mbedtls2.0和mbedtls3.0版本的支持。

下载源码

GitHub - Mbed-TLS/mbedtls: An open source, portable, easy to use, readable and flexible SSL libraryAn open source, portable, easy to use, readable and flexible SSL library - GitHub - Mbed-TLS/mbedtls: An open source, portable, easy to use, readable and flexible SSL libraryhttps://github.com/Mbed-TLS/mbedtlshttps://github.com/metartc/metaRTChttps://github.com/metartc/metaRTCmetaRTC: metaRTC为纯C版本的webrtc 可与谷歌webrtc类库互通,支持Webrtc/SRT/RTMPhttps://gitee.com/metartc/metaRTC

mbedtls编译

修改mbedtls/mbedtls_config.h(mbedtls3.0)和mbedtls/config.h(mbedtls2.0)参数

去掉#define MBEDTLS_SSL_DTLS_SRTP注释使其生效

mkdir build

cd build

cmake ..

make

srtp2编译

cmake文件CMakeLists.txt中修改为ON或者编译加参数使其支持mbedtls

mkdir build

cd build

cmake ..

make

metaRTC编译

修改参数yang_config.h

Yang_Using_Openssl 设为1使用openssl,设为0使用mbedtls

在qt demo工程中注释openssl,取消mbedtls注释

 在cmake工程中,设置mbedtls静态库链接

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

metaRTC

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值