ERR_error_string

Format a human-readable description of error code e into a buffer.

Synopsis

Declared in <openssl/err.h>

char*
ERR_error_string(
    unsigned long e,
    char* buf);

Return Value

Pointer to buf, or to the static buffer when buf is NULL.

Parameters

NameDescription
ePacked error code from ERR_get_error() or similar.
bufDestination buffer of at least 256 bytes, or NULL to use a static buffer (not thread-safe).