【问题标题】:BIO_set_fp() crashes on WindowsBIO_set_fp() 在 Windows 上崩溃
【发布时间】:2017-07-31 23:42:19
【问题描述】:

我有以下 OpenSSL 代码:

BIO* out = BIO_new(BIO_s_file()); // BIO_new_fp(stdout, BIO_NOCLOSE);
if (out == NULL) {
    CNGerr(CNG_F_CNG_CTRL, CNG_R_FILE_OPEN_ERROR);
    return 0;
}
BIO_set_fp(out, stdout, BIO_NOCLOSE); // Program exits with code 0x1 here

BIO_set_fp(out, stdout, BIO_NOCLOSE); 行,程序存在,错误为 0x1。

我在 Windows 10 上使用 Visual Studio 2015。

【问题讨论】:

    标签: c openssl openssl-engine


    【解决方案1】:

    我通过更改标志来解决它:

    Properties > C/C++ > Code Generation > Runtime Library: Multi-threaded DLL /MD

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-04-09
      • 2012-07-17
      • 2021-02-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多