Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-src
Path: blob/main/crypto/openssl/apps/lib/apps_opt_printf.c
34869 views
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 */
15
int 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
27