;;; Copyright © 2016 Rene Saavedra (define-module (gnu packages liboauth) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix build-system gnu) #:use-module (guix download) #:use-module (guix packages) #:use-module (guix utils) #:use-module (gnu packages pkg-config) #:use-module (gnu packages tls)) (define-public liboauth (package (name "liboauth") (version "1.0.3") (source (origin (method url-fetch) (uri (string-append "mirror://sourceforge/liboauth/" name "-" version ".tar.gz")) (sha256 (base32 "07w1aq8y8wld43wmbk2q8134p3bfkp2vma78mmsfgw2jn1bh3xhd")))) (build-system gnu-build-system) (native-inputs `(("pkg-config" ,pkg-config))) (inputs `(("openssl" ,openssl))) (home-page "https://sourceforge.net/projects/liboauth") (synopsis "Collection of s/POSIX-C/C/ functions implementing the OAuth API") (description "Liboauth provides functions to escape and encode strings according to OAuth specifications and offers high-level functionality built on top to sign requests or verify signatures using either NSS or OpenSSL for calculating the hash/signatures.") (license (list license:gpl2+ license:openssl)))) ; OpenSSL library.