2
0

apps_opt_printf.c 635 B

12345678910111213141516171819202122232425
  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. #include "opt.h"
  10. #include <openssl/ui.h>
  11. #include "apps_ui.h"
  12. /* This function is defined here due to visibility of bio_err */
  13. int opt_printf_stderr(const char *fmt, ...)
  14. {
  15. va_list ap;
  16. int ret;
  17. va_start(ap, fmt);
  18. ret = BIO_vprintf(bio_err, fmt, ap);
  19. va_end(ap);
  20. return ret;
  21. }