[#SSL_get_error]
= SSL&lowbar;get&lowbar;error
:mrdocs:

Map a TLS&sol;SSL I&sol;O return value to a detailed error &sol; retry code&period;

== Synopsis

Declared in `&lt;openssl&sol;ssl&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
SSL&lowbar;get&lowbar;error(
    xref:SSL.adoc[SSL] const* s,
    int ret&lowbar;code);
----

== Return Value

SSL&lowbar;ERROR&lowbar;NONE, SSL&lowbar;ERROR&lowbar;ZERO&lowbar;RETURN, SSL&lowbar;ERROR&lowbar;WANT&lowbar;READ&sol;WRITE, SSL&lowbar;ERROR&lowbar;SYSCALL, SSL&lowbar;ERROR&lowbar;SSL, or another SSL&lowbar;ERROR&lowbar;&ast; code&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *s*
| SSL connection on which the I&sol;O call was made&period;
| *ret&lowbar;code*
| Return value from SSL&lowbar;read, SSL&lowbar;write, SSL&lowbar;do&lowbar;handshake, SSL&lowbar;accept, SSL&lowbar;connect, or SSL&lowbar;shutdown&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
