Skip to contentSkip to conversation

crypt.3: Describe additional errno values

PATCH New Andreas Johansson 1 participant 1 message Sep 30, 2013 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crypt.3: Describe additional errno values

Glibc 2.17 introduced two additional errno values that can be set by crypt() and crypt_r(), EINVAL and EPERM.

---
 man3/crypt.3 | 7 +++++++
 1 file changed, 7 insertions(+)
man3/crypt.3 +7 -0
index c3bad3e..8035d7c 100644
@@ -122,10 +122,17 @@ On success, a pointer to the encrypted password is returned.
 On error, NULL is returned.
 .SH ERRORS
 .TP
+.B EINVAL
+The string used for the salt is not valid for the encryption method.
+.TP
 .B ENOSYS
 The
 .BR crypt ()
 function was not implemented, probably because of U.S.A. export restrictions.
+.TP
+.B EPERM
+The encryption algorithm specified is not allowed by the FIPS
+standard.
 .\" This level of detail is not necessary in this man page. . .
 .\" .PP
 .\" When encrypting a plain text P using DES with the key K results in the
Signature · 6 lines
1.8.4.rc3

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html