diff options
Diffstat (limited to 'apps/include')
-rw-r--r-- | apps/include/apps.h | 4 | ||||
-rw-r--r-- | apps/include/opt.h | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/apps/include/apps.h b/apps/include/apps.h index 87d1b47..9a76dcd 100644 --- a/apps/include/apps.h +++ b/apps/include/apps.h @@ -65,6 +65,7 @@ CONF *app_load_config_bio(BIO *in, const char *filename); CONF *app_load_config(const char *filename); CONF *app_load_config_quiet(const char *filename); int app_load_modules(const CONF *config); +CONF *app_load_config_modules(const char *configfile); void unbuffer(FILE *fp); void wait_for_async(SSL *s); # if defined(OPENSSL_SYS_MSDOS) @@ -290,9 +291,12 @@ typedef struct verify_options_st { extern VERIFY_CB_ARGS verify_args; +OPENSSL_CTX *app_create_libctx(void); +OPENSSL_CTX *app_get0_libctx(void); OSSL_PARAM *app_params_new_from_opts(STACK_OF(OPENSSL_STRING) *opts, const OSSL_PARAM *paramdefs); void app_params_free(OSSL_PARAM *params); +int app_provider_load(OPENSSL_CTX *libctx, const char *provider_name); void app_providers_cleanup(void); #endif diff --git a/apps/include/opt.h b/apps/include/opt.h index 5afbad1..ad629c0 100644 --- a/apps/include/opt.h +++ b/apps/include/opt.h @@ -273,6 +273,9 @@ OPT_PROV_PROVIDER, OPT_PROV_PROVIDER_PATH, \ OPT_PROV__LAST +# define OPT_CONFIG_OPTION \ + { "config", OPT_CONFIG, '<', "Load a configuration file (this may load modules)" } + # define OPT_PROV_OPTIONS \ OPT_SECTION("Provider"), \ { "provider_path", OPT_PROV_PROVIDER_PATH, 's', "Provider load path (must be before 'provider' argument if required)" }, \ |