std1.0.0-beta-7 SafeC docs

std :: tls::tls

Struct std::TlsError

#include <std/tls/tls.h> source

struct TlsError {
    int code;
    int alert;
    long long detail;
    char message[TLS_ERROR_MESSAGE_MAX];
}

Fields

§int codesource

TLS_OK or TLS_ERR_*

§int alertsource

the TLS alert (RFC 8446 §6) received or sent, -1 if none

§long long detailsource

the backend's own code (OpenSSL error, SECURITY_STATUS, OSStatus), 0 if none

Methods

§static struct TlsError none()source · definition
§static struct TlsError make(int code, const &char message)source · definition
§int ok() constsource · definition