xref: /openbsd-src/lib/libcrypto/man/DH_get_ex_new_index.3 (revision 4b12da358b0b5ad8356c6b1708d17736cedd0669)
1*4b12da35Sschwarze.\"	$OpenBSD: DH_get_ex_new_index.3,v 1.5 2018/03/23 23:18:17 schwarze Exp $
2b4937797Sschwarze.\"	OpenSSL a528d4f0 Oct 27 13:40:11 2015 -0400
38974101aSjmc.\"
4b4937797Sschwarze.\" This file was written by Ulf Moeller <ulf@openssl.org>.
5b4937797Sschwarze.\" Copyright (c) 2000 The OpenSSL Project.  All rights reserved.
6b4937797Sschwarze.\"
7b4937797Sschwarze.\" Redistribution and use in source and binary forms, with or without
8b4937797Sschwarze.\" modification, are permitted provided that the following conditions
9b4937797Sschwarze.\" are met:
10b4937797Sschwarze.\"
11b4937797Sschwarze.\" 1. Redistributions of source code must retain the above copyright
12b4937797Sschwarze.\"    notice, this list of conditions and the following disclaimer.
13b4937797Sschwarze.\"
14b4937797Sschwarze.\" 2. Redistributions in binary form must reproduce the above copyright
15b4937797Sschwarze.\"    notice, this list of conditions and the following disclaimer in
16b4937797Sschwarze.\"    the documentation and/or other materials provided with the
17b4937797Sschwarze.\"    distribution.
18b4937797Sschwarze.\"
19b4937797Sschwarze.\" 3. All advertising materials mentioning features or use of this
20b4937797Sschwarze.\"    software must display the following acknowledgment:
21b4937797Sschwarze.\"    "This product includes software developed by the OpenSSL Project
22b4937797Sschwarze.\"    for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
23b4937797Sschwarze.\"
24b4937797Sschwarze.\" 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
25b4937797Sschwarze.\"    endorse or promote products derived from this software without
26b4937797Sschwarze.\"    prior written permission. For written permission, please contact
27b4937797Sschwarze.\"    openssl-core@openssl.org.
28b4937797Sschwarze.\"
29b4937797Sschwarze.\" 5. Products derived from this software may not be called "OpenSSL"
30b4937797Sschwarze.\"    nor may "OpenSSL" appear in their names without prior written
31b4937797Sschwarze.\"    permission of the OpenSSL Project.
32b4937797Sschwarze.\"
33b4937797Sschwarze.\" 6. Redistributions of any form whatsoever must retain the following
34b4937797Sschwarze.\"    acknowledgment:
35b4937797Sschwarze.\"    "This product includes software developed by the OpenSSL Project
36b4937797Sschwarze.\"    for use in the OpenSSL Toolkit (http://www.openssl.org/)"
37b4937797Sschwarze.\"
38b4937797Sschwarze.\" THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
39b4937797Sschwarze.\" EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
40b4937797Sschwarze.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
41b4937797Sschwarze.\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE OpenSSL PROJECT OR
42b4937797Sschwarze.\" ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
43b4937797Sschwarze.\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
44b4937797Sschwarze.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
45b4937797Sschwarze.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
46b4937797Sschwarze.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
47b4937797Sschwarze.\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
48b4937797Sschwarze.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
49b4937797Sschwarze.\" OF THE POSSIBILITY OF SUCH DAMAGE.
50b4937797Sschwarze.\"
51*4b12da35Sschwarze.Dd $Mdocdate: March 23 2018 $
52526c24c9Sschwarze.Dt DH_GET_EX_NEW_INDEX 3
53526c24c9Sschwarze.Os
54526c24c9Sschwarze.Sh NAME
55526c24c9Sschwarze.Nm DH_get_ex_new_index ,
56526c24c9Sschwarze.Nm DH_set_ex_data ,
57526c24c9Sschwarze.Nm DH_get_ex_data
58526c24c9Sschwarze.Nd add application specific data to DH structures
59526c24c9Sschwarze.Sh SYNOPSIS
60526c24c9Sschwarze.In openssl/dh.h
61526c24c9Sschwarze.Ft int
62526c24c9Sschwarze.Fo DH_get_ex_new_index
63526c24c9Sschwarze.Fa "long argl"
64526c24c9Sschwarze.Fa "void *argp"
65526c24c9Sschwarze.Fa "CRYPTO_EX_new *new_func"
66526c24c9Sschwarze.Fa "CRYPTO_EX_dup *dup_func"
67526c24c9Sschwarze.Fa "CRYPTO_EX_free *free_func"
68526c24c9Sschwarze.Fc
69526c24c9Sschwarze.Ft int
70526c24c9Sschwarze.Fo DH_set_ex_data
71526c24c9Sschwarze.Fa "DH *d"
72526c24c9Sschwarze.Fa "int idx"
73526c24c9Sschwarze.Fa "void *arg"
74526c24c9Sschwarze.Fc
75526c24c9Sschwarze.Ft char *
76526c24c9Sschwarze.Fo DH_get_ex_data
77526c24c9Sschwarze.Fa "DH *d"
78526c24c9Sschwarze.Fa "int idx"
79526c24c9Sschwarze.Fc
80526c24c9Sschwarze.Sh DESCRIPTION
81526c24c9SschwarzeThese functions handle application specific data in
82526c24c9Sschwarze.Vt DH
83526c24c9Sschwarzestructures.
84526c24c9SschwarzeTheir usage is identical to that of
85526c24c9Sschwarze.Xr RSA_get_ex_new_index 3 ,
86526c24c9Sschwarze.Xr RSA_set_ex_data 3 ,
87526c24c9Sschwarzeand
88526c24c9Sschwarze.Xr RSA_get_ex_data 3 .
89526c24c9Sschwarze.Sh SEE ALSO
906ada955aSschwarze.Xr DH_new 3 ,
91526c24c9Sschwarze.Xr RSA_get_ex_new_index 3
92526c24c9Sschwarze.Sh HISTORY
93526c24c9Sschwarze.Fn DH_get_ex_new_index ,
94526c24c9Sschwarze.Fn DH_set_ex_data ,
95526c24c9Sschwarzeand
96526c24c9Sschwarze.Fn DH_get_ex_data
97*4b12da35Sschwarzefirst appeared in OpenSSL 0.9.5
98*4b12da35Sschwarzeand have been available since
99*4b12da35Sschwarze.Ox 2.7 .
100