debian/0000755000000000000000000000000011735631202007166 5ustar debian/rules0000755000000000000000000000003611735631202010245 0ustar #!/usr/bin/make -f %: dh $@ debian/control0000644000000000000000000000242711735631202010576 0ustar Source: libauthen-oath-perl Section: perl Priority: optional Maintainer: Debian Perl Group Uploaders: gregor herrmann Build-Depends: debhelper (>= 8), perl (>= 5.11.3) | libmodule-build-perl (>= 0.360000) Build-Depends-Indep: libdigest-hmac-perl, libmoose-perl, libtest-pod-perl, libtest-pod-coverage-perl, perl Standards-Version: 3.9.3 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-perl/packages/libauthen-oath-perl.git Vcs-Git: git://git.debian.org/pkg-perl/packages/libauthen-oath-perl.git Homepage: http://search.cpan.org/dist/Authen-OATH/ Package: libauthen-oath-perl Architecture: all Depends: ${misc:Depends}, ${perl:Depends}, libdigest-hmac-perl, libmoose-perl, Description: Perl module for OATH One Time Passwords Authen::OATH is an implementation of the HOTP and TOTP One Time Password algorithms as defined by OATH (http://www.openautentication.org). . All necessary parameters are set by default, though these can be overridden. Both totp() and htop() have passed all of the test vectors defined in the RFC documents for TOTP and HOTP. . totp() and hotp() both default to returning 6 digits and using SHA. As such, both can be called by passing only the secret key and a valid OTP will be returned. debian/source/0000755000000000000000000000000011735631202010466 5ustar debian/source/format0000644000000000000000000000001411735631202011674 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000024611735631202011042 0ustar libauthen-oath-perl (1.0.0-1) unstable; urgency=low * Initial release (closes: #666421). -- gregor herrmann Sat, 31 Mar 2012 18:36:13 +0200 debian/compat0000644000000000000000000000000211735631202010364 0ustar 8 debian/patches/0000755000000000000000000000000011735631202010615 5ustar debian/patches/digest_sha.patch0000644000000000000000000000356211735631202013756 0ustar Description: use Digest::SHA (in perl core) instead of Digest::SHA1 Origin: vendor Bug: https://rt.cpan.org/Ticket/Display.html?id=76188 Forwarded: https://rt.cpan.org/Ticket/Display.html?id=76188 Author: gregor herrmann Last-Update: 2012-03-31 --- a/Build.PL +++ b/Build.PL @@ -25,7 +25,7 @@ 'Moose' => 0, 'Math::BigInt' => 0, 'Digest::HMAC' => 0, - 'Digest::SHA1' => 0, + 'Digest::SHA' => 0, }, add_to_cleanup => [ 'Authen-OATH-*' ], create_makefile_pl => 'traditional', --- a/META.yml +++ b/META.yml @@ -4,7 +4,7 @@ - 'Kurt Kincaid ' build_requires: Digest::HMAC: 0 - Digest::SHA1: 0 + Digest::SHA: 0 Math::BigInt: 0 Moose: 0 Test::More: 0 --- a/Makefile.PL +++ b/Makefile.PL @@ -6,7 +6,7 @@ 'VERSION_FROM' => 'lib/Authen/OATH.pm', 'PREREQ_PM' => { 'Digest::HMAC' => 0, - 'Digest::SHA1' => 0, + 'Digest::SHA' => 0, 'Math::BigInt' => 0, 'Moose' => 0, 'Test::More' => 0, --- a/lib/Authen/OATH.pm +++ b/lib/Authen/OATH.pm @@ -26,7 +26,7 @@ has 'digest' => ( 'is' => 'rw', 'isa' => 'Str', - 'default' => 'Digest::SHA1' + 'default' => 'Digest::SHA' ); has 'timestep' => ( --- a/t/01-cases.t +++ b/t/01-cases.t @@ -12,7 +12,7 @@ ok( defined $oath, "successfully created new object" ); ok( $oath->isa( 'Authen::OATH' ), "correct class." ); ok( $oath->{ 'digits' } == 6, "default digits set to 6" ); -ok( $oath->{ 'digest' } eq 'Digest::SHA1', "default digest set to Digest::SHA1" ); +ok( $oath->{ 'digest' } eq 'Digest::SHA', "default digest set to Digest::SHA" ); ok( $oath->{ 'timestep' } == 30, "default timestep set to 30" ); print "Checking test vectors for totp()...\n"; debian/patches/series0000644000000000000000000000002111735631202012023 0ustar digest_sha.patch debian/copyright0000644000000000000000000000204611735631202011123 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Authen-OATH Source: http://search.cpan.org/dist/Authen-OATH/ Upstream-Contact: Kurt Kincaid Files: * Copyright: 2010, Kurt Kincaid License: Artistic or GPL-1+ Files: debian/* Copyright: 2012, gregor herrmann License: Artistic or GPL-1+ License: Artistic This program is free software; you can redistribute it and/or modify it under the terms of the Artistic License, which comes with Perl. . On Debian systems, the complete text of the Artistic License can be found in `/usr/share/common-licenses/Artistic'. License: GPL-1+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version. . On Debian systems, the complete text of version 1 of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-1'. debian/watch0000644000000000000000000000016311735631202010217 0ustar version=3 http://search.cpan.org/dist/Authen-OATH/ .*/Authen-OATH-v?(\d[\d.-]*)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$