PJSIP库中的TLSv1_2(TLS1.2)支持 [英] TLSv1_2 (TLS1.2) support in PJSIP library

查看:652
本文介绍了PJSIP库中的TLSv1_2(TLS1.2)支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Android/iOS应用程序中使用最新的 PJSIP 库.我想在项目中使用TLSv1.2连接. PJSIP支持哪个TLS版本?从源代码来看,它似乎支持TLSv1.0.有没有一种方法可以将TLSv1_2支持添加到PJSIP库?

I am using latest PJSIP library in my Android/iOS applications. I want use TLSv1.2 connection in my project. Which TLS version does PJSIP support? From source code it seems to be supporting TLSv1.0. Is there a way to add TLSv1_2 support to PJSIP library?

推荐答案

我想在我的项目中使用TLSv1.2连接. PJSIP支持哪个TLS版本?

I want use TLSv1.2 connection in my project. Which TLS version does PJSIP support?

使用TLS配置PJSIP :

PJSIP中的TLS支持需要OpenSSL开发套件(标头和 库).

The TLS support in PJSIP requires OpenSSL development kit (headers and libs) to be installed.

因此PJSIP可以提供OpenSSL提供的任何功能. OpenSSL 1.0.1提供TLS 1.2. OpenSSL 1.0.0及更低版本不支持(请参见更改日志,并请注意TLS 1.2支持在1.0.0和1.0.1之间添加).由于您使用的是Android,因此您可能拥有OpenSSL 0.9.8.这意味着使用Android版本的OpenSSL可能无法使用TLS 1.2.

So PJSIP could offer anything that OpenSSL offers. OpenSSL 1.0.1 offers TLS 1.2. OpenSSL 1.0.0 and below does not (see the CHANGE LOG, and note TLS 1.2 support was added between 1.0.0 and 1.0.1). Since you are working on Android, you likely have OpenSSL 0.9.8. That means TLS 1.2 is probably not available to you using Android's version of OpenSSL.

如果要使用ChaCha/Poly密码套件,则需要OpenSSL 1.0.2.请参阅OpenSSL邮件上的 ChaSSL20中的ChaCha20/Poly1305吗?列表.

If you want the ChaCha/Poly cipher suites, then you need OpenSSL 1.0.2. see ChaCha20/Poly1305 in OpenSSL? on the OpenSSL mailing list.

当您开始与其他SIP组件进行互操作或使用SIP代理时,您的里程可能会有所不同.

Your mileage may vary when you start inter-operating with other SIP components or if you are using a SIP proxy.

这篇关于PJSIP库中的TLSv1_2(TLS1.2)支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆