1SSL_CTX_FREE(3)                     OpenSSL                    SSL_CTX_FREE(3)
2
3
4

NAME

6       SSL_CTX_free - free an allocated SSL_CTX object
7

SYNOPSIS

9        #include <openssl/ssl.h>
10
11        void SSL_CTX_free(SSL_CTX *ctx);
12

DESCRIPTION

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

WARNINGS

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

RETURN VALUES

33       SSL_CTX_free() does not provide diagnostic information.
34

SEE ALSO

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 OpenSSL license (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
481.1.1                             2018-09-11                   SSL_CTX_FREE(3)
Impressum