blob: cf81f88800a46bd8b79fd910e9a03e314095dba6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# -*- mode: cperl -*-
use strict;
print "1..1\n";
if (!eval { require Module::Signature; 1 }) {
print "ok 1 # skip - no Module::Signature found\n";
}
elsif (!eval { require Socket; Socket::inet_aton('pgp.mit.edu') }) {
print "ok 1 # skip - Cannot connect to the keyserver";
}
else {
(Module::Signature::verify() == Module::Signature::SIGNATURE_OK())
or print "not ";
print "ok 1 # Valid signature\n";
}
|