[7152faa] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[c727d7e7] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
| 8 | <sect1 id="ch-system-libxcrypt" role="wrap">
|
---|
| 9 | <?dbhtml filename="libxcrypt.html"?>
|
---|
| 10 |
|
---|
| 11 | <sect1info condition="script">
|
---|
| 12 | <productname>libxcrypt</productname>
|
---|
| 13 | <productnumber>&libxcrypt-version;</productnumber>
|
---|
| 14 | <address>&libxcrypt-url;</address>
|
---|
| 15 | </sect1info>
|
---|
| 16 |
|
---|
| 17 | <title>Libxcrypt-&libxcrypt-version;</title>
|
---|
| 18 |
|
---|
| 19 | <indexterm zone="ch-system-libxcrypt">
|
---|
| 20 | <primary sortas="a-Libxcrypt">Libxcrypt</primary>
|
---|
| 21 | </indexterm>
|
---|
| 22 |
|
---|
| 23 | <sect2 role="package">
|
---|
| 24 | <title/>
|
---|
| 25 |
|
---|
| 26 | <para>The Libxcrypt package contains a modern library for one-way
|
---|
| 27 | hashing of passwords.</para>
|
---|
| 28 |
|
---|
| 29 | <segmentedlist>
|
---|
| 30 | <segtitle>&buildtime;</segtitle>
|
---|
| 31 | <segtitle>&diskspace;</segtitle>
|
---|
| 32 |
|
---|
| 33 | <seglistitem>
|
---|
| 34 | <seg>&libxcrypt-fin-sbu;</seg>
|
---|
| 35 | <seg>&libxcrypt-fin-du;</seg>
|
---|
| 36 | </seglistitem>
|
---|
| 37 | </segmentedlist>
|
---|
| 38 |
|
---|
| 39 | </sect2>
|
---|
| 40 |
|
---|
| 41 | <sect2 role="installation">
|
---|
| 42 | <title>Installation of Libxcrypt</title>
|
---|
| 43 |
|
---|
| 44 | <para>Prepare Libxcrypt for compilation:</para>
|
---|
| 45 |
|
---|
| 46 | <screen><userinput remap="configure">./configure --prefix=/usr \
|
---|
| 47 | --enable-hashes=strong,glibc \
|
---|
| 48 | --enable-obsolete-api=no \
|
---|
| 49 | --disable-static \
|
---|
| 50 | --disable-failure-tokens</userinput></screen>
|
---|
| 51 |
|
---|
| 52 | <variablelist>
|
---|
| 53 | <title>The meaning of the new configure options:</title>
|
---|
| 54 |
|
---|
| 55 | <varlistentry>
|
---|
| 56 | <term><parameter>--enable-hashes=strong,glibc</parameter></term>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>Build strong hash algorithms recommended for security use
|
---|
| 59 | cases, and the hash algorithms provided by traditional Glibc
|
---|
| 60 | <systemitem class='library'>libcrypt</systemitem> for
|
---|
| 61 | compatibility.</para>
|
---|
| 62 | </listitem>
|
---|
| 63 | </varlistentry>
|
---|
| 64 |
|
---|
| 65 | <varlistentry>
|
---|
| 66 | <term><parameter>--enable-obsolete-api=no</parameter></term>
|
---|
| 67 | <listitem>
|
---|
| 68 | <para>Disable obsolete API functions. They are not needed for
|
---|
| 69 | a modern Linux system built from source.</para>
|
---|
| 70 | </listitem>
|
---|
| 71 | </varlistentry>
|
---|
| 72 |
|
---|
| 73 | <varlistentry>
|
---|
| 74 | <term><parameter>--disable-failure-tokens</parameter></term>
|
---|
| 75 | <listitem>
|
---|
| 76 | <para>Disable failure token feature. It's needed for
|
---|
| 77 | compatibility with the traditional hash libraries of some
|
---|
| 78 | platforms, but a Linux system based on Glibc does not need
|
---|
| 79 | it.</para>
|
---|
| 80 | </listitem>
|
---|
| 81 | </varlistentry>
|
---|
| 82 | </variablelist>
|
---|
| 83 |
|
---|
| 84 | <para>Compile the package:</para>
|
---|
| 85 |
|
---|
| 86 | <screen><userinput remap="make">make</userinput></screen>
|
---|
| 87 |
|
---|
| 88 | <para>To test the results, issue:</para>
|
---|
| 89 |
|
---|
| 90 | <screen><userinput remap="test">make check</userinput></screen>
|
---|
| 91 |
|
---|
| 92 | <para>Install the package:</para>
|
---|
| 93 |
|
---|
| 94 | <screen><userinput remap="install">make install</userinput></screen>
|
---|
| 95 |
|
---|
| 96 | <note>
|
---|
| 97 |
|
---|
| 98 | <para>The instructions above disabled obsolete API functions since
|
---|
| 99 | no package installed by compiling from sources would link against
|
---|
| 100 | them at runtime. However, the only known binary-only applications
|
---|
| 101 | that link against these functions require ABI version 1. If you must
|
---|
[f4313a7] | 102 | have such functions because of some binary-only application or to be
|
---|
[b55a1a2] | 103 | compliant with LSB, build the package again with the following
|
---|
[c727d7e7] | 104 | commands:</para>
|
---|
| 105 |
|
---|
[b55a1a2] | 106 | <screen role="nodump"><userinput>make distclean
|
---|
[c727d7e7] | 107 | ./configure --prefix=/usr \
|
---|
| 108 | --enable-hashes=strong,glibc \
|
---|
| 109 | --enable-obsolete-api=glibc \
|
---|
| 110 | --disable-static \
|
---|
| 111 | --disable-failure-tokens
|
---|
| 112 | make
|
---|
[4aa6831f] | 113 | cp -av --remove-destination .libs/libcrypt.so.1* /usr/lib</userinput></screen>
|
---|
[c727d7e7] | 114 | </note>
|
---|
| 115 |
|
---|
| 116 | </sect2>
|
---|
| 117 |
|
---|
| 118 | <sect2 id="contents-libxcrypt" role="content">
|
---|
| 119 | <title>Contents of Libxcrypt</title>
|
---|
| 120 |
|
---|
| 121 | <segmentedlist>
|
---|
| 122 | <segtitle>Installed libraries</segtitle>
|
---|
| 123 |
|
---|
| 124 | <seglistitem>
|
---|
| 125 | <seg>libcrypt.so</seg>
|
---|
| 126 | </seglistitem>
|
---|
| 127 | </segmentedlist>
|
---|
| 128 |
|
---|
| 129 | <variablelist>
|
---|
| 130 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 131 | <?dbfo list-presentation="list"?>
|
---|
| 132 | <?dbhtml list-presentation="table"?>
|
---|
| 133 |
|
---|
| 134 | <varlistentry id="libcrypt">
|
---|
| 135 | <term><filename class="libraryfile">libcrypt</filename></term>
|
---|
| 136 | <listitem>
|
---|
| 137 | <para>Contains functions to hash passwords</para>
|
---|
| 138 | <indexterm zone="ch-system-libxcrypt libcrypt">
|
---|
| 139 | <primary sortas="c-libcrypt">libcrypt</primary>
|
---|
| 140 | </indexterm>
|
---|
| 141 | </listitem>
|
---|
| 142 | </varlistentry>
|
---|
| 143 |
|
---|
| 144 | </variablelist>
|
---|
| 145 |
|
---|
| 146 | </sect2>
|
---|
| 147 |
|
---|
| 148 | </sect1>
|
---|