使用ssl增强Boost asio的细节 [英] Verbosity in boost asio using ssl

查看:108
本文介绍了使用ssl增强Boost asio的细节的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一种方法可以使用boost asio使ssl握手对我更可见? 我收到一个错误:"asio.ssl错误". 我只想要更多的详细信息,因为此消息对我几乎没有任何意义.

Is there a way to make ssl handshake more visible to me using boost asio? I am getting an error: "asio.ssl error". I just want more verbosity, because this message means almost nothing to me.

推荐答案

我发现带有ssl的boost.asio使用openssl.

I found that boost.asio with ssl use openssl.

我只需要使用调试标志重新编译libssl,以使ssl握手过程更加冗长.我可以使用"./config -DKSSL_DEBUG"重新配置.

I just need to recompile the libssl with debug flags to make ssl handshake process more verbose. I can do this just reconfiguring with './config -DKSSL_DEBUG'.

在boost文档中,我找不到控制详细程度的方法.

In the boost documentation I found no way to control the verbosity level.

这篇关于使用ssl增强Boost asio的细节的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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