debian/0000755000000000000000000000000012160665741007176 5ustar debian/rules0000755000000000000000000000035512160665675010267 0ustar #!/usr/bin/make -f %: dh $@ --with autoreconf override_dh_autoreconf: dh_autoreconf --as-needed override_dh_auto_configure: dh_auto_configure -- --enable-nss override_dh_auto_clean: dh_auto_clean rm -f $(CURDIR)/tests/atconfig debian/control0000644000000000000000000000256512160665675010617 0ustar Source: liboauth Priority: optional Maintainer: Bilal Akhtar Build-Depends: debhelper (>= 9), libcurl4-gnutls-dev | libcurl4-dev, libnss3-dev, libtool, locales-all | language-pack-en, pkg-config, dh-autoreconf Standards-Version: 3.9.4 Section: libs Homepage: http://liboauth.sourceforge.net/ Vcs-Git: git://anonscm.debian.org/collab-maint/liboauth.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/liboauth.git Package: liboauth-dev Section: libdevel Architecture: any Depends: liboauth0 (= ${binary:Version}), libcurl4-gnutls-dev | libcurl4-dev, libnss3-dev, ${misc:Depends} Description: C library for implementing OAuth 1.0 (development files) liboauth is a collection of C functions implementing the OAuth Core 1.0 standard API. liboauth provides basic functions to escape and encode parameters according to OAuth specs and offers high-level functions to sign requests or verify signatures. . This package contains the development files. Package: liboauth0 Architecture: any Pre-Depends: ${misc:Pre-Depends} Depends: ${misc:Depends}, ${shlibs:Depends} Multi-Arch: same Description: C library for implementing OAuth 1.0 liboauth is a collection of C functions implementing the OAuth Core 1.0 standard API. . This package contains the shared libraries. debian/gbp.conf0000644000000000000000000000005312160665675010621 0ustar [DEFAULT] sign-tags=True pristine-tar=True debian/source/0000755000000000000000000000000012160665675010504 5ustar debian/source/format0000644000000000000000000000001412160665675011712 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000671712160665675011071 0ustar liboauth (1.0.1-1) unstable; urgency=low * New upstream release. * Update Standards-Version to 3.9.4 (No changes needed) * Build with dh_autoreconf (Closes: #700686) - Thanks Daniel Schepler for the patch! - debian/patches/01_ltmain_as-needed.patch is obsolete now, dropped. * debian/control: - Add dh-autoreconf build-dep. - Bump debhelper versioned build-dep to 9 to match compat. - Properly truncate sentence at end of package description for English language compliance. - Update Git URLs * debian/patches/01_fix_manpage_spelling_errors.patch: Fix manpage spelling errors to satisfy lintian. -- Bilal Akhtar Wed, 19 Jun 2013 22:19:44 -0400 liboauth (0.9.4-3.1) unstable; urgency=low * Non-maintainer upload. * Fix "please make loose libcurl dependency": change liboauth-dev's Depends to "libcurl4-gnutls-dev | libcurl4-dev, libnss3-dev" (instead of "libcurl4-nss-dev") (Closes: #639565) * Fix "liboauth0: doesn't work with NSS libcurl flavour": build-depend on "libcurl4-gnutls-dev | libcurl4-dev" (instead of "libcurl4-nss-dev") (Closes: #650138) * Thanks to HAMANO Tsukasa and Alessandro Ghedini for accompanying me through this maze, and to Satoru KURASHIKI for additional tests. -- gregor herrmann Fri, 21 Sep 2012 14:19:45 +0200 liboauth (0.9.4-3) unstable; urgency=low * Sync from Ubuntu: [ Mathieu Trudel-Lapierre ] * debian/control: liboauth-dev really needs libcurl4-nss-dev, not libcurl4-gnutls-dev (nss is required in the .pc file) (closes: #646485, #639565) [ Sjoerd Simons ] * collab-main team update * debian/control: Swith build-depend to libcurl4-nss-dev from libcurl4-gnutls-dev. oauth itself uses nss for SSL -- Sjoerd Simons Sat, 05 Nov 2011 11:31:14 +0000 liboauth (0.9.4-2) unstable; urgency=low * Make package multiarch-aware. - Bump compat to 9. * debian/control: - Add libcurl4-gnutls-dev to liboauth-dev dependencies, thanks Mathieu! - Bump Standards-Version to 3.9.2 (no changes needed). * debian/patches/02_xmalloc_dont_exit.patch: Return NULL in case malloc fails. -- Bilal Akhtar Wed, 10 Aug 2011 14:51:38 +0300 liboauth (0.9.4-1) unstable; urgency=low * New upstream release. * Upload to unstable. * debian/copyright: Re-write in DEP-5 format. -- Bilal Akhtar Mon, 07 Feb 2011 13:06:37 +0300 liboauth (0.9.3-1) experimental; urgency=low * New upstream release. * debian/rules: - Remove the unnecessary change made to the LDFLAGS env var. * debian/watch: Change URL to that of the SF file hosting system which is now being used by upstream. -- Bilal Akhtar Tue, 25 Jan 2011 18:27:44 +0300 liboauth (0.9.1-2) experimental; urgency=low * debian/control: - Add Vcs-Git and Vcs-Browser fields. * debian/rules: - Install upstream changelog. * debian/patches/02_xmalloc_dont_exit.patch: Don't exit in case of a failure of memory allocation. This fixes a lintian X: tag, and doesn't cause any breakage. * debian/liboauth0.symbols: Add symbols control file. (Closes: #609963) * Run wrap-and-sort. -- Bilal Akhtar Fri, 14 Jan 2011 18:28:14 +0300 liboauth (0.9.1-1) unstable; urgency=low * Initial Release (Closes: #581601) -- Bilal Akhtar Thu, 21 Oct 2010 12:59:37 +0300 debian/liboauth-dev.install0000644000000000000000000000012712160665675013157 0ustar usr/include/* usr/lib/*/lib*.a usr/lib/*/lib*.so usr/lib/*/pkgconfig/* usr/share/man/* debian/compat0000644000000000000000000000000212160665675010402 0ustar 9 debian/patches/0000755000000000000000000000000012160665675010633 5ustar debian/patches/series0000644000000000000000000000010012160665675012037 0ustar 01_fix_manpage_spelling_errors.patch 02_xmalloc_dont_exit.patch debian/patches/02_xmalloc_dont_exit.patch0000644000000000000000000000073412160665675015675 0ustar Description: Don't exit in case of a failed memory allocation This patch modifies src/xmalloc.c to not exit in case of a failure of memory allocation. This fixes lintian X: tag shlib-calls-exit. Author: Bilal Akhtar --- a/src/xmalloc.c +++ b/src/xmalloc.c @@ -30,7 +30,7 @@ static void *xmalloc_fatal(size_t size) { if (size==0) return NULL; fprintf(stderr, "Out of memory."); - exit(1); + return NULL; } void *xmalloc (size_t size) { debian/patches/01_fix_manpage_spelling_errors.patch0000644000000000000000000000441412160665675017726 0ustar Description: Fix manpage sentence errors This patch fixes manpage sentence errors to make manpages more readable, better understandable, and lintian-compliant. Author: Bilal Akhtar --- a/doc/oauth.3 +++ b/doc/oauth.3 @@ -43,7 +43,7 @@ .ti -1c .RI "char * \fBoauth_sign_hmac_sha1_raw\fP (const char *m, const size_t ml, const char *k, const size_t kl)" .br -.RI "\fIsame as \fBoauth_sign_hmac_sha1\fP but allows to specify length of message and key (in case they contain null chars)\&. \fP" +.RI "\fIsame as \fBoauth_sign_hmac_sha1\fP but allows one to specify length of message and key (in case they contain null chars)\&. \fP" .ti -1c .RI "char * \fBoauth_sign_plaintext\fP (const char *m, const char *k)" .br @@ -426,7 +426,7 @@ .PP do a HTTP GET request, wait for it to finish and return the content of the reply\&. (requires libcurl) .PP -This is equivalent to /ref oauth_http_get but allows to specifiy a custom HTTP header and has has no support for commandline-curl\&. +This is equivalent to /ref oauth_http_get but allows one to specifiy a custom HTTP header and has has no support for commandline-curl\&. .PP If liboauth is compiled \fBwithout\fP libcurl this function always returns NULL\&. .PP @@ -801,7 +801,7 @@ .PP the back-end behind by /ref oauth_sign_array2\&. however it does not serialize the signed URL again\&. The user needs to call /ref oauth_serialize_url (oA) and /ref oauth_free_array to do so\&. .PP -This allows to split parts of the URL to be used for OAuth HTTP Authorization header: see http://oauth.net/core/1.0a/#consumer_req_param the oauthtest2 example code does so\&. +This allows one to split parts of the URL to be used for OAuth HTTP Authorization header: see http://oauth.net/core/1.0a/#consumer_req_param the oauthtest2 example code does so\&. .PP \fBParameters:\fP .RS 4 @@ -861,7 +861,7 @@ .SS "char* oauth_sign_hmac_sha1_raw (const char * m, const size_t ml, const char * k, const size_t kl)" .PP -same as \fBoauth_sign_hmac_sha1\fP but allows to specify length of message and key (in case they contain null chars)\&. \fBParameters:\fP +same as \fBoauth_sign_hmac_sha1\fP but allows one to specify length of message and key (in case they contain null chars)\&. \fBParameters:\fP .RS 4 \fIm\fP message to be signed .br debian/copyright0000644000000000000000000000271212160665675011141 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: liboauth Upstream-Contact: Robin Gareus Source: http://liboauth.sourceforge.net/ Files: * Copyright: 2007-2013 Robin Gareus License: MIT Files: debian/* Copyright: 2010-2013 Bilal Akhtar License: MIT License: MIT MIT License Copyright © 2007-2013 Robin Gareus . Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. debian/watch0000644000000000000000000000007012160665675010232 0ustar version=3 http://sf.net/liboauth/liboauth-(.+)\.tar\.gz debian/liboauth0.symbols0000644000000000000000000000342012160665675012504 0ustar liboauth.so.0 liboauth0 #MINVER# oauth_add_param_to_array@Base 0.9.1 oauth_add_protocol@Base 0.9.1 oauth_b64_decode@Base 0.9.1 oauth_b64_encode@Base 0.9.1 oauth_b64_is_base64@Base 0.9.1 oauth_body_hash_data@Base 0.9.1 oauth_body_hash_encode@Base 0.9.1 oauth_body_hash_file@Base 0.9.1 oauth_catenc@Base 0.9.1 oauth_cmpstringp@Base 0.9.1 oauth_curl_get@Base 0.9.1 oauth_curl_post@Base 0.9.1 oauth_curl_post_data@Base 0.9.1 oauth_curl_post_data_with_callback@Base 0.9.1 oauth_curl_post_file@Base 0.9.1 oauth_curl_send_data@Base 0.9.1 oauth_curl_send_data_with_callback@Base 0.9.1 oauth_decode_base64@Base 0.9.1 oauth_encode_base64@Base 0.9.1 oauth_free_array@Base 0.9.1 oauth_gen_nonce@Base 0.9.1 oauth_http_get2@Base 0.9.1 oauth_http_get@Base 0.9.1 oauth_http_post2@Base 0.9.1 oauth_http_post@Base 0.9.1 oauth_init_nss@Base 0.9.1 oauth_param_exists@Base 0.9.1 oauth_post_data@Base 0.9.1 oauth_post_data_with_callback@Base 0.9.1 oauth_post_file@Base 0.9.1 oauth_send_data@Base 0.9.1 oauth_serialize_url@Base 0.9.1 oauth_serialize_url_parameters@Base 0.9.1 oauth_serialize_url_sep@Base 0.9.1 oauth_sign_array2@Base 0.9.1 oauth_sign_array2_process@Base 0.9.1 oauth_sign_array@Base 0.9.1 oauth_sign_hmac_sha1@Base 0.9.1 oauth_sign_hmac_sha1_raw@Base 0.9.1 oauth_sign_plaintext@Base 0.9.1 oauth_sign_rsa_sha1@Base 0.9.1 oauth_sign_url2@Base 0.9.1 oauth_sign_url@Base 0.9.1 oauth_sign_xmpp@Base 0.9.1 oauth_split_post_paramters@Base 0.9.1 oauth_split_url_parameters@Base 0.9.1 oauth_strip_pkcs@Base 0.9.1 oauth_time_independent_equals@Base 0.9.1 oauth_time_independent_equals_n@Base 0.9.1 oauth_time_indepenent_equals@Base 0.9.1 oauth_time_indepenent_equals_n@Base 0.9.1 oauth_url_escape@Base 0.9.1 oauth_url_unescape@Base 0.9.1 oauth_verify_rsa_sha1@Base 0.9.1 debian/liboauth0.install0000644000000000000000000000002412160665675012457 0ustar usr/lib/*/lib*.so.* debian/liboauth-dev.examples0000644000000000000000000000004712160665675013330 0ustar tests/oauthexample.c tests/oauthtest.c