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

Name

Description

e

Packed error code from ERR_get_error() or similar.

buf

Destination buffer that receives a NUL‐terminated description.

len

Capacity of buf in bytes.

Created with MrDocs