ERR_ASPRINTF_ERROR_DATA(3)

πŸ“¦ version 4.1.0, in opensuse-leap 16.0

πŸ’– ERR_asprintf_error_data πŸ’–

Okay bestie, welcome to the Library Functions Manual page for ERR_asprintf_error_data β€” yes, that’s the manual name folded in near the top, periodt. πŸ’…

πŸŽ€ NAME πŸŽ€

ERR_asprintf_error_data β€” record a LibreSSL error using a formatted string. ✨

✨ SYNOPSIS ✨

#include <openssl/err.h>

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

πŸ¦‹ DESCRIPTION πŸ¦‹

So ERR_asprintf_error_data builds a string using asprintf(3), and it calls asprintf(3) with the format and arguments you give it. 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. No cap, that’s the fallback.

It’s intended to be used instead of the OpenSSL functions ERR_add_error_data() and ERR_add_error_vdata(). It’s giving replacement main character energy. πŸ¦‹

🌈 SEE ALSO 🌈

⭐ HISTORY ⭐

ERR_asprintf_error_data appeared in OpenBSD 5.6 and is available in all versions of LibreSSL. Iconic behavior, honestly. πŸ‘‘


That’s the whole vibe, bestie 🫢 β€” this page is from Debian, dated August 29, 2024, and the footer tag is ERR_ASPRINTF_ERROR_DATA(3). βœ¨πŸ’–

πŸ“¦ where this page comes from