We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(5)
您可以查看 OpenSSL。它处理 TLS 和 DTLS 协议。
要获取示例,您可能还想查看 OpenVPN 的源代码。
我使用这些源为 TLS/DTLS 实现了 C++ 抽象层。
无论如何,您必须非常耐心,因为 OpenSSL API 分布在多个源中,并且不提供“搜索”特定函数或结构的有效方法。
You might take a look at OpenSSL. It handles both TLS and DTLS protocols.
To get an example, you might also want to look at the source code of OpenVPN.
I implemented a C++ abstraction layer for both TLS/DTLS using these sources.
Anyway, you'll have to be very patient since OpenSSL API is spread across multiple sources and doesn't provide an effecient way to "search" for a particular function or structure.
除了标准之外,开源 CyaSSL 库 还支持 DTLS 1.0 和 DTLS 1.2 SSL/TLS 协议最高可达 TLS 1.2。用 C 编写,还有一个可用的 Java 包装器。
CyaSSL 手册是关于使用和指导的很好的参考,下载软件包包含客户端和服务器示例,以帮助用户更快地启动和运行(位于 ./examples 目录下)。
在比较 SSL/TLS 库时,以下维基百科文章可以作为一个很好的参考点:http://en.wikipedia。 org/wiki/Comparison_of_TLS_implementations。
The open source CyaSSL library supports both DTLS 1.0 and DTLS 1.2 as well, in addition to standard SSL/TLS protocols up to TLS 1.2. Written in C, there is also a Java wrapper available.
The CyaSSL Manual is a good reference regarding usage and guidance, and the download package contains both client and server examples to help users get up and running more quickly (found under the ./examples directory).
The following Wikipedia article can be a good reference point when comparing SSL/TLS libraries: http://en.wikipedia.org/wiki/Comparison_of_TLS_implementations.
我写了一篇关于 Net-SNMP 如何使用 OpenSSL 实现 DTLS 的评论/指南:
http://www.net-snmp.org/wiki/index.php/DTLS_Implementation_Notes
不幸的是,可能有一些东西不正确并且已经过时了。但这仍然是一个更好的起点,因为可用的文档非常少。
I wrote a commentary/guide on how Net-SNMP used OpenSSL to implement DTLS:
http://www.net-snmp.org/wiki/index.php/DTLS_Implementation_Notes
Unfortunately, there are probably a few things incorrect and out of date with it. But it's still a better starting place because there is very little usable documentation out there at all.
GnuTLS 库也支持 DTLS。 GnuTLS 手册中提供了有关 API 的信息和示例。
DTLS is supported in the GnuTLS library as well. Information on the API and examples are provided in the GnuTLS Manual.
Openssl 从 0.9.8 版本开始支持 DTLS 1.0,由于修复了一些 DTLS 相关的问题(支持 DTLS-SRTP、避免 DTLS DoS 攻击等),建议使用 1.0.1c 或更高版本。
如果需要 DTLS 1.2,则 openssl 1.1.0版本是必要的。
Openssl starts to support DTLS 1.0 since version 0.9.8, and version 1.0.1c or above is recommended due to some DTLS-related fixes(support for DTLS-SRTP, avoiding DTLS DoS attack, etc.)
If DTLS 1.2 is needed, openssl version 1.1.0 is necessary.