修复警告:ssl:connection_info / 1:不建议使用

时间:2017-03-06 11:06:02

标签: ssl erlang migration

我正在将服务迁移到更新版本的erlang,并且我正在尝试修复以下编译警告:

Warning: ssl:connection_info/1: deprecated; use connection_information/[1,2] instead

这就像用新的替换已弃用的调用一样简单,但我发现旧connection_info模块中的ssl具有与新connection_information函数不同的返回格式。新的ssl模块。

它曾经返回{ok, {ProtocolVersion, CipherSuite}}而新的只返回{ok, Result},其中Result是有关连接的各种信息的列表。

我需要从Result中提取协议版本和密码套件,以使用新功能而不是旧功能。如何实现这一目标?

0 个答案:

没有答案
相关问题