sub getpidswithsocketinode {
my $sockid = shift;
+ if (! defined ($sockid)) {
+ msvalog('verbose', "No client socket ID to check. The MSVA is probably not running as a service.\n");
+ return [];
+ }
# this appears to be how Linux symlinks open sockets in /proc/*/fd,
# as of at least 2.6.26:
my $socktarget = sprintf('socket:[%d]', $sockid);
($status, $ret) = $self->{client}->query_agent('https', $self->{config}->{host}, 'server', 'x509pem', $certpem, 'never');
} else {
use Crypt::Monkeysphere::MSVA;
+ $self->{logger}->log('verbose', "Could not find a running agent (MONKEYSPHERE_VALIDATION_AGENT_SOCKET env var).\nFalling back to in-process certificate checks.\n");
# If there is no running agent, we might want to be able to fall
# back here.