crypt.3: Tweaks to Carlos O'Donell's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2018-04-13 11:30:39 +02:00
parent b2ca119e1a
commit 8291a17bd6
1 changed files with 15 additions and 10 deletions

View File

@ -191,23 +191,28 @@ is a GNU extension.
.SS Availability in glibc
The
.BR crypt (),
.BR encrypt (),
.BR encrypt (3),
and
.BR setkey ()
.BR setkey (3)
functions are part of the POSIX.1-2008 XSI Options Group for Encryption
and are optional.
If the interfaces are not available then the symbolic constant
If the interfaces are not available, then the symbolic constant
.BR _XOPEN_CRYPT
is either not defined or defined to -1, and can be checked at runtime with
.BR sysconf ().
is either not defined,
or it is defined to \-1 and availability can be checked at runtime with
.BR sysconf (3).
This may be the case if the downstream distribution has switched from glibc
crypt to libxcrypt.
When recompiling applications in such distributions the
user must detect if
crypt to
.IR libxcrypt .
When recompiling applications in such distributions,
the programmer must detect if
.BR _XOPEN_CRPYT
is not available and include crypt.h for the function prototypes;
is not available and include
.I <crypt.h>
for the function prototypes;
otherwise
libxcrypt is a ABI compatible drop-in replacement.
.I libxcrypt
is an ABI-compatible drop-in replacement.
.SS Features in glibc
The glibc version of this function supports additional
encryption algorithms.