OpenBSD manual page server

Manual Page Search Parameters

ERR_ASPRINTF_ERROR_DATA(3) Library Functions Manual ERR_ASPRINTF_ERROR_DATA(3)

ERR_asprintf_error_datarecord a LibreSSL error using a formatted string

#include <openssl/err.h>

void
ERR_asprintf_error_data(char * format, ...);

ERR_asprintf_error_data builds a string using asprintf(3) called with the provided format and arguments. The resulting string is then associated with the error code that was most recently added. If asprintf(3) fails, the string "malloc failed" is associated instead.

ERR_asprintf_error_data is intended to be used instead of the OpenSSL functions () and ().

ERR(3), ERR_put_error(3), printf(3)

ERR_asprintf_error_data appeared in OpenBSD 5.6 and is available in all versions of LibreSSL.

August 29, 2024 OpenBSD-7.6