summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorschwarze <>2022-12-23 17:52:32 +0000
committerschwarze <>2022-12-23 17:52:32 +0000
commit0e2d84ed743187bacc221372eb72c8a39e626c0c (patch)
tree587d0a13b7677378968a6aadcecac6080feda6d0 /src
parent69e3200bfe328c5b28962db021d49b7e59c0073e (diff)
downloadopenbsd-0e2d84ed743187bacc221372eb72c8a39e626c0c.tar.gz
openbsd-0e2d84ed743187bacc221372eb72c8a39e626c0c.tar.bz2
openbsd-0e2d84ed743187bacc221372eb72c8a39e626c0c.zip
Document the deprecated wrappers BIO_set_app_data(3) and BIO_get_app_data(3).
Some code roams the wild still calling them.
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/man/BIO_get_ex_new_index.341
1 files changed, 36 insertions, 5 deletions
diff --git a/src/lib/libcrypto/man/BIO_get_ex_new_index.3 b/src/lib/libcrypto/man/BIO_get_ex_new_index.3
index a0bed0ea1d..fd584f6b54 100644
--- a/src/lib/libcrypto/man/BIO_get_ex_new_index.3
+++ b/src/lib/libcrypto/man/BIO_get_ex_new_index.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: BIO_get_ex_new_index.3,v 1.12 2019/08/16 12:16:22 schwarze Exp $ 1.\" $OpenBSD: BIO_get_ex_new_index.3,v 1.13 2022/12/23 17:52:32 schwarze Exp $
2.\" full merge up to: OpenSSL 61f805c1 Jan 16 01:01:46 2018 +0800 2.\" full merge up to: OpenSSL 61f805c1 Jan 16 01:01:46 2018 +0800
3.\" 3.\"
4.\" This file was written by Rich Salz <rsalz@akamai.com>. 4.\" This file was written by Rich Salz <rsalz@akamai.com>.
@@ -48,13 +48,15 @@
48.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 48.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
49.\" OF THE POSSIBILITY OF SUCH DAMAGE. 49.\" OF THE POSSIBILITY OF SUCH DAMAGE.
50.\" 50.\"
51.Dd $Mdocdate: August 16 2019 $ 51.Dd $Mdocdate: December 23 2022 $
52.Dt BIO_GET_EX_NEW_INDEX 3 52.Dt BIO_GET_EX_NEW_INDEX 3
53.Os 53.Os
54.Sh NAME 54.Sh NAME
55.Nm BIO_get_ex_new_index , 55.Nm BIO_get_ex_new_index ,
56.Nm BIO_set_ex_data , 56.Nm BIO_set_ex_data ,
57.Nm BIO_get_ex_data , 57.Nm BIO_get_ex_data ,
58.Nm BIO_set_app_data ,
59.Nm BIO_get_app_data ,
58.Nm ENGINE_get_ex_new_index , 60.Nm ENGINE_get_ex_new_index ,
59.Nm ENGINE_set_ex_data , 61.Nm ENGINE_set_ex_data ,
60.Nm ENGINE_get_ex_data , 62.Nm ENGINE_get_ex_data ,
@@ -101,6 +103,15 @@
101.Fa "TYPE *d" 103.Fa "TYPE *d"
102.Fa "int idx" 104.Fa "int idx"
103.Fc 105.Fc
106.Ft int
107.Fo TYPE_set_app_data
108.Fa "TYPE *d"
109.Fa "void *arg"
110.Fc
111.Ft void *
112.Fo TYPE_get_app_data
113.Fa "TYPE *d"
114.Fc
104.Sh DESCRIPTION 115.Sh DESCRIPTION
105In the description here, 116In the description here,
106.Vt TYPE 117.Vt TYPE
@@ -133,15 +144,30 @@ is a function that calls
133with an offset into the opaque exdata part of the 144with an offset into the opaque exdata part of the
134.Vt TYPE 145.Vt TYPE
135object. 146object.
147.Pp
148.Fn TYPE_set_app_data
149and
150.Fn TYPE_get_app_data
151are deprecated wrappers that call
152.Fn TYPE_set_ex_data
153and
154.Fn TYPE_get_ex_data
155with
156.Fa idx
157set to 0.
136.Sh RETURN VALUES 158.Sh RETURN VALUES
137.Fn TYPE_get_new_ex_index 159.Fn TYPE_get_new_ex_index
138returns a new index on success or \-1 on error. 160returns a new index on success or \-1 on error.
139.Pp 161.Pp
140.Fn TYPE_set_ex_data 162.Fn TYPE_set_ex_data
141returns 1 on success or 0 on error. 163and
164.Fn TYPE_set_app_data
165return 1 on success or 0 on error.
142.Pp 166.Pp
143.Fn TYPE_get_ex_data 167.Fn TYPE_get_ex_data
144returns the application data or 168and
169.Fn TYPE_get_app_data
170return the application data or
145.Dv NULL 171.Dv NULL
146if an error occurred. 172if an error occurred.
147.Sh SEE ALSO 173.Sh SEE ALSO
@@ -150,11 +176,16 @@ if an error occurred.
150.Xr RSA_get_ex_new_index 3 , 176.Xr RSA_get_ex_new_index 3 ,
151.Xr X509_new 3 177.Xr X509_new 3
152.Sh HISTORY 178.Sh HISTORY
179.Fn BIO_set_app_data
180and
181.Fn BIO_get_app_data
182first appeared in SSLeay 0.8.1.
153.Fn BIO_get_ex_new_index , 183.Fn BIO_get_ex_new_index ,
154.Fn BIO_set_ex_data , 184.Fn BIO_set_ex_data ,
155and 185and
156.Fn BIO_get_ex_data 186.Fn BIO_get_ex_data
157first appeared in SSLeay 0.9.0 and have been available since 187first appeared in SSLeay 0.9.0.
188These functions have been available since
158.Ox 2.4 . 189.Ox 2.4 .
159.Pp 190.Pp
160.Fn X509_get_ex_new_index , 191.Fn X509_get_ex_new_index ,