mirror of
https://github.com/openssl/openssl.git
synced 2024-12-27 06:21:43 +08:00
065121ff19
Fixes #13944 Moved "opt_printf_stderr" out of apps.c to avoid duplicate definition in tests. Added function "asn1_string_to_time_t" including tests. Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/17645)
26 lines
635 B
C
26 lines
635 B
C
/*
|
|
* Copyright 2022 The OpenSSL Project Authors. All Rights Reserved.
|
|
*
|
|
* Licensed under the Apache License 2.0 (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 "opt.h"
|
|
#include <openssl/ui.h>
|
|
#include "apps_ui.h"
|
|
|
|
/* This function is defined here due to visibility of bio_err */
|
|
int opt_printf_stderr(const char *fmt, ...)
|
|
{
|
|
va_list ap;
|
|
int ret;
|
|
|
|
va_start(ap, fmt);
|
|
ret = BIO_vprintf(bio_err, fmt, ap);
|
|
va_end(ap);
|
|
return ret;
|
|
}
|
|
|