DUPUIS Arnaud > slackget10 > slackget10::GPG

Download:
slackget10-0.12c.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 0.1   Source  

NOM ^

slackget10::GPG - A simple class to verify files signatures with gpg

VERSION ^

Version 0.1

SYNOPSIS ^

A simple class to verify files signatures with gpg.

    use slackget10::GPG;

    my $slackget10_gpg_object = slackget10::GPG->new();

CONSTRUCTOR ^

new() : The constructor take the followings arguments :

        -gpg_binary : where we can find a valid gpg binary (default: /usr/bin/gpg)

METHODS ^

verify_file

take a file and a signature as parameter and verify the signature of the file. Return a slackget10::GPG::Signature object. If the status is UNKNOW, the warnings() accessor may return some interesting data.

        my $sig = $gpg->verify("/usr/local/slack-get-1.0.0-alpha1/update/signature-cache/gcc-g++-3.3.4-i486-1.tgz","/usr/local/slack-get-1.0.0-alpha1/update/package-cache/gcc-g++-3.3.4-i486-1.tgz.asc");
        die "Signature doesn't match.\n" if(!$sig->is_good) ;

import_signature

Import a signature file passed in parameter.

        $gpg->import_signature('update/GPG-KEY') or die "unable to import official Slackware GnuPG key.\n";

!! THIS METHOD IS NOT YET IMPLEMENTED !!

ACCESSORS ^

gpg_binary

Get/set the path to the gpg binary.

        die "Cannot find gpg : $!\n" unless( -e $gpg->gpg_binary());

AUTHOR ^

DUPUIS Arnaud, <a.dupuis@infinityperl.org>

BUGS ^

Please report any bugs or feature requests to bug-slackget10@rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=slackget10. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT ^

You can find documentation for this module with the perldoc command.

    perldoc slackget10

You can also look for information at:

ACKNOWLEDGEMENTS ^

Thanks to Bertrand Dupuis (yes my brother) for his contribution to the documentation.

SEE ALSO ^

COPYRIGHT & LICENSE ^

Copyright 2005 DUPUIS Arnaud, All Rights Reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.