Some whitespace fixes

Didn't change some of the larger testing scripts that use an inconsistent
indentation style.
This commit is contained in:
Tobias Brunner
2019-08-22 15:18:06 +02:00
parent 68346b6962
commit b9949e98c2
92 changed files with 554 additions and 552 deletions
+1 -1
View File
@@ -140,7 +140,7 @@ processing/jobs/dpd_timeout_job.c processing/jobs/dpd_timeout_job.h \
processing/jobs/adopt_children_job.c processing/jobs/adopt_children_job.h
libcharon_la_SOURCES += \
bus/listeners/sys_logger.c bus/listeners/sys_logger.h
bus/listeners/sys_logger.c bus/listeners/sys_logger.h
LOCAL_SRC_FILES := $(filter %.c,$(libcharon_la_SOURCES))
+1 -1
View File
@@ -2,7 +2,7 @@
INSERT INTO `Peer` (
`IdPeer`, `IdUser`, `Alias`, `KeyId`, `PublicKey`
) VALUES (
1, 0, 'sidv150',
1, 0, 'sidv150',
X'ed90e64feca21f4b6897992422e0de21b9d62629',
X'30820122300d06092a864886f70d01010105000382010f003082010a0282010100cd946c229f7d52b21da1cb5384e7dcaf6529f760534a56355efd49e87a9c6f1ddd5ff303bd7eb49c23de03adc487456f41eb5f92947bdc8ff8dbe443f8d112e0da2c98145e7c4d1cd15cddd08577f4d4f3d0a2e1da3c08c94cd819758751931e7a9724cc43d73a11b8e176a268b4cdbbf3995cb09723abc9bfc477c25e714a4661a84c078be7404d8986be55f20437e3a6b278a3cc89aec085941f1a1aafaf4b22ae146fe4684d5567dc30658a32087d01b98515070cb1653311cb6102f82a83c638c2a79985dbb9600752e9cbc272014a5c547b4ab59130c3a948658bff794b6f202cf95939ffa73b10521f05c060cecb15f8597ed95d72b9e405ee31f1b5d90203010001'
);
@@ -15,7 +15,7 @@
/**
* @defgroup tnc_ifmap_http tnc_ifmap_http
* @{ @ingroup tnc_ifmap
* @{ @ingroup tnc_ifmap
*/
#ifndef TNC_IFMAP_HTTP_H_
@@ -15,7 +15,7 @@
/**
* @defgroup tnc_ifmap_listener tnc_ifmap_listener
* @{ @ingroup tnc_ifmap
* @{ @ingroup tnc_ifmap
*/
#ifndef TNC_IFMAP_LISTENER_H_
@@ -17,7 +17,7 @@
#include "tnc_ifmap_listener.h"
#include <daemon.h>
typedef struct private_tnc_ifmap_plugin_t private_tnc_ifmap_plugin_t;
/**
@@ -15,7 +15,7 @@
/**
* @defgroup tnc_ifmap_soap_msg tnc_ifmap_soap_msg
* @{ @ingroup tnc_ifmap
* @{ @ingroup tnc_ifmap
*/
#ifndef TNC_IFMAP_SOAP_MSG_H_
@@ -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"
+3 -3
View File
@@ -29,7 +29,7 @@ typedef struct eap_inner_method_t eap_inner_method_t;
/**
* Interface of a weak inner EAP method like EAP-TNC or PT-EAP
* that must be encapsulated in a strong TLS-based EAP method
* that must be encapsulated in a strong TLS-based EAP method
*/
struct eap_inner_method_t {
@@ -43,14 +43,14 @@ struct eap_inner_method_t {
*
* @return outer EAP authentication type
*/
eap_type_t (*get_auth_type)(eap_inner_method_t *this);
eap_type_t (*get_auth_type)(eap_inner_method_t *this);
/*
* Set type of outer EAP Client/Server authentication
*
* @param type outer EAP authentication type
*/
void (*set_auth_type)(eap_inner_method_t *this, eap_type_t type);
void (*set_auth_type)(eap_inner_method_t *this, eap_type_t type);
};