- new Crypt::Monkeysphere::Validator
- unit tests and unit test harness
- -- Daniel Kahn Gillmor <dkg@fifthhorseman.net> Thu, 10 Mar 2011 00:58:11 -0500
+ [ Daniel Kahn Gillmor ]
+ * now depending on Crypt::X509 0.50 for pubkey components directly.
+
+ -- Daniel Kahn Gillmor <dkg@fifthhorseman.net> Fri, 11 Mar 2011 01:24:55 -0500
msva-perl (0.8) upstream;
use Crypt::Monkeysphere::Validator;
- require Crypt::X509;
+ use Crypt::X509 0.50;
use Regexp::Common qw /net/;
- use Convert::ASN1;
use MIME::Base64;
use IO::Socket;
use IO::File;
return $logger;
}
- my $rsa_decoder = Convert::ASN1::->new();
- $rsa_decoder->prepare(q<
-
- SEQUENCE {
- modulus INTEGER,
- exponent INTEGER
- }
- >);
-
sub net_server {
return 'Net::Server::MSVA';
};
$cert->PubKeyAlg(), $cert->pubkey_algorithm);
} else {
msvalog('debug', "decoding ASN.1 pubkey\n");
- $key = $rsa_decoder->decode($cert->pubkey());
+ $key = $cert->pubkey_components();
if (! defined $key) {
msvalog('verbose', "failed to decode %s\n", unpack('H*', $cert->pubkey()));
$key = {error => 'failed to decode the public key'};