[Pkg-privacy-commits] [msva-perl] 258/356: tiny bit of cleanup and commenting
Ximin Luo
infinity0 at moszumanska.debian.org
Mon Aug 24 07:42:03 UTC 2015
This is an automated email from the git hooks/post-receive script.
infinity0 pushed a commit to branch debian
in repository msva-perl.
commit a17be0eedd16625c518cb981d9f1096d328440f2
Author: Jameson Rollins <jrollins at finestructure.net>
Date: Fri Dec 24 17:45:13 2010 -0500
tiny bit of cleanup and commenting
---
Crypt/Monkeysphere/MSVA.pm | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/Crypt/Monkeysphere/MSVA.pm b/Crypt/Monkeysphere/MSVA.pm
index 5dcd6e8..3b58231 100755
--- a/Crypt/Monkeysphere/MSVA.pm
+++ b/Crypt/Monkeysphere/MSVA.pm
@@ -664,7 +664,7 @@
} else {
msvalog('error', "invalid client peer name string: %s\n", $data->{peer}->{name});
$ret->{message} = sprintf("Invalid client peer name string: %s", $data->{peer}->{name});
- return $status, $ret;
+ return $status,$ret;
}
} elsif ($data->{peer}->{name} =~ /^($RE{net}{domain}(:[[:digit:]]+)?)$/) {
$data->{peer}->{name} = $1;
@@ -680,7 +680,7 @@
my $uid = $prefix.$data->{peer}->{name};
msvalog('verbose', "user ID: %s\n", $uid);
- # check pkc type
+ # extract key from PKC
my $key;
$key = pkcextractkey($data);
if (exists $key->{error}) {
@@ -688,8 +688,12 @@
return $status,$ret;
}
+ # setup variables
$ret->{message} = sprintf('Failed to validate "%s" through the OpenPGP Web of Trust.', $uid);
my $lastloop = 0;
+ my $foundvalid = 0;
+
+ # determine keyserver policy
my $kspolicy;
if (defined $data->{keyserverpolicy} &&
$data->{keyserverpolicy} =~ /^(always|never|unlessvalid)$/) {
@@ -707,7 +711,6 @@
} elsif ($kspolicy eq 'never') {
$lastloop = 1;
}
- my $foundvalid = 0;
# fingerprints of keys that are not fully-valid for this User ID, but match
# the key from the queried certificate:
@@ -764,7 +767,7 @@
}
}
- return $status, $ret;
+ return $status,$ret;
}
sub pre_loop_hook {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/msva-perl.git
More information about the Pkg-privacy-commits
mailing list