SSL_CTX_ctrl.3ossl - Man Page

internal handling functions for SSL_CTX and SSL objects

Synopsis

​ #include <openssl/ssl.h>
​
​ long SSL_CTX_ctrl(SSL_CTX *ctx, int cmd, long larg, void *parg);
​ long SSL_CTX_callback_ctrl(SSL_CTX *, int cmd, void (*fp)());
​
​ long SSL_ctrl(SSL *ssl, int cmd, long larg, void *parg);
​ long SSL_callback_ctrl(SSL *, int cmd, void (*fp)());

Description

The SSL_*_ctrl() family of functions is used to manipulate settings of the SSL_CTX and SSL objects. Depending on the command cmd the arguments ​larg, parg, or fp are evaluated. These functions should never be called directly. All functionalities needed are made available via other functions or macros.

Return Values

The return values of the SSL*_ctrl() functions depend on the command supplied via the cmd parameter.

See Also

ssl(7)

Referenced By

The man pages SSL_callback_ctrl.3ossl(3), SSL_ctrl.3ossl(3) and SSL_CTX_callback_ctrl.3ossl(3) are aliases of SSL_CTX_ctrl.3ossl(3).

2026-08-25 3.5.8 OpenSSL