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 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

WARNINGS

23       If a session-remove callback is set (SSL_CTX_sess_set_remove_cb()),
24       this callback will be called for each session being freed from ctx's
25       session cache. This implies, that all corresponding sessions from an
26       external session cache are removed as well. If this is not desired, the
27       user should explicitly unset the callback by calling
28       SSL_CTX_sess_set_remove_cb(ctx, NULL) prior to calling SSL_CTX_free().
29

RETURN VALUES

31       SSL_CTX_free() does not provide diagnostic information.
32

SEE ALSO

34       SSL_CTX_new(3), ssl(3), SSL_CTX_sess_set_get_cb(3)
35
36
37
381.0.2o                            2018-03-27                   SSL_CTX_free(3)
Impressum