diff options
author | Armin Fuerst <armin@fuerst.priv.at> | 2022-02-04 20:35:54 +0100 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2022-02-14 10:18:46 +0100 |
commit | 065121ff198a84106023013420dedd57ac4ff53a (patch) | |
tree | ff7da729a33d0380267dbc080a528b3d0f1cf6a9 /apps/include | |
parent | c920020f0bb13f0d2bf0fcad5c7ee63458b633b4 (diff) |
Add tests for do_updatedb
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)
Diffstat (limited to 'apps/include')
-rw-r--r-- | apps/include/apps.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/include/apps.h b/apps/include/apps.h index 28c2bbdad2..c567ed5664 100644 --- a/apps/include/apps.h +++ b/apps/include/apps.h @@ -1,5 +1,5 @@ /* - * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 1995-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 @@ -221,6 +221,8 @@ typedef struct ca_db_st { # endif } CA_DB; +extern int do_updatedb(CA_DB *db, time_t *now); + void app_bail_out(char *fmt, ...); void *app_malloc(size_t sz, const char *what); BIGNUM *load_serial(const char *serialfile, int create, ASN1_INTEGER **retai); |