summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2019-05-28 15:58:08 +0100
committerMatt Caswell <matt@openssl.org>2019-06-17 15:32:54 +0100
commitd4c051cef338eecf092affbb479d1f87c1ea31d9 (patch)
treedf622ee097f1fcb54b324ac672abab3e64207649 /include
parent30478c97837a026ba56718f98d490adf7bce2760 (diff)
Add the function openssl_ctx_get_concrete()
This adds the ability to take an OPENSSL_CTX parameter and either return it as is (unchanged), or if it is NULL return a pointer to the default ctx. Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/9040)
Diffstat (limited to 'include')
-rw-r--r--include/internal/cryptlib.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/internal/cryptlib.h b/include/internal/cryptlib.h
index d76f9e1704..025e1acdfe 100644
--- a/include/internal/cryptlib.h
+++ b/include/internal/cryptlib.h
@@ -156,6 +156,8 @@ typedef struct openssl_ctx_method {
void (*free_func)(void *);
} OPENSSL_CTX_METHOD;
+OPENSSL_CTX *openssl_ctx_get_concrete(OPENSSL_CTX *ctx);
+
/* Functions to retrieve pointers to data by index */
void *openssl_ctx_get_data(OPENSSL_CTX *, int /* index */,
const OPENSSL_CTX_METHOD * ctx);