aboutsummaryrefslogtreecommitdiff
path: root/lib/libmd/sha.3
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libmd/sha.3')
-rw-r--r--lib/libmd/sha.322
1 files changed, 21 insertions, 1 deletions
diff --git a/lib/libmd/sha.3 b/lib/libmd/sha.3
index 90cc93662429..a556c82145c6 100644
--- a/lib/libmd/sha.3
+++ b/lib/libmd/sha.3
@@ -9,7 +9,7 @@
.\" From: Id: mdX.3,v 1.14 1999/02/11 20:31:49 wollman Exp
.\" $FreeBSD$
.\"
-.Dd July 20, 2018
+.Dd May 21, 2019
.Dt SHA 3
.Os
.Sh NAME
@@ -155,6 +155,26 @@ after use.
If the
.Fa buf
argument is non-null it must point to at least 41 characters of buffer space.
+.Sh ERRORS
+The
+.Fn SHA1_End
+function called with a null buf argument may fail and return NULL if:
+.Bl -tag -width Er
+.It Bq Er ENOMEM
+Insufficient storage space is available.
+.El
+.Pp
+The
+.Fn SHA1_File
+and
+.Fn SHA1_FileChunk
+may return NULL when underlying
+.Xr open 2 ,
+.Xr fstat 2 ,
+.Xr lseek 2 ,
+or
+.Xr SHA1_End 2
+fail.
.Sh SEE ALSO
.Xr md4 3 ,
.Xr md5 3 ,