5 OPENSSL_CTX, OPENSSL_CTX_new, OPENSSL_CTX_free - OpenSSL library context
9 #include <openssl/crypto.h>
11 typedef struct openssl_ctx_st OPENSSL_CTX;
13 OPENSSL_CTX *OPENSSL_CTX_new(void);
14 void OPENSSL_CTX_free(OPENSSL_CTX *ctx);
18 C<OPENSSL_CTX> is an internal OpenSSL library context type.
19 Applications may allocate their own, but may also use C<NULL> to use
20 the internal default context with functions that take a C<OPENSSL_CTX>
23 OPENSSL_CTX_new() creates a new OpenSSL library context.
24 When a non default library context is in use care should be taken with
25 multi-threaded applications to properly clean up thread local resources before
26 the OPENSSL_CTX is freed.
27 See L<OPENSSL_thread_stop_ex(3)> for more information.
29 OPENSSL_CTX_free() frees the given C<ctx>.
33 OPENSSL_CTX_new() return a library context pointer on success, or
36 OPENSSL_CTX_free() doesn't return any value.
40 OPENSSL_CTX, OPENSSL_CTX_new() and OPENSSL_CTX_free()
41 were added in OpenSSL 3.0.
45 Copyright 2019 The OpenSSL Project Authors. All Rights Reserved.
47 Licensed under the Apache License 2.0 (the "License"). You may not use
48 this file except in compliance with the License. You can obtain a copy
49 in the file LICENSE in the source distribution or at
50 L<https://www.openssl.org/source/license.html>.