xref: /netbsd-src/crypto/external/bsd/openssl/dist/test/testutil/cb.c (revision b0d1725196a7921d003d2c66a14f186abda4176b)
113d40330Schristos /*
213d40330Schristos  * Copyright 2017 The OpenSSL Project Authors. All Rights Reserved.
313d40330Schristos  *
4*b0d17251Schristos  * Licensed under the Apache License 2.0 (the "License").  You may not use
513d40330Schristos  * this file except in compliance with the License.  You can obtain a copy
613d40330Schristos  * in the file LICENSE in the source distribution or at
713d40330Schristos  * https://www.openssl.org/source/license.html
813d40330Schristos  */
913d40330Schristos 
1013d40330Schristos #include "output.h"
1113d40330Schristos #include "tu_local.h"
1213d40330Schristos 
openssl_error_cb(const char * str,size_t len,void * u)1313d40330Schristos int openssl_error_cb(const char *str, size_t len, void *u)
1413d40330Schristos {
1513d40330Schristos     return test_printf_stderr("%s", str);
1613d40330Schristos }
17