gpt4 book ai didi

SSL_Accept 失败并出现错误 :FFFFFFFF:lib(255):func(4095):reason(4095)

转载 作者:太空宇宙 更新时间:2023-11-03 13:40:57 25 4
gpt4 key购买 nike

我正在尝试写入 openssl 服务器,但 SSL_Accept 失败并出现错误:FFFFFFFF:lib(255):func(4095):reason(4095)。这个错误代码是什么意思?如何获取 openssl 错误代码的描述?

最佳答案

and SSL_Accept fails with error:FFFFFFFF

0xFFFFFFFF 为 -1。接下来您应该调用 SSL_get_error。来自 SSL_accept(3) :

If the underlying BIO is blocking, SSL_accept() will only return once the handshake has been finished or an error occurred, except for SGC (Server Gated Cryptography). For SGC, SSL_accept() may return with -1, but SSL_get_error() will yield SSL_ERROR_WANT_READ/WRITE and SSL_accept() should be called again.

If the underlying BIO is non-blocking, SSL_accept() will also return when the underlying BIO could not satisfy the needs of SSL_accept() to continue the handshake, indicating the problem by the return value -1. In this case a call to SSL_get_error() with the return value of SSL_accept() will yield SSL_ERROR_WANT_READ or SSL_ERROR_WANT_WRITE. The calling process then must repeat the call after taking appropriate action to satisfy the needs of SSL_accept().

关于SSL_Accept 失败并出现错误 :FFFFFFFF:lib(255):func(4095):reason(4095),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23335525/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com