struct TlsError {
int code;
int alert;
long long detail;
char message[TLS_ERROR_MESSAGE_MAX];
}Fields
TLS_OK or TLS_ERR_*
the TLS alert (RFC 8446 §6) received or sent, -1 if none
the backend's own code (OpenSSL error, SECURITY_STATUS, OSStatus), 0 if none