ERR_PRINT_ERRORS(3ossl)
β¨ NAME β¨
ERR_print_errors, ERR_print_errors_fp, ERR_print_errors_cb β print error messages. Yep, that's the whole vibe, bestie β and this is the ERR_PRINT_ERRORS(3ossl) manual page. π
π¦ SYNOPSIS π¦
#include <openssl/err.h>
void ERR_print_errors(BIO *bp);
void ERR_print_errors_fp(FILE *fp);
void ERR_print_errors_cb(int (*cb)(const char *str, size_t len, void *u),
void *u);
π DESCRIPTION π
Okay so ERR_print_errors() is a convenience function β iconic behavior, honestly β and what it does is print the error strings for all the errors that OpenSSL has recorded to bp, which empties the error queue. Cleanup queen. π§Ήβ¨
ERR_print_errors_fp() is the same, except the output goes to a FILE.
ERR_print_errors_cb() is also the same, except the callback function, cb, is called for each error line with the string, length, and userdata u as the callback parameters.
The error strings will have the following format:
[pid]:error:[error code]:[library name]:[function name]:[reason string]:[filename]:[line]:[optional text message]
So real talk: error code is an 8 digit hexadecimal number. library name, function name and reason string are ASCII text, as is optional text message if one was set for the respective error code.
If there is no text string registered for the given error code, the error string will contain the numeric code. No cap. π«Ά
π₯ RETURN VALUES π₯
ERR_print_errors() and ERR_print_errors_fp() return no values. That's it, that's the tea. π
π SEE ALSO π
π COPYRIGHT π
Copyright 2000-2020 The OpenSSL Project Authors. All Rights Reserved.
Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>.
Made with π from OpenSSL version 3.5.0, dated 2026-09-25 β mwah, bestie. ππ
π¦ where this page comes from
- opensuse-leap 16.0: openssl-3-doc 3.5.0-160000.11.1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms