summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2020-06-22 13:12:53 +0200
committerRichard Levitte <levitte@openssl.org>2020-06-28 10:55:51 +0200
commit5a9752756b68632320c5aed7b6eb38e63a8ebf31 (patch)
treee2ba1d77b15be16055adc4ce340a71a900f5992f /include
parentINSTALL.md: Restore $ as command prompt indicator (diff)
downloadopenssl-5a9752756b68632320c5aed7b6eb38e63a8ebf31.tar.xz
openssl-5a9752756b68632320c5aed7b6eb38e63a8ebf31.zip
CORE: Add OPENSSL_CTX_set0_default(), to set a default library context
Applications may want to set their own default library context, possibly per-thread. OPENSSL_CTX_set0_default() does that. Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/12228)
Diffstat (limited to 'include')
-rw-r--r--include/openssl/crypto.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/openssl/crypto.h b/include/openssl/crypto.h
index 58965de0e8..33296b6ada 100644
--- a/include/openssl/crypto.h
+++ b/include/openssl/crypto.h
@@ -494,6 +494,7 @@ int CRYPTO_THREAD_compare_id(CRYPTO_THREAD_ID a, CRYPTO_THREAD_ID b);
OPENSSL_CTX *OPENSSL_CTX_new(void);
int OPENSSL_CTX_load_config(OPENSSL_CTX *ctx, const char *config_file);
void OPENSSL_CTX_free(OPENSSL_CTX *);
+OPENSSL_CTX *OPENSSL_CTX_set0_default(OPENSSL_CTX *libctx);
# ifdef __cplusplus
}