summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmc <jmc@openbsd.org>2003-12-21 15:00:41 +0000
committerjmc <jmc@openbsd.org>2003-12-21 15:00:41 +0000
commitba23fa8df497f189633d470230e4ad9c0f626f3d (patch)
tree876a7a3b8e555104731a67ffaa6b35ff59252395
parentuse CIRCLEQ* for pcb's; ok deraadt, henning, mcbride, with help from canacar (diff)
downloadwireguard-openbsd-ba23fa8df497f189633d470230e4ad9c0f626f3d.tar.xz
wireguard-openbsd-ba23fa8df497f189633d470230e4ad9c0f626f3d.zip
document (lightly) openssl errstr;
feedback from markus@
-rw-r--r--usr.sbin/openssl/openssl.131
1 files changed, 29 insertions, 2 deletions
diff --git a/usr.sbin/openssl/openssl.1 b/usr.sbin/openssl/openssl.1
index 9da8f52fce6..2849c4ec22b 100644
--- a/usr.sbin/openssl/openssl.1
+++ b/usr.sbin/openssl/openssl.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: openssl.1,v 1.26 2003/12/19 14:52:15 jmc Exp $
+.\" $OpenBSD: openssl.1,v 1.27 2003/12/21 15:00:41 jmc Exp $
.\" ====================================================================
.\" Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved.
.\"
@@ -2738,9 +2738,35 @@ or RC4 with an 84-bit key with this program.
.\" ERRSTR
.\"
.Sh ERRSTR
+.Nm openssl errstr
+.Op Fl stats
+.Ar errno ...
+.Pp
The
.Nm errstr
-utility is currently undocumented.
+command performs error number to error string conversion,
+generating a human-readable string representing the error code
+.Ar errno .
+The string is obtained through the
+.Xr ERR_error_string_n 3
+function and has the following format:
+.Pp
+.Dl error:[error code]:[library name]:[function name]:[reason string]
+.Pp
+.Bq error code
+is an 8-digit hexadecimal number.
+The remaining fields
+.Bq library name ,
+.Bq function name ,
+and
+.Bq reason string
+are all ASCII text.
+.Pp
+The options are as follows:
+.Bl -tag -width "-stats"
+.It Fl stats
+Print debugging statistics about various aspects of the hash table.
+.El
.\"
.\" GENDH
.\"
@@ -8110,6 +8136,7 @@ certificates.
.Xr crypto 3 ,
.Xr des_crypt 3 ,
.Xr dsa 3 ,
+.Xr ERR_error_string_n 3 ,
.Xr HMAC 3 ,
.Xr md4 3 ,
.Xr md5 3 ,