diff options
author | beck <> | 2017-02-20 23:21:19 +0000 |
---|---|---|
committer | beck <> | 2017-02-20 23:21:19 +0000 |
commit | 0179324cb8e49724e624c4a6c35de46c975416d4 (patch) | |
tree | 72f034bdca67cf5c4c20f03eb985bcaf9e3f89ef /src/lib/libcrypto/man/ERR_asprintf_error_data.3 | |
parent | 6cb36c9d835e1348d93099b63bcdaf2a02c38532 (diff) | |
download | openbsd-0179324cb8e49724e624c4a6c35de46c975416d4.tar.gz openbsd-0179324cb8e49724e624c4a6c35de46c975416d4.tar.bz2 openbsd-0179324cb8e49724e624c4a6c35de46c975416d4.zip |
Mark ERR_add_error_data and ERR_add_error_vdata as not for internal use,
and document ERR_asprintf_error_data as their replacement.
ok jsing@, ingo@
Diffstat (limited to 'src/lib/libcrypto/man/ERR_asprintf_error_data.3')
-rw-r--r-- | src/lib/libcrypto/man/ERR_asprintf_error_data.3 | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/src/lib/libcrypto/man/ERR_asprintf_error_data.3 b/src/lib/libcrypto/man/ERR_asprintf_error_data.3 new file mode 100644 index 0000000000..6481da4750 --- /dev/null +++ b/src/lib/libcrypto/man/ERR_asprintf_error_data.3 | |||
@@ -0,0 +1,55 @@ | |||
1 | .\" $OpenBSD: ERR_asprintf_error_data.3,v 1.1 2017/02/20 23:21:19 beck Exp $ | ||
2 | .\" | ||
3 | .\" Copyright (c) 2017 Bob Beck <beck@openbsd.org> | ||
4 | .\" | ||
5 | .\" Permission to use, copy, modify, and distribute this software for any | ||
6 | .\" purpose with or without fee is hereby granted, provided that the above | ||
7 | .\" copyright notice and this permission notice appear in all copies. | ||
8 | .\" | ||
9 | .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
10 | .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
11 | .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
12 | .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
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 | ||
15 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
16 | .Dd $Mdocdate: February 20 2017 $ | ||
17 | .Dt ERR_ASPRINTF_ERROR_DATA 3 | ||
18 | .Os | ||
19 | .Sh NAME | ||
20 | .Nm ERR_asprintf_error_data | ||
21 | .Nd record a LibreSSL error using a formatted string. | ||
22 | .Sh SYNOPSIS | ||
23 | .In openssl/err.h | ||
24 | .Ft void | ||
25 | .Fo ERR_asprintf_error_data | ||
26 | .Fa "char * format" | ||
27 | .Fa ... | ||
28 | .Fc | ||
29 | .Sh DESCRIPTION | ||
30 | .Nm | ||
31 | builds a string using | ||
32 | .Xr asprintf 3 | ||
33 | called with the provided | ||
34 | .Ar format | ||
35 | and arguments. | ||
36 | The resulting string is then associated with the error code that was most | ||
37 | recently added. | ||
38 | If | ||
39 | .Xr asprintf 3 | ||
40 | fails, the string "malloc failed" is associated instead. | ||
41 | .Pp | ||
42 | .Nm | ||
43 | is intended to be used instead of the OpenSSL functions | ||
44 | .Xr ERR_add_error_data 3 | ||
45 | and | ||
46 | .Xr ERR_add_error_vdata 3 . | ||
47 | .Sh SEE ALSO | ||
48 | .Xr ERR 3 , | ||
49 | .Xr ERR_put_error 3 , | ||
50 | .Xr printf 3 | ||
51 | .Sh HISTORY | ||
52 | .Nm | ||
53 | appeared in | ||
54 | .Ox 5.6 | ||
55 | and is available in all versions of LibreSSL. | ||