ERR_error_string_n

Format an OpenSSL error code into a caller-provided buffer.

Synopsis

Declared in <openssl/err.h>

void
ERR_error_string_n(
    unsigned long e,
    char* buf,
    size_t len);

Parameters

NameDescription
ePacked error code from ERR_get_error() or similar.
bufDestination buffer that receives a NUL-terminated description.
lenCapacity of buf in bytes.