1SSL_CTX_FREE(3ossl) OpenSSL SSL_CTX_FREE(3ossl)
2
3
4
6 SSL_CTX_free - free an allocated SSL_CTX object
7
9 #include <openssl/ssl.h>
10
11 void SSL_CTX_free(SSL_CTX *ctx);
12
14 SSL_CTX_free() decrements the reference count of ctx, and removes the
15 SSL_CTX object pointed to by ctx and frees up the allocated memory if
16 the reference count has reached 0.
17
18 It also calls the free()ing procedures for indirectly affected items,
19 if applicable: the session cache, the list of ciphers, the list of
20 Client CAs, the certificates and keys.
21
22 If ctx is NULL nothing is done.
23
25 If a session-remove callback is set (SSL_CTX_sess_set_remove_cb()),
26 this callback will be called for each session being freed from ctx's
27 session cache. This implies, that all corresponding sessions from an
28 external session cache are removed as well. If this is not desired, the
29 user should explicitly unset the callback by calling
30 SSL_CTX_sess_set_remove_cb(ctx, NULL) prior to calling SSL_CTX_free().
31
33 SSL_CTX_free() does not provide diagnostic information.
34
36 SSL_CTX_new(3), ssl(7), SSL_CTX_sess_set_get_cb(3)
37
39 Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
40
41 Licensed under the Apache License 2.0 (the "License"). You may not use
42 this file except in compliance with the License. You can obtain a copy
43 in the file LICENSE in the source distribution or at
44 <https://www.openssl.org/source/license.html>.
45
46
47
483.1.1 2023-08-31 SSL_CTX_FREE(3ossl)