summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschwarze <>2016-11-23 17:55:31 +0000
committerschwarze <>2016-11-23 17:55:31 +0000
commit82f66823901572292eaf8a10086407381d67d863 (patch)
tree25d29571045990ce6c2f9100f7f18356c205cded
parente8e5f59d71b35259c933157f7919776b1de45d0f (diff)
downloadopenbsd-82f66823901572292eaf8a10086407381d67d863.tar.gz
openbsd-82f66823901572292eaf8a10086407381d67d863.tar.bz2
openbsd-82f66823901572292eaf8a10086407381d67d863.zip
Add Copyright and license.
Merge a correction and a clarification from OpenSSL.
-rw-r--r--src/lib/libcrypto/man/ERR_error_string.359
1 files changed, 56 insertions, 3 deletions
diff --git a/src/lib/libcrypto/man/ERR_error_string.3 b/src/lib/libcrypto/man/ERR_error_string.3
index 13b37ea71a..48f323025e 100644
--- a/src/lib/libcrypto/man/ERR_error_string.3
+++ b/src/lib/libcrypto/man/ERR_error_string.3
@@ -1,6 +1,54 @@
1.\" $OpenBSD: ERR_error_string.3,v 1.3 2016/11/17 21:06:16 jmc Exp $ 1.\" $OpenBSD: ERR_error_string.3,v 1.4 2016/11/23 17:55:31 schwarze Exp $
2.\" OpenSSL b97fdb57 Nov 11 09:33:09 2016 +0100
2.\" 3.\"
3.Dd $Mdocdate: November 17 2016 $ 4.\" This file was written by Ulf Moeller <ulf@openssl.org>.
5.\" Copyright (c) 2000, 2004 The OpenSSL Project. All rights reserved.
6.\"
7.\" Redistribution and use in source and binary forms, with or without
8.\" modification, are permitted provided that the following conditions
9.\" are met:
10.\"
11.\" 1. Redistributions of source code must retain the above copyright
12.\" notice, this list of conditions and the following disclaimer.
13.\"
14.\" 2. Redistributions in binary form must reproduce the above copyright
15.\" notice, this list of conditions and the following disclaimer in
16.\" the documentation and/or other materials provided with the
17.\" distribution.
18.\"
19.\" 3. All advertising materials mentioning features or use of this
20.\" software must display the following acknowledgment:
21.\" "This product includes software developed by the OpenSSL Project
22.\" for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
23.\"
24.\" 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
25.\" endorse or promote products derived from this software without
26.\" prior written permission. For written permission, please contact
27.\" openssl-core@openssl.org.
28.\"
29.\" 5. Products derived from this software may not be called "OpenSSL"
30.\" nor may "OpenSSL" appear in their names without prior written
31.\" permission of the OpenSSL Project.
32.\"
33.\" 6. Redistributions of any form whatsoever must retain the following
34.\" acknowledgment:
35.\" "This product includes software developed by the OpenSSL Project
36.\" for use in the OpenSSL Toolkit (http://www.openssl.org/)"
37.\"
38.\" THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
39.\" EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
40.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
41.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
42.\" ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
43.\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
44.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
45.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
46.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
47.\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
48.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
49.\" OF THE POSSIBILITY OF SUCH DAMAGE.
50.\"
51.Dd $Mdocdate: November 23 2016 $
4.Dt ERR_ERROR_STRING 3 52.Dt ERR_ERROR_STRING 3
5.Os 53.Os
6.Sh NAME 54.Sh NAME
@@ -42,12 +90,17 @@ generates a human-readable string representing the error code
42and places it in 90and places it in
43.Fa buf . 91.Fa buf .
44.Fa buf 92.Fa buf
45must be at least 120 bytes long. 93must be at least 256 bytes long.
46If 94If
47.Fa buf 95.Fa buf
48is 96is
49.Dv NULL , 97.Dv NULL ,
50the error string is placed in a static buffer. 98the error string is placed in a static buffer.
99Note that this function is not thread-safe and does no checks on
100the size of the buffer; use
101.Fn ERR_error_string_n
102instead.
103.Pp
51.Fn ERR_error_string_n 104.Fn ERR_error_string_n
52is a variant of 105is a variant of
53.Fn ERR_error_string 106.Fn ERR_error_string