diff options
| author | schwarze <> | 2022-12-23 17:52:32 +0000 |
|---|---|---|
| committer | schwarze <> | 2022-12-23 17:52:32 +0000 |
| commit | 7310af2bbc2fb24075e1b5012835e3149885c31c (patch) | |
| tree | 587d0a13b7677378968a6aadcecac6080feda6d0 /src/lib/libc | |
| parent | b994d6b549e306c0b900427114e95d6cc9f94b23 (diff) | |
| download | openbsd-7310af2bbc2fb24075e1b5012835e3149885c31c.tar.gz openbsd-7310af2bbc2fb24075e1b5012835e3149885c31c.tar.bz2 openbsd-7310af2bbc2fb24075e1b5012835e3149885c31c.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 '')
| -rw-r--r-- | src/lib/libcrypto/man/BIO_get_ex_new_index.3 | 41 |
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 |
| 105 | In the description here, | 116 | In the description here, |
| 106 | .Vt TYPE | 117 | .Vt TYPE |
| @@ -133,15 +144,30 @@ is a function that calls | |||
| 133 | with an offset into the opaque exdata part of the | 144 | with an offset into the opaque exdata part of the |
| 134 | .Vt TYPE | 145 | .Vt TYPE |
| 135 | object. | 146 | object. |
| 147 | .Pp | ||
| 148 | .Fn TYPE_set_app_data | ||
| 149 | and | ||
| 150 | .Fn TYPE_get_app_data | ||
| 151 | are deprecated wrappers that call | ||
| 152 | .Fn TYPE_set_ex_data | ||
| 153 | and | ||
| 154 | .Fn TYPE_get_ex_data | ||
| 155 | with | ||
| 156 | .Fa idx | ||
| 157 | set to 0. | ||
| 136 | .Sh RETURN VALUES | 158 | .Sh RETURN VALUES |
| 137 | .Fn TYPE_get_new_ex_index | 159 | .Fn TYPE_get_new_ex_index |
| 138 | returns a new index on success or \-1 on error. | 160 | returns 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 |
| 141 | returns 1 on success or 0 on error. | 163 | and |
| 164 | .Fn TYPE_set_app_data | ||
| 165 | return 1 on success or 0 on error. | ||
| 142 | .Pp | 166 | .Pp |
| 143 | .Fn TYPE_get_ex_data | 167 | .Fn TYPE_get_ex_data |
| 144 | returns the application data or | 168 | and |
| 169 | .Fn TYPE_get_app_data | ||
| 170 | return the application data or | ||
| 145 | .Dv NULL | 171 | .Dv NULL |
| 146 | if an error occurred. | 172 | if 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 | ||
| 180 | and | ||
| 181 | .Fn BIO_get_app_data | ||
| 182 | first 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 , |
| 155 | and | 185 | and |
| 156 | .Fn BIO_get_ex_data | 186 | .Fn BIO_get_ex_data |
| 157 | first appeared in SSLeay 0.9.0 and have been available since | 187 | first appeared in SSLeay 0.9.0. |
| 188 | These 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 , |
