summaryrefslogtreecommitdiffstats
path: root/crypto/conf
diff options
context:
space:
mode:
authorRich Salz <rsalz@akamai.com>2021-05-25 14:48:41 -0400
committerPauli <pauli@openssl.org>2021-06-02 12:40:02 +1000
commit6b750b89ee9ad3952b1b25e47b848abc8b60e7dd (patch)
tree15c5f382192521533d08ea291a6cab7855ad376f /crypto/conf
parentff234c6804571b70bc02ff44df1f42c4a3fe5cf1 (diff)
Add NCONF_get0_libctx()
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/15466)
Diffstat (limited to 'crypto/conf')
-rw-r--r--crypto/conf/conf_api.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/conf/conf_api.c b/crypto/conf/conf_api.c
index e4e305c714..2d72a6ab32 100644
--- a/crypto/conf/conf_api.c
+++ b/crypto/conf/conf_api.c
@@ -20,6 +20,11 @@
static void value_free_hash(const CONF_VALUE *a, LHASH_OF(CONF_VALUE) *conf);
static void value_free_stack_doall(CONF_VALUE *a);
+OSSL_LIB_CTX *NCONF_get0_libctx(CONF *conf)
+{
+ return conf->libctx;
+}
+
CONF_VALUE *_CONF_get_section(const CONF *conf, const char *section)
{
CONF_VALUE vv;