diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2023-05-16 10:24:35 +0200 |
---|---|---|
committer | Dr. David von Oheimb <dev@ddvo.net> | 2023-05-25 09:04:35 +0200 |
commit | b77826877be3bdd56e3e86887cb78ea010db90be (patch) | |
tree | 93b8c05b76cce887a3b60d4b0830e87c48c2e86b /apps/include/apps.h | |
parent | da7f81d39308f9ecab6fde1f9116ff673ef3f3b3 (diff) |
APPS: replace awkward and error-prone pattern by calls to new app_conf_try_number()
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com>
(Merged from https://github.com/openssl/openssl/pull/20971)
Diffstat (limited to 'apps/include/apps.h')
-rw-r--r-- | apps/include/apps.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/include/apps.h b/apps/include/apps.h index c9e0d440e8..62b4d19ae3 100644 --- a/apps/include/apps.h +++ b/apps/include/apps.h @@ -66,6 +66,8 @@ BIO *bio_open_owner(const char *filename, int format, int private); BIO *bio_open_default(const char *filename, char mode, int format); BIO *bio_open_default_quiet(const char *filename, char mode, int format); char *app_conf_try_string(const CONF *cnf, const char *group, const char *name); +int app_conf_try_number(const CONF *conf, const char *group, const char *name, + long *result); CONF *app_load_config_bio(BIO *in, const char *filename); # define app_load_config(filename) app_load_config_internal(filename, 0) # define app_load_config_quiet(filename) app_load_config_internal(filename, 1) |