SSL_CTX_load_verify_locations Fails with SSL_ERROR_NONE
SSL_CTX_load_verify_locations Fails with SSL_ERROR_NONE
我已经搜索了高低,没有找到这个问题的解释。
我正在运行以下内容
int ret = 0;
ERR_clear_error();
ret = SSL_CTX_load_verify_locations( ctx_, "f:\50\server\SSLCACertificateFile.pem", NULL );
我得到的 ret 值为 1,这是一个错误。 然后我检查错误队列。
int err = SSL_get_error( con_, ret );
返回的错误值为零。 该值与错误相关联:SSL_ERROR_NONE
。
SSL_ERROR_NONE
意味着函数实际上成功了。
我可以相信SSL_CTX_load_verify_locations
函数确实成功运行了吗?
man SSL_CTX_load_verify_locations
RETURN VALUES
The following return values can occur:
0 The operation failed because CAfile and CApath are NULL or the processing at one of the locations specified failed. Check the error stack to find out the
reason.
1 The operation succeeded.
相关文章:
- SSL上的`curl_easy_send`和`curl_asy_recv`:如何处理`CURLE_AGAIN`
- Problems with std::cin.fail()
- 应用程序崩溃并显示"symbol _ZdlPvm, version Qt_5 not defined in file libQt5Core.so.5 with link time reference"
- 这对"With a stackless coroutine, only the top-level routine may be suspended."意味着什么
- Boost.TEST with CLion: "Test framework quit unexpectedly"
- 避免碎片化的ClientHellos with OpenSSL (DTLS)
- Issues with Win32 ReadProcessMemory API
- Qt with WinAPI MouseProc
- [[maybe_unused]] with structured_binding?
- Issue with WriteProcessMemory
- 使用 OpenSSL 从内存中读取原始 SSL/TLS 证书
- OpenCV RTP-Stream with FFMPEG
- "Unable to start debugging. No process is associated with this object." - 在Visual Studio Code中使用GDB
- Mongocxx无法使用SSL连接到mongoDB
- std::adjacent_difference with std::chrono time_point
- DLL Made with CMake 使程序崩溃
- QtCreator with C 库中的链接器问题
- SHBrowseForFolder with BIF_BROWSEFORCOMPUTER and SHGetPathFr
- specialized std::default_delete with QQmlComponent
- VS2019 - Sudo Remote Debugging on Linux with Cmake project