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