[Pkg-privacy-commits] [msva-perl] 259/356: remove pkc type checking from client, in favor of just passing everything off the agent
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 c7a8916b5fc2996897c0b2a39950b4dce60b445a
Author: Jameson Rollins <jrollins at finestructure.net>
Date: Fri Dec 24 19:08:22 2010 -0500
remove pkc type checking from client, in favor of just passing everything off the agent
---
Crypt/Monkeysphere/MSVA/Client.pm | 29 +++--------------------------
1 file changed, 3 insertions(+), 26 deletions(-)
diff --git a/Crypt/Monkeysphere/MSVA/Client.pm b/Crypt/Monkeysphere/MSVA/Client.pm
index 45ae447..046936a 100644
--- a/Crypt/Monkeysphere/MSVA/Client.pm
+++ b/Crypt/Monkeysphere/MSVA/Client.pm
@@ -91,35 +91,12 @@
$self->log('debug', "pkctype: %s\n", $pkctype);
my $transformed_data;
-
if ($pkctype eq 'x509der') {
- if ($self->{logger}->is_logging_at('verbose')) {
- if (Module::Load::Conditional::can_load('modules' => { 'Crypt::X509' => undef })) {
- require Crypt::X509;
- my $cert = Crypt::X509->new(cert => $pkcdata);
- if ($cert->error) {
- $self->log('error', "failed to parse this X.509 cert before sending it to the agent\n");
- } else {
- $self->log('info', "x509der certificate loaded.\n");
- $self->log('verbose', "cert subject: %s\n", $cert->subject_cn());
- $self->log('verbose', "cert issuer: %s\n", $cert->issuer_cn());
- $self->log('verbose', "cert pubkey algo: %s\n", $cert->PubKeyAlg());
- $self->log('verbose', "cert pubkey: %s\n", unpack('H*', $cert->pubkey()));
- }
- } else {
- $self->log('verbose', "X.509 cert going to agent but we cannot inspect it without Crypt::X509\n");
- }
- }
- # remap raw pkc data into numeric array
+ # remap raw der data into numeric array
$transformed_data = [map(ord, split(//,$pkcdata))];
- } elsif ($pkctype eq 'x509pem' ||
- $pkctype eq 'opensshpubkey' ||
- $pkctype eq 'rfc4716'
- ) {
- $transformed_data = $pkcdata;
} else {
- $self->log('error', "unknown pkc type '%s'.\n", $pkctype);
- };
+ $transformed_data = $pkcdata;
+ }
my $ret = {
context => $context,
--
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