ytls_get_last_error()

ytls_get_last_error()#

Retrieves the last error message associated with the given secure socket sskt in the TLS context ytls.

Prototype

const char *ytls_get_last_error(
    hytls  ytls,
    hsskt  sskt
);

Parameters

Key

Type

Description

ytls

hytls

The TLS context from which to retrieve the last error.

sskt

hsskt

The secure socket whose last error message is to be retrieved.


Return Value

A pointer to a string containing the last error message, or NULL if no error has occurred.

Notes

The returned error message is managed internally and should not be freed by the caller.

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples