xref: /openbsd-src/lib/libssl/man/SSL_CTX_ctrl.3 (revision 10e00d1796876719ecd5784348f9f4f2b3dd83c5)
1*10e00d17Sschwarze.\"	$OpenBSD: SSL_CTX_ctrl.3,v 1.7 2018/03/27 17:35:50 schwarze Exp $
240a95353Sschwarze.\"	OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100
3f1a3c524Sschwarze.\"
440a95353Sschwarze.\" This file was written by Lutz Jaenicke <jaenicke@openssl.org>.
540a95353Sschwarze.\" Copyright (c) 2001 The OpenSSL Project.  All rights reserved.
6f1a3c524Sschwarze.\"
740a95353Sschwarze.\" Redistribution and use in source and binary forms, with or without
840a95353Sschwarze.\" modification, are permitted provided that the following conditions
940a95353Sschwarze.\" are met:
1040a95353Sschwarze.\"
1140a95353Sschwarze.\" 1. Redistributions of source code must retain the above copyright
1240a95353Sschwarze.\"    notice, this list of conditions and the following disclaimer.
1340a95353Sschwarze.\"
1440a95353Sschwarze.\" 2. Redistributions in binary form must reproduce the above copyright
1540a95353Sschwarze.\"    notice, this list of conditions and the following disclaimer in
1640a95353Sschwarze.\"    the documentation and/or other materials provided with the
1740a95353Sschwarze.\"    distribution.
1840a95353Sschwarze.\"
1940a95353Sschwarze.\" 3. All advertising materials mentioning features or use of this
2040a95353Sschwarze.\"    software must display the following acknowledgment:
2140a95353Sschwarze.\"    "This product includes software developed by the OpenSSL Project
2240a95353Sschwarze.\"    for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
2340a95353Sschwarze.\"
2440a95353Sschwarze.\" 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
2540a95353Sschwarze.\"    endorse or promote products derived from this software without
2640a95353Sschwarze.\"    prior written permission. For written permission, please contact
2740a95353Sschwarze.\"    openssl-core@openssl.org.
2840a95353Sschwarze.\"
2940a95353Sschwarze.\" 5. Products derived from this software may not be called "OpenSSL"
3040a95353Sschwarze.\"    nor may "OpenSSL" appear in their names without prior written
3140a95353Sschwarze.\"    permission of the OpenSSL Project.
3240a95353Sschwarze.\"
3340a95353Sschwarze.\" 6. Redistributions of any form whatsoever must retain the following
3440a95353Sschwarze.\"    acknowledgment:
3540a95353Sschwarze.\"    "This product includes software developed by the OpenSSL Project
3640a95353Sschwarze.\"    for use in the OpenSSL Toolkit (http://www.openssl.org/)"
3740a95353Sschwarze.\"
3840a95353Sschwarze.\" THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
3940a95353Sschwarze.\" EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
4040a95353Sschwarze.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
4140a95353Sschwarze.\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE OpenSSL PROJECT OR
4240a95353Sschwarze.\" ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
4340a95353Sschwarze.\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
4440a95353Sschwarze.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
4540a95353Sschwarze.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
4640a95353Sschwarze.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
4740a95353Sschwarze.\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
4840a95353Sschwarze.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
4940a95353Sschwarze.\" OF THE POSSIBILITY OF SUCH DAMAGE.
5040a95353Sschwarze.\"
51*10e00d17Sschwarze.Dd $Mdocdate: March 27 2018 $
52f1a3c524Sschwarze.Dt SSL_CTX_CTRL 3
53f1a3c524Sschwarze.Os
54f1a3c524Sschwarze.Sh NAME
55f1a3c524Sschwarze.Nm SSL_CTX_ctrl ,
56f1a3c524Sschwarze.Nm SSL_CTX_callback_ctrl ,
57f1a3c524Sschwarze.Nm SSL_ctrl ,
58f1a3c524Sschwarze.Nm SSL_callback_ctrl
59f1a3c524Sschwarze.Nd internal handling functions for SSL_CTX and SSL objects
60f1a3c524Sschwarze.Sh SYNOPSIS
61f1a3c524Sschwarze.In openssl/ssl.h
62f1a3c524Sschwarze.Ft long
63f1a3c524Sschwarze.Fn SSL_CTX_ctrl "SSL_CTX *ctx" "int cmd" "long larg" "void *parg"
64f1a3c524Sschwarze.Ft long
65f1a3c524Sschwarze.Fn SSL_CTX_callback_ctrl "SSL_CTX *" "int cmd" "void (*fp)()"
66f1a3c524Sschwarze.Ft long
67f1a3c524Sschwarze.Fn SSL_ctrl "SSL *ssl" "int cmd" "long larg" "void *parg"
68f1a3c524Sschwarze.Ft long
69f1a3c524Sschwarze.Fn SSL_callback_ctrl "SSL *" "int cmd" "void (*fp)()"
70f1a3c524Sschwarze.Sh DESCRIPTION
71f1a3c524SschwarzeThe
72f1a3c524Sschwarze.Fn SSL_*_ctrl
73f1a3c524Sschwarzefamily of functions is used to manipulate settings of
74f1a3c524Sschwarzethe
75f1a3c524Sschwarze.Vt SSL_CTX
76f1a3c524Sschwarzeand
77f1a3c524Sschwarze.Vt SSL
78f1a3c524Sschwarzeobjects.
79f1a3c524SschwarzeDepending on the command
80f1a3c524Sschwarze.Fa cmd
81f1a3c524Sschwarzethe arguments
82f1a3c524Sschwarze.Fa larg ,
83f1a3c524Sschwarze.Fa parg ,
84f1a3c524Sschwarzeor
85f1a3c524Sschwarze.Fa fp
86f1a3c524Sschwarzeare evaluated.
87f1a3c524SschwarzeThese functions should never be called directly.
88f1a3c524SschwarzeAll functionalities needed are made available via other functions or macros.
89f1a3c524Sschwarze.Sh RETURN VALUES
90f1a3c524SschwarzeThe return values of the
91f1a3c524Sschwarze.Fn SSL*_ctrl
92f1a3c524Sschwarzefunctions depend on the command supplied via the
93f1a3c524Sschwarze.Fn cmd
94f1a3c524Sschwarzeparameter.
95f1a3c524Sschwarze.Sh SEE ALSO
96bb2ba699Sschwarze.Xr ssl 3 ,
97bb2ba699Sschwarze.Xr SSL_CTX_add_extra_chain_cert 3 ,
98bb2ba699Sschwarze.Xr SSL_CTX_sess_number 3 ,
99bb2ba699Sschwarze.Xr SSL_CTX_sess_set_cache_size 3 ,
100bb2ba699Sschwarze.Xr SSL_CTX_set_max_cert_list 3 ,
101bb2ba699Sschwarze.Xr SSL_CTX_set_mode 3 ,
102bb2ba699Sschwarze.Xr SSL_CTX_set_options 3 ,
103bb2ba699Sschwarze.Xr SSL_CTX_set_session_cache_mode 3 ,
104bb2ba699Sschwarze.Xr SSL_CTX_set_tlsext_servername_callback 3 ,
105bb2ba699Sschwarze.Xr SSL_CTX_set_tlsext_status_cb 3 ,
106bb2ba699Sschwarze.Xr SSL_CTX_set_tlsext_ticket_key_cb 3 ,
107bcc3138aSschwarze.Xr SSL_get_server_tmp_key 3 ,
108bb2ba699Sschwarze.Xr SSL_num_renegotiations 3 ,
109bb2ba699Sschwarze.Xr SSL_session_reused 3 ,
110bb2ba699Sschwarze.Xr SSL_set_max_send_fragment 3
1118fba1ec8Sschwarze.Sh HISTORY
1128fba1ec8Sschwarze.Fn SSL_CTX_ctrl
1138fba1ec8Sschwarzeand
1148fba1ec8Sschwarze.Fn SSL_ctrl
115*10e00d17Sschwarzefirst appeared in SSLeay 0.8.0 and have been available since
1168fba1ec8Sschwarze.Ox 2.4 .
1171c77d1feSschwarze.Pp
1181c77d1feSschwarze.Fn SSL_CTX_callback_ctrl
1191c77d1feSschwarzeand
1201c77d1feSschwarze.Fn SSL_callback_ctrl
1211c77d1feSschwarzefirst appeared in OpenSSL 0.9.5 and have been available since
1221c77d1feSschwarze.Ox 2.7 .
123