ADC Home > Reference Library > Reference > Mac OS X > Mac OS X Man Pages

 

This document is a Mac OS X manual page. Manual pages are a command-line technology for providing documentation. You can view these manual pages locally using the man(1) command. These manual pages come from many different sources, and thus, have a variety of writing styles.

This manual page is associated with the Mac OS X developer tools. The software or headers described may not be present on your Mac OS X installation until you install the developer tools package. This package is available on your Mac OS X installation DVD, and the latest versions can be downloaded from developer.apple.com.

For more information about the manual page format, see the manual page for manpages(5).



SSL_CTX_free(3)                                    OpenSSL                                   SSL_CTX_free(3)



NAME
       SSL_CTX_free - free an allocated SSL_CTX object

SYNOPSIS
        #include <openssl/ssl.h>

        void SSL_CTX_free(SSL_CTX *ctx);

DESCRIPTION
       SSL_CTX_free() decrements the reference count of ctx, and removes the SSL_CTX object pointed to by
       ctx and frees up the allocated memory if the the reference count has reached 0.

       It also calls the free()ing procedures for indirectly affected items, if applicable: the session
       cache, the list of ciphers, the list of Client CAs, the certificates and keys.

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

RETURN VALUES
       SSL_CTX_free() does not provide diagnostic information.

SEE ALSO
       SSL_CTX_new(3), ssl(3), SSL_CTX_sess_set_get_cb(3)



0.9.7l                                           2003-03-27                                  SSL_CTX_free(3)

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.