mirror of
https://github.com/openssl/openssl.git
synced 2024-11-27 05:21:51 +08:00
68e49bf223
Also added a internal error printing callback to be used both with ERR_print_errors_cb() and with CRYPTO_mem_leaks_cb Reviewed-by: Andy Polyakov <appro@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/3345)
17 lines
503 B
C
17 lines
503 B
C
/*
|
|
* Copyright 2017 The OpenSSL Project Authors. All Rights Reserved.
|
|
*
|
|
* Licensed under the OpenSSL license (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
|
|
*/
|
|
|
|
#include "output.h"
|
|
#include "tu_local.h"
|
|
|
|
int openssl_error_cb(const char *str, size_t len, void *u)
|
|
{
|
|
return test_printf_stderr("%*s# %s", subtest_level(), "", str);
|
|
}
|