【问题标题】:how to know if my openssl supports sslv3如何知道我的 openssl 是否支持 sslv3
【发布时间】:2015-08-15 23:12:39
【问题描述】:

我的机器上安装了 openssl。我使用 openssl 作为客户端。我想知道openssl是否支持SSLv3。

是否有一个 openssl 命令可以知道我的 openssl 是否支持 SSLv3?

【问题讨论】:

    标签: c linux shell openssl


    【解决方案1】:

    如何知道我的 openssl 是否支持 sslv3

    如果 SSLv2 或 SSLv3 未启用,那么您可以检查 opensslconf.h 中的预处理器宏 OPENSSL_NO_SSL2OPENSSL_NO_SSL2

    #include <openssl/opensslconf.h>
    ...
    
    #if !defined(OPENSSL_NO_SSL3)
      /* SSLv3 is available */
    #endif
    

    定义由构建系统创建/设置。如果你配置:

    ./config no-ssl2 no-ssl2 no-comp
    

    构建系统将定义OPENSSL_NO_SSL2OPENSSL_NO_SSL3OPENSSL_NO_COMP

    【讨论】:

      猜你喜欢
      • 2012-12-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-08-14
      • 2023-02-20
      • 2023-03-13
      • 2012-10-26
      • 2018-06-29
      相关资源
      最近更新 更多