1 /* 2 * Copyright 2022 The OpenSSL Project Authors. All Rights Reserved. 3 * 4 * Licensed under the Apache License 2.0 (the "License"). You may not use 5 * this file except in compliance with the License. You can obtain a copy 6 * in the file LICENSE in the source distribution or at 7 * https://www.openssl.org/source/license.html 8 */ 9 10 #include "opt.h" 11 #include <openssl/ui.h> 12 #include "apps_ui.h" 13 14 /* This function is defined here due to visibility of bio_err */ opt_printf_stderr(const char * fmt,...)15int opt_printf_stderr(const char *fmt, ...) 16 { 17 va_list ap; 18 int ret; 19 20 va_start(ap, fmt); 21 ret = BIO_vprintf(bio_err, fmt, ap); 22 va_end(ap); 23 return ret; 24 } 25 26