my $peer = shift;
my $pkctype = shift;
my $pkcdata = shift;
+ my $msvasocket = shift;
+
+ if (! defined $msvasocket or $msvasocket eq '') {
+ $msvasocket = 'http://localhost:8901';
+ }
my $apd = create_apd($context, $peer, $pkctype, $pkcdata);
my $apdjson = to_json($apd);
- # get msva socket from environment
- my $msvasocket = $ENV{MONKEYSPHERE_VALIDATION_AGENT_SOCKET};
-
# create the user agent
my $ua = LWP::UserAgent->new;
$apdjson,
);
+ msvalog('debug', "Contacting MSVA at %s\n", $requesturl);
my $response = $ua->request($request);
my $status = $response->status_line;
<STDIN>;
};
-my ($status,$ret) = Crypt::Monkeysphere::MSVA::Client->query_agent($context,$peer,$pkctype, $pkcdata);
+my ($status,$ret) = Crypt::Monkeysphere::MSVA::Client->query_agent($context,$peer,$pkctype, $pkcdata, $ENV{MONKEYSPHERE_VALIDATION_AGENT_SOCKET});
msvalog('info', "status: %s\n", $status);
msvalog('info', "valid: %s\n", $ret->{valid});