summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authortb <>2024-08-29 20:23:21 +0000
committertb <>2024-08-29 20:23:21 +0000
commita53df2ba6ef7d529e09520937003c602cdbed546 (patch)
tree6f9e1951560360e42ca9a03cf6fa0ea116958f7f /src/lib
parent8a86c8167e423a472d121576142b74934700b45f (diff)
downloadopenbsd-a53df2ba6ef7d529e09520937003c602cdbed546.tar.gz
openbsd-a53df2ba6ef7d529e09520937003c602cdbed546.tar.bz2
openbsd-a53df2ba6ef7d529e09520937003c602cdbed546.zip
Remove documentation of ERR_add_error_{,v}data()
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/man/ERR_asprintf_error_data.38
-rw-r--r--src/lib/libcrypto/man/ERR_put_error.341
2 files changed, 8 insertions, 41 deletions
diff --git a/src/lib/libcrypto/man/ERR_asprintf_error_data.3 b/src/lib/libcrypto/man/ERR_asprintf_error_data.3
index 67999e9cb0..4291dea23e 100644
--- a/src/lib/libcrypto/man/ERR_asprintf_error_data.3
+++ b/src/lib/libcrypto/man/ERR_asprintf_error_data.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: ERR_asprintf_error_data.3,v 1.2 2017/02/21 07:15:21 jmc Exp $ 1.\" $OpenBSD: ERR_asprintf_error_data.3,v 1.3 2024/08/29 20:23:21 tb Exp $
2.\" 2.\"
3.\" Copyright (c) 2017 Bob Beck <beck@openbsd.org> 3.\" Copyright (c) 2017 Bob Beck <beck@openbsd.org>
4.\" 4.\"
@@ -13,7 +13,7 @@
13.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16.Dd $Mdocdate: February 21 2017 $ 16.Dd $Mdocdate: August 29 2024 $
17.Dt ERR_ASPRINTF_ERROR_DATA 3 17.Dt ERR_ASPRINTF_ERROR_DATA 3
18.Os 18.Os
19.Sh NAME 19.Sh NAME
@@ -41,9 +41,9 @@ fails, the string "malloc failed" is associated instead.
41.Pp 41.Pp
42.Nm 42.Nm
43is intended to be used instead of the OpenSSL functions 43is intended to be used instead of the OpenSSL functions
44.Xr ERR_add_error_data 3 44.Fn ERR_add_error_data
45and 45and
46.Xr ERR_add_error_vdata 3 . 46.Fn ERR_add_error_vdata .
47.Sh SEE ALSO 47.Sh SEE ALSO
48.Xr ERR 3 , 48.Xr ERR 3 ,
49.Xr ERR_put_error 3 , 49.Xr ERR_put_error 3 ,
diff --git a/src/lib/libcrypto/man/ERR_put_error.3 b/src/lib/libcrypto/man/ERR_put_error.3
index 7eac5e415c..37e1b4d1ab 100644
--- a/src/lib/libcrypto/man/ERR_put_error.3
+++ b/src/lib/libcrypto/man/ERR_put_error.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: ERR_put_error.3,v 1.10 2022/03/31 17:27:16 naddy Exp $ 1.\" $OpenBSD: ERR_put_error.3,v 1.11 2024/08/29 20:23:21 tb Exp $
2.\" OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100 2.\" OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100
3.\" 3.\"
4.\" This file was written by Ulf Moeller <ulf@openssl.org>. 4.\" This file was written by Ulf Moeller <ulf@openssl.org>.
@@ -48,13 +48,11 @@
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: March 31 2022 $ 51.Dd $Mdocdate: August 29 2024 $
52.Dt ERR_PUT_ERROR 3 52.Dt ERR_PUT_ERROR 3
53.Os 53.Os
54.Sh NAME 54.Sh NAME
55.Nm ERR_put_error , 55.Nm ERR_put_error
56.Nm ERR_add_error_data ,
57.Nm ERR_add_error_vdata
58.Nd record an OpenSSL error 56.Nd record an OpenSSL error
59.Sh SYNOPSIS 57.Sh SYNOPSIS
60.In openssl/err.h 58.In openssl/err.h
@@ -66,16 +64,6 @@
66.Fa "const char *file" 64.Fa "const char *file"
67.Fa "int line" 65.Fa "int line"
68.Fc 66.Fc
69.Ft void
70.Fo ERR_add_error_data
71.Fa "int num"
72.Fa ...
73.Fc
74.Ft void
75.Fo ERR_add_error_vdata
76.Fa "int num"
77.Fa "va_list arg"
78.Fc
79.Sh DESCRIPTION 67.Sh DESCRIPTION
80.Fn ERR_put_error 68.Fn ERR_put_error
81adds an error code to the thread's error queue. 69adds an error code to the thread's error queue.
@@ -91,20 +79,6 @@ of
91.Fa file . 79.Fa file .
92This function is usually called by a macro. 80This function is usually called by a macro.
93.Pp 81.Pp
94.Fn ERR_add_error_data
95associates the concatenation of its
96.Fa num
97string arguments with the error code added last.
98.Fn ERR_add_error_vdata
99is similar except the argument is a
100.Vt va_list .
101Use of
102.Fn ERR_add_error_data
103and
104.Fn ERR_add_error_vdata
105is deprecated inside of LibreSSL in favour of
106.Xr ERR_asprintf_error_data 3 .
107.Pp
108.Xr ERR_load_strings 3 82.Xr ERR_load_strings 3
109can be used to register error strings so that the application can 83can be used to register error strings so that the application can
110generate human-readable error messages for the error code. 84generate human-readable error messages for the error code.
@@ -147,12 +121,5 @@ macro.
147.Xr ERR_load_strings 3 121.Xr ERR_load_strings 3
148.Sh HISTORY 122.Sh HISTORY
149.Fn ERR_put_error 123.Fn ERR_put_error
150first appeared in SSLeay 0.4.4. 124first appeared in SSLeay 0.4.4 and has been available since
151.Fn ERR_add_error_data
152first appeared in SSLeay 0.9.0.
153Both functions have been available since
154.Ox 2.4 . 125.Ox 2.4 .
155.Pp
156.Fn ERR_add_error_vdata
157first appeared in OpenSSL 1.0.1 and has been available since
158.Ox 5.3 .