[f1ce80b] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 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 |
|
---|
[8dfc5c3] | 7 | <!ENTITY liboauth-download-http "&sourceforge-dl;/liboauth/liboauth-&liboauth-version;.tar.gz">
|
---|
[f1ce80b] | 8 | <!ENTITY liboauth-download-ftp " ">
|
---|
| 9 | <!ENTITY liboauth-md5sum "689b46c2b3ab1a39735ac33f714c4f7f">
|
---|
| 10 | <!ENTITY liboauth-size "496 KB">
|
---|
| 11 | <!ENTITY liboauth-buildsize "3.5 MB">
|
---|
| 12 | <!ENTITY liboauth-time "less than 0.1 SBU">
|
---|
| 13 | ]>
|
---|
| 14 |
|
---|
[e130fead] | 15 | <sect1 id="liboauth" xreflabel="liboauth-&liboauth-version;">
|
---|
[f1ce80b] | 16 | <?dbhtml filename="liboauth.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>liboauth-&liboauth-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="liboauth">
|
---|
| 26 | <primary sortas="a-liboauth">liboauth</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to liboauth</title>
|
---|
| 31 |
|
---|
| 32 | <para>
|
---|
| 33 | <application>liboauth</application> is a collection of POSIX-C functions
|
---|
| 34 | implementing the OAuth Core RFC 5849 standard. Liboauth provides functions
|
---|
| 35 | to escape and encode parameters according to OAuth specification and
|
---|
| 36 | offers high-level functionality to sign requests or verify OAuth signatures
|
---|
| 37 | as well as perform HTTP requests.
|
---|
| 38 | </para>
|
---|
| 39 |
|
---|
[b9d5573a] | 40 | &lfs10_checked;
|
---|
[f1ce80b] | 41 |
|
---|
| 42 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 43 | <itemizedlist spacing="compact">
|
---|
| 44 | <listitem>
|
---|
| 45 | <para>
|
---|
| 46 | Download (HTTP): <ulink url="&liboauth-download-http;"/>
|
---|
| 47 | </para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>
|
---|
| 51 | Download (FTP): <ulink url="&liboauth-download-ftp;"/>
|
---|
| 52 | </para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>
|
---|
| 56 | Download MD5 sum: &liboauth-md5sum;
|
---|
| 57 | </para>
|
---|
| 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
| 60 | <para>
|
---|
| 61 | Download size: &liboauth-size;
|
---|
| 62 | </para>
|
---|
| 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
| 65 | <para>
|
---|
| 66 | Estimated disk space required: &liboauth-buildsize;
|
---|
| 67 | </para>
|
---|
| 68 | </listitem>
|
---|
| 69 | <listitem>
|
---|
| 70 | <para>
|
---|
| 71 | Estimated build time: &liboauth-time;
|
---|
| 72 | </para>
|
---|
| 73 | </listitem>
|
---|
| 74 | </itemizedlist>
|
---|
| 75 |
|
---|
[361352f] | 76 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
[a4f37269] | 77 | <itemizedlist spacing="compact">
|
---|
| 78 | <listitem>
|
---|
[47274444] | 79 | <para>
|
---|
| 80 | Required patch for use with openssl: <ulink url=
|
---|
| 81 | "&patch-root;/liboauth-&liboauth-version;-openssl-1.1.0-3.patch"/>
|
---|
[a4f37269] | 82 | </para>
|
---|
| 83 | </listitem>
|
---|
| 84 | </itemizedlist>
|
---|
| 85 |
|
---|
[f1ce80b] | 86 | <bridgehead renderas="sect3">liboauth Dependencies</bridgehead>
|
---|
| 87 |
|
---|
| 88 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 89 | <para role="required">
|
---|
[94b42903] | 90 | <xref linkend="curl"/>
|
---|
[f1ce80b] | 91 | </para>
|
---|
| 92 |
|
---|
| 93 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 94 | <para role="optional">
|
---|
[94b42903] | 95 | <xref linkend="nss"/> and
|
---|
[f1ce80b] | 96 | <xref linkend="doxygen"/> (to build documentation)
|
---|
| 97 | </para>
|
---|
| 98 |
|
---|
| 99 | <para condition="html" role="usernotes">User Notes:
|
---|
| 100 | <ulink url="&blfs-wiki;/liboauth"/>
|
---|
| 101 | </para>
|
---|
| 102 | </sect2>
|
---|
| 103 |
|
---|
| 104 | <sect2 role="installation">
|
---|
| 105 | <title>Installation of liboauth</title>
|
---|
| 106 |
|
---|
[a4f37269] | 107 | <para>
|
---|
[94b42903] | 108 | Apply a patch for the current version of openssl:
|
---|
[a4f37269] | 109 | </para>
|
---|
| 110 |
|
---|
[e130fead] | 111 | <screen><userinput>patch -Np1 -i ../liboauth-&liboauth-version;-openssl-1.1.0-3.patch</userinput></screen>
|
---|
[a4f37269] | 112 |
|
---|
[f1ce80b] | 113 | <para>
|
---|
| 114 | Install <application>liboauth</application> by running the following
|
---|
| 115 | commands:
|
---|
| 116 | </para>
|
---|
| 117 |
|
---|
| 118 | <screen><userinput>./configure --prefix=/usr --disable-static &&
|
---|
| 119 | make</userinput></screen>
|
---|
| 120 |
|
---|
| 121 | <para>
|
---|
[a42c273] | 122 | If you wish to build the documentation (needs <xref linkend="doxygen"/>),
|
---|
| 123 | issue:
|
---|
[f1ce80b] | 124 | </para>
|
---|
| 125 |
|
---|
[a42c273] | 126 | <screen remap="doc"><userinput>make dox</userinput></screen>
|
---|
| 127 |
|
---|
[f1ce80b] | 128 | <para>
|
---|
[e130fead] | 129 | To test the results, issue: <command>make check</command>.
|
---|
[f1ce80b] | 130 | </para>
|
---|
| 131 |
|
---|
| 132 | <para>
|
---|
| 133 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 134 | </para>
|
---|
| 135 |
|
---|
| 136 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 137 |
|
---|
| 138 | <para>
|
---|
| 139 | If you have previously built the documentation, install it by
|
---|
| 140 | running the following commands as the
|
---|
| 141 | <systemitem class="username">root</systemitem> user:
|
---|
| 142 | </para>
|
---|
| 143 |
|
---|
[a42c273] | 144 | <screen role="root"
|
---|
| 145 | remap="doc"><userinput>install -v -dm755 /usr/share/doc/liboauth-&liboauth-version; &&
|
---|
[f1ce80b] | 146 | cp -rv doc/html/* /usr/share/doc/liboauth-&liboauth-version;</userinput></screen>
|
---|
| 147 |
|
---|
| 148 | </sect2>
|
---|
| 149 |
|
---|
| 150 | <sect2 role="commands">
|
---|
| 151 | <title>Command Explanations</title>
|
---|
| 152 |
|
---|
| 153 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 154 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 155 |
|
---|
| 156 | <para>
|
---|
| 157 | <option>--enable-nss</option>: Use this switch if you want to
|
---|
| 158 | use Mozilla NSS instead of <application>OpenSSL</application>.
|
---|
| 159 | </para>
|
---|
| 160 |
|
---|
| 161 | </sect2>
|
---|
| 162 |
|
---|
| 163 | <sect2 role="content">
|
---|
| 164 | <title>Contents</title>
|
---|
| 165 |
|
---|
| 166 | <segmentedlist>
|
---|
| 167 | <segtitle>Installed Programs</segtitle>
|
---|
| 168 | <segtitle>Installed Libraries</segtitle>
|
---|
| 169 | <segtitle>Installed Directories</segtitle>
|
---|
| 170 |
|
---|
| 171 | <seglistitem>
|
---|
| 172 | <seg>
|
---|
| 173 | None
|
---|
| 174 | </seg>
|
---|
| 175 | <seg>
|
---|
| 176 | liboauth.so
|
---|
| 177 | </seg>
|
---|
| 178 | <seg>
|
---|
| 179 | /usr/share/doc/liboauth-&liboauth-version;
|
---|
| 180 | </seg>
|
---|
| 181 | </seglistitem>
|
---|
| 182 | </segmentedlist>
|
---|
| 183 |
|
---|
| 184 | <variablelist>
|
---|
| 185 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 186 | <?dbfo list-presentation="list"?>
|
---|
| 187 | <?dbhtml list-presentation="table"?>
|
---|
| 188 |
|
---|
| 189 | <varlistentry id="liboauth-lib">
|
---|
| 190 | <term><filename class="libraryfile">liboauth.so</filename></term>
|
---|
| 191 | <listitem>
|
---|
| 192 | <para>
|
---|
| 193 | provides functions to escape and encode stings according to
|
---|
| 194 | OAuth specifications and offers high-level functionality built
|
---|
| 195 | on top to sign requests or verify signatures using either NSS or
|
---|
| 196 | OpenSSL for calculating the hash/signatures.
|
---|
| 197 | </para>
|
---|
| 198 | <indexterm zone="liboauth liboauth-lib">
|
---|
| 199 | <primary sortas="c-liboauth">liboauth.so</primary>
|
---|
| 200 | </indexterm>
|
---|
| 201 | </listitem>
|
---|
| 202 | </varlistentry>
|
---|
| 203 |
|
---|
| 204 | </variablelist>
|
---|
| 205 |
|
---|
| 206 | </sect2>
|
---|
| 207 |
|
---|
| 208 | </sect1>
|
---|