SSL_get_error

Obtains the result code for a TLS/SSL I/O operation.

Gets a result code for a preceding call to SSL_connect, SSL_accept, SSL_do_handshake, SSL_read, SSL_read_ex, SSL_peek, SSL_peek_ex, SSL_write, or SSL_writex.

The OpenSSL interface is rather brittle. The current thread's error queue must be empty before the call is made, and no other OpenSSL calls should be made before calling SSL_get_error.

extern (C)
int
SSL_get_error
(
const(SSL)* ssl
,
int ret
)

Parameters

ssl const(SSL)*

the ssl object which was used to perform the call

ret int

the value which was returned by the call.

Meta