diff options
author | Pauli <pauli@openssl.org> | 2021-06-10 11:35:26 +1000 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2021-06-15 18:26:47 +1000 |
commit | 3334e039cf3de72dbb7dd6151db26110afa8c993 (patch) | |
tree | 2648dd1836e513fecbfcab2cdbf28fabd48f8813 /apps/include | |
parent | 02288cbb65397841dd0a06ddaa1cb1cdd1b05c10 (diff) |
add libctx and property query to fetch functions
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15687)
Diffstat (limited to 'apps/include')
-rw-r--r-- | apps/include/app_libctx.h | 18 | ||||
-rw-r--r-- | apps/include/apps.h | 7 |
2 files changed, 19 insertions, 6 deletions
diff --git a/apps/include/app_libctx.h b/apps/include/app_libctx.h new file mode 100644 index 0000000000..61b143b7db --- /dev/null +++ b/apps/include/app_libctx.h @@ -0,0 +1,18 @@ +/* + * Copyright 2021 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 + */ + +#ifndef OSSL_APPS_LIBCTX_H +# define OSSL_APPS_LIBCTX_H + +OSSL_LIB_CTX *app_create_libctx(void); +OSSL_LIB_CTX *app_get0_libctx(void); +int app_set_propq(const char *arg); +const char *app_get0_propq(void); + +#endif diff --git a/apps/include/apps.h b/apps/include/apps.h index 4b5c34f2e2..bc8c6359f3 100644 --- a/apps/include/apps.h +++ b/apps/include/apps.h @@ -37,6 +37,7 @@ # include "fmt.h" # include "platform.h" # include "engine_loader.h" +# include "app_libctx.h" /* * quick macro when you need to pass an unsigned char instead of a char. @@ -330,8 +331,6 @@ typedef struct verify_options_st { extern VERIFY_CB_ARGS verify_args; -OSSL_LIB_CTX *app_create_libctx(void); -OSSL_LIB_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); @@ -341,8 +340,4 @@ void app_providers_cleanup(void); EVP_PKEY *app_keygen(EVP_PKEY_CTX *ctx, const char *alg, int bits, int verbose); EVP_PKEY *app_paramgen(EVP_PKEY_CTX *ctx, const char *alg); -OSSL_LIB_CTX *app_get0_libctx(void); -int app_set_propq(const char *arg); -const char *app_get0_propq(void); - #endif |