我有以下 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。