Some whitespace fixes
Didn't change some of the larger testing scripts that use an inconsistent indentation style.
This commit is contained in:
@@ -64,7 +64,7 @@ my $moon_key = "-----BEGIN RSA PRIVATE KEY-----\n" .
|
||||
"YeivMDc9hj0YLXA47ryQHTx4vB5Nv3TI/LoUG6VrCvZvocQOXe/n7TguwAjJj7ef" .
|
||||
"E55Gy8lXDRENyJMP1vif3N2iH8eQ1ASf8k/+gnBNkjSlYSSQUDfV\n" .
|
||||
"-----END RSA PRIVATE KEY-----\n";
|
||||
|
||||
|
||||
my $moon_cert = "-----BEGIN CERTIFICATE-----\n" .
|
||||
"MIIEIjCCAwqgAwIBAgIBKzANBgkqhkiG9w0BAQsFADBFMQswCQYDVQQGEwJDSDEZ" .
|
||||
"MBcGA1UEChMQTGludXggc3Ryb25nU3dhbjEbMBkGA1UEAxMSc3Ryb25nU3dhbiBS" .
|
||||
@@ -283,7 +283,7 @@ my %child = (
|
||||
local_ts => \@l_ts,
|
||||
remote_ts => \@r_ts,
|
||||
esp_proposals => \@esp,
|
||||
);
|
||||
);
|
||||
my %children = ( 'net-net' => \%child );
|
||||
my @l_addrs = ( '192.168.0.1' );
|
||||
my @r_addrs = ( '192.168.0.2' );
|
||||
|
||||
@@ -229,7 +229,7 @@ Vici::Message - Perl extension for building and parsing strongSwan VICI messages
|
||||
|
||||
=head1 SYNOPSIS
|
||||
|
||||
use Vici::Message;
|
||||
use Vici::Message;
|
||||
|
||||
=head1 DESCRIPTION
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ sub new {
|
||||
my $class = shift;
|
||||
my $socket = shift;
|
||||
my $self = {
|
||||
Transport => Vici::Transport->new($socket),
|
||||
Transport => Vici::Transport->new($socket),
|
||||
};
|
||||
bless($self, $class);
|
||||
return $self;
|
||||
@@ -98,7 +98,7 @@ sub streamed_request {
|
||||
my ($self, $command, $event, $vars) = @_;
|
||||
my $out = defined $vars ? $vars->encode() : '';
|
||||
|
||||
$self->register($event);
|
||||
$self->register($event);
|
||||
|
||||
my $request = pack('CC/a*a*', CMD_REQUEST, $command, $out);
|
||||
$self->{'Transport'}->send($request);
|
||||
@@ -112,13 +112,13 @@ sub streamed_request {
|
||||
|
||||
if ( $type == EVENT )
|
||||
{
|
||||
(my $event_name, $data) = unpack('C/a*a*', $data);
|
||||
(my $event_name, $data) = unpack('C/a*a*', $data);
|
||||
|
||||
if ($event_name eq $event)
|
||||
{
|
||||
my $msg = Vici::Message->from_data($data);
|
||||
push(@list, $msg);
|
||||
}
|
||||
if ($event_name eq $event)
|
||||
{
|
||||
my $msg = Vici::Message->from_data($data);
|
||||
push(@list, $msg);
|
||||
}
|
||||
}
|
||||
elsif ( $type == CMD_RESPONSE )
|
||||
{
|
||||
@@ -142,7 +142,7 @@ Vici::Packet - Perl extension for sending and receiving strongSwan VICI packets
|
||||
|
||||
=head1 SYNOPSIS
|
||||
|
||||
use Vici::Packet;
|
||||
use Vici::Packet;
|
||||
|
||||
=head1 DESCRIPTION
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ sub stats {
|
||||
}
|
||||
|
||||
sub reload_settings {
|
||||
return request_res('reload-settings', @_);
|
||||
return request_res('reload-settings', @_);
|
||||
}
|
||||
|
||||
sub initiate {
|
||||
@@ -125,7 +125,7 @@ sub flush_certs {
|
||||
}
|
||||
|
||||
sub clear_creds {
|
||||
return request_res('clear-creds', @_);
|
||||
return request_res('clear-creds', @_);
|
||||
}
|
||||
|
||||
sub load_authority {
|
||||
@@ -197,7 +197,7 @@ Vici::Session - Perl binding for the strongSwan VICI configuration interface
|
||||
|
||||
=head1 SYNOPSIS
|
||||
|
||||
use Vici::Session;
|
||||
use Vici::Session;
|
||||
|
||||
=head1 DESCRIPTION
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ Vici::Transport - Perl extension for communicating via a strongSwan VICI socket
|
||||
|
||||
=head1 SYNOPSIS
|
||||
|
||||
use Vici::Transport;
|
||||
use Vici::Transport;
|
||||
|
||||
=head1 DESCRIPTION
|
||||
|
||||
|
||||
@@ -4,10 +4,10 @@ Gem::Specification.new do |s|
|
||||
s.authors = ["strongSwan Project"]
|
||||
s.email = ["[email protected]"]
|
||||
s.description = %q{
|
||||
The strongSwan VICI protocol allows external application to monitor,
|
||||
configure and control the IKE daemon charon. This Ruby Gem provides a
|
||||
native client side implementation of the VICI protocol, well suited to
|
||||
script automated tasks in a relaible way.
|
||||
The strongSwan VICI protocol allows external application to monitor,
|
||||
configure and control the IKE daemon charon. This Ruby Gem provides a
|
||||
native client side implementation of the VICI protocol, well suited to
|
||||
script automated tasks in a relaible way.
|
||||
}
|
||||
s.summary = "Native Ruby interface for strongSwan VICI"
|
||||
s.homepage = "https://wiki.strongswan.org/projects/strongswan/wiki/Vici"
|
||||
|
||||
Reference in New Issue
Block a user