]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
Some whitespace fixes
authorTobias Brunner <tobias@strongswan.org>
Tue, 9 Jul 2019 15:03:23 +0000 (17:03 +0200)
committerTobias Brunner <tobias@strongswan.org>
Thu, 22 Aug 2019 13:18:06 +0000 (15:18 +0200)
Didn't change some of the larger testing scripts that use an inconsistent
indentation style.

92 files changed:
Android.mk
conf/options/imv_policy_manager.opt
conf/plugins/imc-attestation.opt
conf/plugins/imc-hcd.opt
conf/plugins/imc-os.opt
conf/plugins/tnccs-20.opt
src/conftest/README
src/ipsec/_ipsec.in
src/libcharon/Android.mk
src/libcharon/plugins/medsrv/test.sql
src/libcharon/plugins/tnc_ifmap/tnc_ifmap_http.h
src/libcharon/plugins/tnc_ifmap/tnc_ifmap_listener.h
src/libcharon/plugins/tnc_ifmap/tnc_ifmap_plugin.c
src/libcharon/plugins/tnc_ifmap/tnc_ifmap_soap_msg.h
src/libcharon/plugins/vici/perl/Vici-Session/README.pod
src/libcharon/plugins/vici/perl/Vici-Session/lib/Vici/Message.pm
src/libcharon/plugins/vici/perl/Vici-Session/lib/Vici/Packet.pm
src/libcharon/plugins/vici/perl/Vici-Session/lib/Vici/Session.pm
src/libcharon/plugins/vici/perl/Vici-Session/lib/Vici/Transport.pm
src/libcharon/plugins/vici/ruby/vici.gemspec.in
src/libcharon/sa/eap/eap_inner_method.h
src/libimcv/generic/generic_attr_bool.c
src/libimcv/generic/generic_attr_bool.h
src/libimcv/imv/imv_database.h
src/libimcv/imv/imv_os_info.c
src/libimcv/imv/imv_remediation_string.c
src/libimcv/imv/imv_session_manager.h
src/libimcv/imv/imv_workitem.c
src/libimcv/imv/imv_workitem.h
src/libimcv/plugins/imc_attestation/Makefile.am
src/libimcv/plugins/imv_hcd/imv_hcd_agent.c
src/libimcv/pts/components/pts_comp_evidence.h
src/libimcv/pts/components/pts_component.h
src/libimcv/pts/components/tcg/tcg_comp_func_name.h
src/libimcv/pts/pts_dh_group.h
src/libimcv/pts/pts_ima_event_list.h
src/libimcv/pts/pts_meas_algo.h
src/libimcv/swid_gen/swid_gen.c
src/libimcv/swima/swima_collector.h
src/libimcv/swima/swima_error.c
src/libimcv/tcg/seg/tcg_seg_attr_seg_env.c
src/libstrongswan/crypto/xofs/mgf1.h
src/libstrongswan/math/libnttfft/ntt_fft.c
src/libstrongswan/math/libnttfft/ntt_fft_params.c
src/libstrongswan/math/libnttfft/ntt_fft_reduce.h
src/libstrongswan/math/libnttfft/tests/suites/test_ntt_fft.c
src/libstrongswan/plugins/bliss/bliss_huffman_coder.c
src/libstrongswan/plugins/bliss/bliss_sampler.c
src/libstrongswan/plugins/bliss/bliss_signature.c
src/libstrongswan/plugins/chapoly/chapoly_xof.c
src/libstrongswan/plugins/newhope/newhope_noise.c
src/libstrongswan/plugins/newhope/newhope_reconciliation.c
src/libstrongswan/plugins/newhope/newhope_reconciliation.h
src/libstrongswan/plugins/newhope/tests/suites/test_newhope_noise.c
src/libstrongswan/plugins/newhope/tests/suites/test_newhope_reconciliation.c
src/libstrongswan/plugins/ntru/ntru_convert.h
src/libstrongswan/plugins/ntru/ntru_poly.c
src/libstrongswan/plugins/ntru/ntru_poly.h
src/libstrongswan/plugins/ntru/ntru_private_key.c
src/libstrongswan/plugins/ntru/ntru_trits.c
src/libstrongswan/plugins/ntru/ntru_trits.h
src/libstrongswan/plugins/test_vectors/test_vectors/chacha20_xof.c
src/libstrongswan/tests/suites/test_asn1_parser.c
src/libstrongswan/tests/suites/test_crypter.c
src/libtnccs/plugins/tnccs_20/batch/pb_tnc_batch.c
src/libtnccs/plugins/tnccs_20/messages/ietf/pb_error_msg.h
src/libtnccs/plugins/tnccs_20/messages/ietf/pb_pa_msg.h
src/libtnccs/plugins/tnccs_20/messages/tcg/pb_pdp_referral_msg.c
src/libtnccs/plugins/tnccs_20/messages/tcg/pb_pdp_referral_msg.h
src/libtncif/tncif_identity.c
src/libtpmtss/plugins/tpm/tpm_rng.c
src/libtpmtss/tpm_tss_tss2_names_v1.c
src/manager/templates/config/list.cs
src/manager/templates/footer.cs
src/manager/templates/header.cs
src/manager/templates/ikesa/list.cs
src/manager/templates/static/jquery.js
src/manager/templates/static/style.css
src/medsrv/templates/footer.cs
src/medsrv/templates/header.cs
src/medsrv/templates/peer/add.cs
src/medsrv/templates/peer/edit.cs
src/medsrv/templates/user/edit.cs
src/sec-updater/Makefile.am
src/sw-collector/sw_collector_dpkg.c
src/sw-collector/sw_collector_history.h
src/sw-collector/sw_collector_rest_api.c
src/swanctl/commands/list_authorities.c
testing/scripts/build-guestimages
testing/scripts/function.sh
testing/scripts/load-testconfig
testing/scripts/restore-defaults

index 0ca462ee3621c2ad3add397e252f7ac1ad5b3aeb..69869dfe6300a359683ef1071bfbb44b172973f7 100644 (file)
@@ -29,8 +29,8 @@ strongswan_STARTER_PLUGINS := kernel-netlink
 
 # list of all plugins - used to enable them with the function below
 strongswan_PLUGINS := $(sort $(strongswan_CHARON_PLUGINS) \
-                            $(strongswan_STARTER_PLUGINS) \
-                            $(strongswan_SCEPCLIENT_PLUGINS))
+       $(strongswan_STARTER_PLUGINS) \
+       $(strongswan_SCEPCLIENT_PLUGINS))
 
 include $(LOCAL_PATH)/Android.common.mk
 
index 6ed0efc2a2f70ad23385409c9602060c2197eda5..82983e82194ca03310b41f5879801bcb5bbfa981 100644 (file)
@@ -10,4 +10,4 @@ imv_policy_manager.command_allow =
        Shell command to be executed with recommendation allow.
 
 imv_policy_manager.command_block =
-       Shell command to be executed with all other recommendations. 
+       Shell command to be executed with all other recommendations.
index 925ac4eaf750cf3201c6b2de689f8b8289957787..82af6b6498f7575f938c20c86e55544547171f95 100644 (file)
@@ -26,19 +26,21 @@ libimcv.plugins.imc-attestation.pcr_info = no
        Whether to send pcr_before and pcr_after info.
 
 libimcv.plugins.imc-attestation.pcr17_before =
-        PCR17 value before measurement.
+       PCR17 value before measurement.
 
 libimcv.plugins.imc-attestation.pcr17_meas =
-        Dummy measurement value extended into PCR17 if the TBOOT log is not available.
+       Dummy measurement value extended into PCR17 if the TBOOT log is not
+       available.
 
 libimcv.plugins.imc-attestation.pcr17_after =
-        PCR17 value after measurement.
+       PCR17 value after measurement.
 
 libimcv.plugins.imc-attestation.pcr18_before =
-        PCR18 value before measurement.
+       PCR18 value before measurement.
 
 libimcv.plugins.imc-attestation.pcr18_meas =
-       Dummy measurement value extended into PCR17 if the TBOOT log is not available. 
+       Dummy measurement value extended into PCR17 if the TBOOT log is not
+       available.
 
 libimcv.plugins.imc-attestation.pcr18_after =
-        PCR18 value after measurement.
+       PCR18 value after measurement.
index d69b06c4aaf341bb775c2dff20497878b16f538f..e2e2f5d5d32c4d870b90969735f7b4ec327a3054 100644 (file)
@@ -6,7 +6,7 @@ libimcv.plugins.imc-hcd.subtypes
 
 libimcv.plugins.imc-hcd.subtypes.<section>
        Defines a PWG HCD PA subtype section. Recognized subtype section names are
-    _system_, _control_, _marker_, _finisher_, _interface_ and _scanner_.
+       _system_, _control_, _marker_, _finisher_, _interface_ and _scanner_.
 
 libimcv.plugins.imc-hcd.subtypes.<section>.attributes_natural_language = en
        Variable length natural language tag conforming to RFC 5646 specifies
index 6c1da5e8981b8cb3c3cf64e4066ec2b6706fca2b..b72470ba2dc68828600a403b5af5c3a10130701d 100644 (file)
@@ -1,18 +1,18 @@
 libimcv.plugins.imc-os.device_cert =
        Manually set the path to the client device certificate
-    (e.g. /etc/pts/aikCert.der)
+       (e.g. /etc/pts/aikCert.der)
 
 libimcv.plugins.imc-os.device_id =
        Manually set the client device ID in hexadecimal format
-   (e.g. 1083f03988c9762703b1c1080c2e46f72b99cc31)
+       (e.g. 1083f03988c9762703b1c1080c2e46f72b99cc31)
 
 libimcv.plugins.imc-os.device_handle =
        Manually set handle to a private key bound to a smartcard or TPM
-    (e.g. 0x81010004)
+       (e.g. 0x81010004)
 
 libimcv.plugins.imc-os.device_pubkey =
        Manually set the path to the client device public key
-    (e.g. /etc/pts/aikPub.der)
+       (e.g. /etc/pts/aikPub.der)
 
 libimcv.plugins.imc-os.push_info = yes
        Send operating system info without being prompted.
index 8d16d1cb29e86a46d1f7778a119c9984a3ec6623..ccbb2587670e54554cba40fab234083494a1ef80 100644 (file)
@@ -5,10 +5,10 @@ charon.plugins.tnccs-20.max_message_size = 65490
        Maximum size of a PA-TNC message (upper limit via PT-EAP = 65497).
 
 charon.plugins.tnccs-20.mutual = no
-        Enable PB-TNC mutual protocol.
+       Enable PB-TNC mutual protocol.
 
 charon.plugins.tnccs-20.tests.pb_tnc_noskip = no
-        Send an unsupported PB-TNC message type with the NOSKIP flag set.
+       Send an unsupported PB-TNC message type with the NOSKIP flag set.
 
 charon.plugins.tnccs-20.tests.pb_tnc_version = 2
-        Send a PB-TNC batch with a modified PB-TNC version.
+       Send a PB-TNC batch with a modified PB-TNC version.
index 404b2d1e5f8140021efe2eee7f4c69bad0565bb7..ad3339835be37926e5b3e21a25a117c87c40dcbd 100644 (file)
@@ -1,7 +1,7 @@
 
 
-             conftest - an IKEv2 conformance testing framework
-             =================================================
+            conftest - an IKEv2 conformance testing framework
+            =================================================
 
 
 1. Introduction
@@ -40,9 +40,9 @@ strongSwan software suite.
 
 The syntax is as follows:
 
- settings := (section|keyvalue)*
- section  := name { settings }
- keyvalue := key = value\n
 settings := (section|keyvalue)*
 section  := name { settings }
 keyvalue := key = value\n
 
 Settings contain zero or more sub-sections or key/value pairs. A section
 consists of a name, followed by curly open and close brackets. The value in the
@@ -150,24 +150,24 @@ The actions section in the test specific configuration file defines
 the IKEv2 protocol actions to trigger. Currently, the following actions
 are supported and take these arguments (as key/value pairs):
 
-  initiate:    Initiate an IKE- and CHILD_SA
-               config: name of the CHILD_SA configuration to initiate
-               delay: Delay to trigger action after startup
-  rekey_ike:   Rekey an IKE_SA
-               config: name of originating IKE_SA configuration
-               delay: Delay to trigger action after startup
-  rekey_child: Rekey an CHILD_SA
-               config: name of originating CHILD_SA configuration
-               delay: Delay to trigger action after startup
-  liveness:    Do a liveness check (DPD) on the IKE_SA
-               config: name of originating IKE_SA configuration
-               delay: Delay to trigger action after startup
-  close_ike:   Close an IKE_SA
-               config: name of originating IKE_SA configuration
-               delay: Delay to trigger action after startup
-  close_child: Close a CHILD_SA
-               config: name of originating IKE_SA configuration
-               delay: Delay to trigger action after startup
+  initiate:     Initiate an IKE- and CHILD_SA
+                config: name of the CHILD_SA configuration to initiate
+                delay: Delay to trigger action after startup
+  rekey_ike:    Rekey an IKE_SA
+                config: name of originating IKE_SA configuration
+                delay: Delay to trigger action after startup
+  rekey_child:  Rekey an CHILD_SA
+                config: name of originating CHILD_SA configuration
+                delay: Delay to trigger action after startup
+  liveness:     Do a liveness check (DPD) on the IKE_SA
+                config: name of originating IKE_SA configuration
+                delay: Delay to trigger action after startup
+  close_ike:    Close an IKE_SA
+                config: name of originating IKE_SA configuration
+                delay: Delay to trigger action after startup
+  close_child:  Close a CHILD_SA
+                config: name of originating IKE_SA configuration
+                delay: Delay to trigger action after startup
 
 To trigger the same action multiple times, the action sections must be named
 uniquely. Append an arbitrary string to the action name. The following example
index 29b3232842201b634735c71f1782d5f2d3dd0591..c1de833fbe6343f20f10f31ad256b988104b6ce2 100644 (file)
@@ -100,8 +100,8 @@ down)
        shift
        if [ "$#" -ne 1 ]
        then
-           echo "Usage: $IPSEC_SCRIPT down <connection name>"
-           exit 2
+               echo "Usage: $IPSEC_SCRIPT down <connection name>"
+               exit 2
        fi
        rc=7
        if [ -e $IPSEC_CHARON_PID ]
@@ -115,8 +115,8 @@ down-srcip)
        shift
        if [ "$#" -lt 1 ]
        then
-           echo "Usage: $IPSEC_SCRIPT down-srcip <start> [<end>]"
-           exit 2
+               echo "Usage: $IPSEC_SCRIPT down-srcip <start> [<end>]"
+               exit 2
        fi
        rc=7
        if [ -e $IPSEC_CHARON_PID ]
@@ -283,8 +283,8 @@ up)
        shift
        if [ "$#" -ne 1 ]
        then
-           echo "Usage: $IPSEC_SCRIPT up <connection name>"
-           exit 2
+               echo "Usage: $IPSEC_SCRIPT up <connection name>"
+               exit 2
        fi
        rc=7
        if [ -e $IPSEC_CHARON_PID ]
index d1fb33702e41bdcf3aa02c72701d841e53e2dbed..cefab67cf0ae5650a8775df511dd78dddf6ad56c 100644 (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))
 
index 8ba33647c3a9583ab3821c0e917263689782ce2e..cd964300dcc80a61e4aec8b8b5f20c58a8b2e947 100644 (file)
@@ -2,7 +2,7 @@
 INSERT INTO `Peer` (
        `IdPeer`, `IdUser`, `Alias`, `KeyId`, `PublicKey`
 ) VALUES (
-       1, 0, 'sidv150', 
+       1, 0, 'sidv150',
        X'ed90e64feca21f4b6897992422e0de21b9d62629',
        X'30820122300d06092a864886f70d01010105000382010f003082010a0282010100cd946c229f7d52b21da1cb5384e7dcaf6529f760534a56355efd49e87a9c6f1ddd5ff303bd7eb49c23de03adc487456f41eb5f92947bdc8ff8dbe443f8d112e0da2c98145e7c4d1cd15cddd08577f4d4f3d0a2e1da3c08c94cd819758751931e7a9724cc43d73a11b8e176a268b4cdbbf3995cb09723abc9bfc477c25e714a4661a84c078be7404d8986be55f20437e3a6b278a3cc89aec085941f1a1aafaf4b22ae146fe4684d5567dc30658a32087d01b98515070cb1653311cb6102f82a83c638c2a79985dbb9600752e9cbc272014a5c547b4ab59130c3a948658bff794b6f202cf95939ffa73b10521f05c060cecb15f8597ed95d72b9e405ee31f1b5d90203010001'
 );
index 3d308474497daa703a14ae3d8055e4c6b9e8b549..25bd45a8fc81d651acf0642470a5e046edfc0f0c 100644 (file)
@@ -15,7 +15,7 @@
 
 /**
  * @defgroup tnc_ifmap_http tnc_ifmap_http
- * @{ @ingroup tnc_ifmap 
+ * @{ @ingroup tnc_ifmap
  */
 
 #ifndef TNC_IFMAP_HTTP_H_
index 4ecccf4df8eaef086e54b79d7af2b38609f60ef1..3ee26e15fefe83a4dfcf8dfe368cea9d8a756835 100644 (file)
@@ -15,7 +15,7 @@
 
 /**
  * @defgroup tnc_ifmap_listener tnc_ifmap_listener
- * @{ @ingroup tnc_ifmap 
+ * @{ @ingroup tnc_ifmap
  */
 
 #ifndef TNC_IFMAP_LISTENER_H_
index 85ad49bd8c4a9d8d28cd18a70570bc6bc6cf5515..9927cafea43222927995be093dc15ddf7510cb6c 100644 (file)
@@ -17,7 +17,7 @@
 #include "tnc_ifmap_listener.h"
 
 #include <daemon.h>
+
 typedef struct private_tnc_ifmap_plugin_t private_tnc_ifmap_plugin_t;
 
 /**
index 4f809ba1adfa495ba57d4dbbf93b3f64e7f0c350..9d6e25e7f9371657eb97bcfab80310307c458f5c 100644 (file)
@@ -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_
index d19739709f164517b580a60bc833f3b3a0395a7e..1f5ff59629a680da125ad669e0c3b83620e93e63 100644 (file)
@@ -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' );
index d0700fa97287ca41d6e0818deff55afce5007ee3..8ea97c242b47c0b8a898e9ed2994f551c1267da6 100644 (file)
@@ -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
 
index 9e2b77fa53825592c4237ceeeef9ef4162dbb5de..09f5fc2e6ecfbae399e282b3396d9a2687e4578b 100644 (file)
@@ -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
 
index 27c023e52b3befdaa5573e114b9c70b0f606f43b..20207d1956b76d1737a3c16809bf5a4c01d6a63c 100644 (file)
@@ -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
 
index b0a7b62852c2ab0e153998e99b43b025243ed70d..ae0e88a2208ee62acc9479c41e76f1a812ed52ae 100644 (file)
@@ -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
 
index 7a1e8ee56fa1ecfef2db15042a81722e82621ee3..8602ae14a5a7cf45c49dbffdf04d933351c44190 100644 (file)
@@ -4,10 +4,10 @@ Gem::Specification.new do |s|
   s.authors       = ["strongSwan Project"]
   s.email         = ["info@strongswan.org"]
   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"
index 5008529657af59728396166e5eab8418a4859fa7..b2efe520b1e24f6abcbf21d7f85f8a1a2e76745a 100644 (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);
 
 };
 
index 5668b94fd1c549d1d709d7bc41bdf23f11451587..619a63819b9966e0683cf75e197a5266eb121aa3 100644 (file)
@@ -24,7 +24,7 @@
 typedef struct private_generic_attr_bool_t private_generic_attr_bool_t;
 
 /**
- * Generic PA-TNC attribute containing boolean status value in 32 bit encoding 
+ * Generic PA-TNC attribute containing boolean status value in 32 bit encoding
  *
  *                       1                   2                   3
  *   0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
@@ -123,7 +123,7 @@ METHOD(pa_tnc_attr_t, process, status_t,
        enum_name_t *pa_attr_names;
        bio_reader_t *reader;
        uint32_t status;
-  
+
        *offset = 0;
 
        if (this->value.len < this->length)
index 93754bf9d709cfbeebd2566d5e6891e2b1269fe3..ac96c15daea6f50cb6208e627b4248f37de5b672 100644 (file)
@@ -28,7 +28,7 @@ typedef struct generic_attr_bool_t generic_attr_bool_t;
 
 /**
  * Class implementing a generic PA-TNC attribute containing a boolean status
- * value encoded as a 32 bit unsigned integer (0,1) in network order 
+ * value encoded as a 32 bit unsigned integer (0,1) in network order
  */
 struct generic_attr_bool_t {
 
index d0b2db2b45f1e5b0c1e58152460c56d1594b7fef..4e31c3422bc734abdb2bb610f642645a263d1768 100644 (file)
@@ -32,7 +32,7 @@
 typedef struct imv_database_t imv_database_t;
 
 /**
- * IMV database interface 
+ * IMV database interface
  */
 struct imv_database_t {
 
index dfab1943491c1f9588e6b92140d27ca04e5861eb..c38d75ea845118c2d2ee3530e5c3dd27a7b9b4cb 100644 (file)
@@ -78,7 +78,7 @@ METHOD(imv_os_info_t, set_name, void,
                this->info = NULL;
        }
        this->name = chunk_clone(name);
-       this->type = os_type_from_name(name); 
+       this->type = os_type_from_name(name);
 }
 
 METHOD(imv_os_info_t, get_name, chunk_t,
index af82e1cdd77d30f412ca890a6948a0157e9e654d..d7bfc461cca9dbb78f47b3bc518a3b99a786f2e2 100644 (file)
@@ -154,7 +154,7 @@ METHOD(imv_remediation_string_t, add_instruction, void,
                        items ? items : "");
        free(header);
        free(items);
-       this->instructions = chunk_cat("mm", this->instructions, 
+       this->instructions = chunk_cat("mm", this->instructions,
                                                        chunk_create(instruction, strlen(instruction)));
 }
 
index cfae23bc964e2f6264d7560bf88d556e508b7c48..7c335014e063e0042fd16614b7060a89dd8a03f0 100644 (file)
@@ -31,7 +31,7 @@
 typedef struct imv_session_manager_t imv_session_manager_t;
 
 /**
- * IMV session manager interface 
+ * IMV session manager interface
  */
 struct imv_session_manager_t {
 
index 8784a0ccf88e2f395580b5523e7020f3e9497c17..07c8c51fc1cc320a22f19841e4d8f84f21473b45 100644 (file)
@@ -160,7 +160,7 @@ METHOD(imv_workitem_t, set_result, TNC_IMV_Action_Recommendation,
                 TNC_IMV_Action_Recommendation_names, this->rec_final,
                 strlen(result) ? " - " : "", result);
 
-       return this->rec_final; 
+       return this->rec_final;
 }
 
 METHOD(imv_workitem_t, get_result, TNC_IMV_Action_Recommendation,
index 93a4b58740fa3fff654307ab22b57b4c132db852..2b4ebc03011130aad4a6ab9ee3a26c8f8a336890 100644 (file)
@@ -51,12 +51,12 @@ enum imv_workitem_type_t {
 extern enum_name_t *imv_workitem_type_names;
 
 /**
- * IMV database interface 
+ * IMV database interface
  */
 struct imv_workitem_t {
 
        /**
-        * Get primary workitem key 
+        * Get primary workitem key
         *
         * @return                              Primary workitem key
         */
@@ -104,7 +104,7 @@ struct imv_workitem_t {
         * @param eval                  Evaluation Result
         * @return                              Action Recommendation
         */
-        TNC_IMV_Action_Recommendation (*set_result)(imv_workitem_t *this, 
+        TNC_IMV_Action_Recommendation (*set_result)(imv_workitem_t *this,
                                                char *result, TNC_IMV_Evaluation_Result eval);
 
        /**
@@ -113,7 +113,7 @@ struct imv_workitem_t {
         * @param result                Result string
         * @return                              Action Recommendatino
         */
-        TNC_IMV_Action_Recommendation (*get_result)(imv_workitem_t *this, 
+        TNC_IMV_Action_Recommendation (*get_result)(imv_workitem_t *this,
                                                                                                 char **result);
 
        /**
index 14b1646e5e06e1243ff93ea6ea866d3a59046fe4..4f944975d6c3209284dc7a9dc993f0bb1cc49ee4 100644 (file)
@@ -2,7 +2,7 @@ AM_CPPFLAGS = \
        -I$(top_srcdir)/src/libstrongswan \
        -I$(top_srcdir)/src/libtncif \
        -I$(top_srcdir)/src/libimcv \
-       -I$(top_srcdir)/src/libtpmtss 
+       -I$(top_srcdir)/src/libtpmtss
 
 AM_CFLAGS = \
        $(PLUGIN_CFLAGS)
index e15eeb10a1c6f7353e499dcafb1d458c030d7fa2..bca1958226bf26dfb90767d183aabfa39bd389b2 100644 (file)
@@ -176,7 +176,7 @@ static TNC_Result receive_msg(private_imv_hcd_agent_t *this, imv_state_t *state,
        imv_msg_t *out_msg;
        imv_hcd_state_t *hcd_state;
        pa_tnc_attr_t *attr;
-       enum_name_t *pa_subtype_names; 
+       enum_name_t *pa_subtype_names;
        pen_type_t type, msg_type;
        TNC_Result result;
        bool fatal_error = FALSE, assessment = FALSE;
@@ -328,7 +328,7 @@ static TNC_Result receive_msg(private_imv_hcd_agent_t *this, imv_state_t *state,
                                        {
                                                /* do not request user applications */
                                                hcd_state->set_user_app_disabled(hcd_state);
-                                       }               
+                                       }
                                        break;
                                }
                                case PWG_HCD_FORWARDING_ENABLED:
@@ -543,7 +543,7 @@ METHOD(imv_agent_if_t, batch_ending, TNC_Result,
 
                /* Determine maximum PA-TNC attribute segment size */
                max_seg_size = state->get_max_msg_len(state)
-                                                               - PA_TNC_HEADER_SIZE 
+                                                               - PA_TNC_HEADER_SIZE
                                                                - PA_TNC_ATTR_HEADER_SIZE
                                                                - TCG_SEG_ATTR_SEG_ENV_HEADER
                                                                - PA_TNC_ATTR_HEADER_SIZE
@@ -565,7 +565,7 @@ METHOD(imv_agent_if_t, batch_ending, TNC_Result,
                                                                                                TRUE);
                        out_msg->add_attribute(out_msg, attr);
 
-                       hcd_state->set_subtype(hcd_state, msg_types[i].type);   
+                       hcd_state->set_subtype(hcd_state, msg_types[i].type);
                        received = state->get_action_flags(state);
 
                        if ((received & IMV_HCD_ATTR_MUST) != IMV_HCD_ATTR_MUST)
index 6178c2abdbe027d47215fc1acd9556ac06058eb4..ee790917813e5087bc680908cefd5a0881dedf20 100644 (file)
@@ -48,7 +48,7 @@ enum pts_pcr_transform_t {
  * PTS Component Evidence Validation Result Flags
  */
 enum pts_comp_evid_validation_t {
-       /** No Validation was attempted */              
+       /** No Validation was attempted */
        PTS_COMP_EVID_VALIDATION_NONE =         0x00,
        /** Attempted validation, unable to verify */
        PTS_COMP_EVID_VALIDATION_UNABLE =       0x20,
@@ -59,7 +59,7 @@ enum pts_comp_evid_validation_t {
 };
 
 /**
- * PTS Functional Component Interface 
+ * PTS Functional Component Interface
  */
 struct pts_comp_evidence_t {
 
@@ -140,7 +140,7 @@ struct pts_comp_evidence_t {
 
 /**
  * Creates a pts_comp_evidence_t object
- * 
+ *
  * @param name                                 Component Functional Name
  * @param depth                                        Sub-component depth
  * @param extended_pcr                 PCR the measurement was extended into
@@ -160,7 +160,7 @@ pts_comp_evidence_t* pts_comp_evidence_create(pts_comp_func_name_t *name,
 /**
  * Determine transform to fit measurement hash into PCR register
  *
- * @param algo                                 Measurement hash algorithm 
+ * @param algo                                 Measurement hash algorithm
  * @param pcr_len                              Length of the PCR registers in bytes
  * @return                                             PCR transform type
  */
index 1ca4458bf0450308e439c6c3052ec6e44845a297..286061a514df72bdfdb0d63fa24a2180c7044543 100644 (file)
@@ -33,7 +33,7 @@ typedef struct pts_component_t pts_component_t;
 #include <bio/bio_writer.h>
 
 /**
- * PTS Functional Component Interface 
+ * PTS Functional Component Interface
  */
 struct pts_component_t {
 
index 9708ad09d600fa40d0266940a941918680ba0dd6..8200e4f00a570cd41fd4f921cc7c23b67edbf777 100644 (file)
@@ -29,7 +29,7 @@ typedef enum pts_tcg_comp_func_name_t pts_tcp_comp_func_name_t;
 /**
  * PTS Component Functional Name Qualifier Flags for the TCG namespace
  * see section 5.2 of PTS Protocol: Binding to TNC IF-M Specification
- *     
+ *
  *      0 1 2 3 4 5
  *  +-+-+-+-+-+-+
  *  |K|S| Type  |
index f5d951e9a756ce0b94b588dabe72b7984e94a2eb..6e8c989cc2ac11a87909d84b114b8898f2e9001b 100644 (file)
@@ -62,7 +62,7 @@ enum pts_dh_group_t {
  * @param dh_groups                            returns set of available DH groups
  * @param mandatory_dh_groups  if TRUE enforce mandatory PTS DH groups
  * @return                                             TRUE if mandatory DH groups are available
- *                                                             or at least one optional DH group if 
+ *                                                             or at least one optional DH group if
  *                                                             mandatory_dh_groups is set to FALSE.
  */
 bool pts_dh_group_probe(pts_dh_group_t *dh_groups, bool mandatory_dh_groups);
index bf5478a5120c40fe2cbcdd72c0eda50a29bf813d..9b70153928a4f94b2502ea37b5b3d6125a23b24b 100644 (file)
@@ -57,7 +57,7 @@ struct pts_ima_event_list_t {
         *
         * @param measurement   Measurement hash
         * @param algo                  Algorithm used to hash files
-        " @param name                  Event name (absolute filename or boot_aggregate) 
+        " @param name                  Event name (absolute filename or boot_aggregate)
         * @return                              Return code
         */
        status_t (*get_next)(pts_ima_event_list_t *this, chunk_t *measurement,
index d7031067972d2b7d668f1f3725cce8cc1307a1b6..36d0ab1f567904df4483c2e253fb0e20bf35daf2 100644 (file)
@@ -47,11 +47,11 @@ extern enum_name_t *pts_meas_algorithm_names;
  * see section 3.8.5 of PTS Protocol: Binding to TNC IF-M Specification
  *
  *                                        1
- *   0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 
+ *   0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
  *  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  *  |1|2|3|R|R|R|R|R|R|R|R|R|R|R|R|R|
  *  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- *  
+ *
  */
 
 /**
index 206d41d110e64b3ddf932456866a8021ebce7816..94edf074d0ba7caa3b71fbc6bad6beea35d3bca7 100644 (file)
@@ -65,14 +65,14 @@ METHOD(swid_gen_t, generate_tag, char*,
 
        /* Compose the SWID generator command */
        if (full || !package || !version)
-       { 
+       {
                snprintf(command, BUF_LEN, "%s swid --entity-name \"%s\" "
                                 "--regid %s --software-id %s%s%s",
                                 this->generator, this->entity, this->regid, sw_id,
                                 full ? " --full" : "", pretty ? " --pretty" : "");
        }
        else
-       { 
+       {
                snprintf(command, BUF_LEN, "%s swid --entity-name \"%s\" "
                                 "--regid %s --name %s --version-string %s%s",
                                 this->generator, this->entity, this->regid, package,
index 848dc1696680b4434a6e58c2ec6ec1609eeecb06..2e0d3296843cde6b8cda64f65c697dcdc5d34576 100644 (file)
@@ -39,7 +39,7 @@ struct swima_collector_t {
         * @return                              Software [Identity] Inventory
         */
        swima_inventory_t* (*collect_inventory)(swima_collector_t *this,
-                                                                                       bool sw_id_only, 
+                                                                                       bool sw_id_only,
                                                                                        swima_inventory_t *targets);
 
        /**
index bce4645f017aeb1850592a75bb6d8e9c4ce06f1f..7f847d8c50fe2c42cc0c6243049d86db674ad63b 100644 (file)
@@ -31,7 +31,7 @@
  */
 
 /**
- * SW_RESPONSE_TOO_LARGE_ERROR 
+ * SW_RESPONSE_TOO_LARGE_ERROR
  *
  *                       1                   2                   3
  *   0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
index 7cd585a04ad63e2f63e1ce1e612b47914d76fdf4..46acf2adf033cf594fd5fd95befe71c16192bc8e 100644 (file)
@@ -219,7 +219,7 @@ pa_tnc_attr_t* tcg_seg_attr_seg_env_create(chunk_t segment, uint8_t flags,
        *this->value.ptr = flags;
        memcpy(this->value.ptr + TCG_SEG_ATTR_SEG_ENV_HEADER,
                   segment.ptr, segment.len);
-       
+
        return &this->public.pa_tnc_attribute;
 }
 
index 5ad3a518a70da37f5494566ddd2b15ccf93a53cc..f06fc293cfbca4baeee9d0cb119ed5742f8d12fe 100644 (file)
@@ -38,7 +38,7 @@ struct mgf1_t {
 
        /**
         * Hash the seed before using it as a seed for MGF1
-        * 
+        *
         * @param yes           TRUE if seed has to be hashed first
         */
        void (*set_hash_seed)(mgf1_t *this, bool yes);
index f83dbfc7e5879ad389dfc9206a05a4a3350a0db9..565af505f198843e978210f582f0a0f3adb08952 100644 (file)
@@ -60,7 +60,7 @@ METHOD(ntt_fft_t, get_modulus, uint16_t,
  *
  * x[i1] ---|+|------- x[i1]
  *        \/
- *        /\    w[iw]  
+ *        /\    w[iw]
  * x[i2] ---|-|--|*|-- x[i2]
  *
  */
@@ -147,7 +147,7 @@ METHOD(ntt_fft_t, transform, void,
                                {
                                        iw = s * (inverse ? (n - i * k) : (i * k));
                                        butterfly(this, b, t + i, t + i + m, iw);
-                               }                               
+                               }
                        }
                        t += 2*m;
                }
@@ -169,7 +169,7 @@ METHOD(ntt_fft_t, transform, void,
 
        /**
         * Compensate the linear phase needed for negative wrapped convolution
-        * and normalize the output array with 1/n mod q after the inverse FFT. 
+        * and normalize the output array with 1/n mod q after the inverse FFT.
         */
        if (inverse)
        {
index 4daac272a19d9da7a56b4aea3ea041cbc9709bc1..fc3afc22446590e7de3daf805338ae052938e3c5 100644 (file)
@@ -563,7 +563,7 @@ static const uint16_t wi_12289_512[] = {
  * Bit-reversed indices for n = 512
  */
 static const uint16_t rev_512[] = {
-         0, 256, 128, 384,  64, 320, 192, 448,  32, 288, 
+         0, 256, 128, 384,  64, 320, 192, 448,  32, 288,
        160, 416,  96, 352, 224, 480,  16, 272, 144, 400,
         80, 336, 208, 464,  48, 304, 176, 432, 112, 368,
        240, 496,   8, 264, 136, 392,  72, 328, 200, 456,
index 5ff2b958828efaffc65b9cf4cf6ffbaf8a1e417e..b027fc04b039a2eddedf3715ffa37826e51dbf33 100644 (file)
@@ -32,7 +32,7 @@
 static inline uint32_t ntt_fft_mreduce(uint32_t x, const ntt_fft_params_t *p)
 {
        uint32_t m, t;
-       
+
        m = (x * p->q_inv) & p->rmask;
        t = (x + m * p->q) >> p->rlog;
 
index 2a0f3bd55290a5bd859f853ac01edc3ca1719625..d23b5bd390be6266659f42fab1517e60855210fc 100644 (file)
@@ -39,7 +39,7 @@ START_TEST(test_ntt_fft_impulse)
                x[i] = 0;
        }
        x[0] = 1;
+
        fft = ntt_fft_create(fft_params[_i]);
        fft->transform(fft, x, X, FALSE);
 
@@ -72,7 +72,7 @@ START_TEST(test_ntt_fft_wrap)
        }
        fft = ntt_fft_create(fft_params[_i]);
        ck_assert(fft->get_size(fft) == n);
-       ck_assert(fft->get_modulus(fft) == q); 
+       ck_assert(fft->get_modulus(fft) == q);
        fft->transform(fft, x, X, FALSE);
 
        for (j = 0; j < n; j++)
@@ -92,7 +92,7 @@ START_TEST(test_ntt_fft_wrap)
                }
                y[j] = 0;
        }
-       fft->destroy(fft);  
+       fft->destroy(fft);
 }
 END_TEST
 
index 018ae0efaec8b9e8138c953a565d46fe407c31d3..b894abf225e3db3d52d27d5d896ab58047437525 100644 (file)
@@ -131,7 +131,7 @@ bliss_huffman_coder_t *bliss_huffman_coder_create(bliss_huffman_code_t *code,
                },
                .packer = packer,
                .code = code,
-               .index_max = (2*code->n_z2 - 1) * code->n_z1,           
+               .index_max = (2*code->n_z2 - 1) * code->n_z1,
        );
 
        return &this->public;
index fb29d662285e09055d6a141269a3e8403b865d5c..84de486a133671bd8f8e9da8208170b644c9b9d6 100644 (file)
@@ -185,7 +185,7 @@ METHOD(bliss_sampler_t, gaussian, bool,
                                return FALSE;
                        }
                        if (x || y || u)
-                       { 
+                       {
                                break;
                        }
                }
index f4e1bff3001243784e3da342a1b01c696d502475..948c6418d2da18c34dc328b466050c80fc247067 100644 (file)
@@ -102,7 +102,7 @@ METHOD(bliss_signature_t, get_encoding, chunk_t,
        encoding = packer->extract_buf(packer);
 
        DBG2(DBG_LIB, "efficiency of Huffman coder is %6.4f bits/tuple (%u bits)",
-                                  coder->get_bits(coder)/(double)(this->set->n), 
+                                  coder->get_bits(coder)/(double)(this->set->n),
                                   coder->get_bits(coder));
        DBG2(DBG_LIB, "generated BLISS signature (%u bits encoded in %u bytes)",
                                   packer->get_bits(packer), encoding.len);
index 2740a55b4cca70d8abb3f2be9e813c6baa32577a..3b8127ef2f5fb1b0bf14a8848c59f4421276caff 100644 (file)
@@ -65,7 +65,7 @@ METHOD(xof_t, get_bytes, bool,
        }
 
        /* copy whole stream blocks directly to output buffer */
-       blocks = (out_len - index) / CHACHA_BLOCK_SIZE; 
+       blocks = (out_len - index) / CHACHA_BLOCK_SIZE;
        while (blocks--)
        {
                if (!this->drv->chacha(this->drv, buffer + index))
@@ -73,8 +73,8 @@ METHOD(xof_t, get_bytes, bool,
                        return FALSE;
                }
                index += CHACHA_BLOCK_SIZE;
-       }       
-       
+       }
+
        /* refill the stream buffer if some more output bytes are needed */
        len = out_len - index;
        if (len)
@@ -85,8 +85,8 @@ METHOD(xof_t, get_bytes, bool,
                }
                memcpy(buffer + index, this->stream, len);
                this->stream_index = len;
-       }               
-       
+       }
+
        return TRUE;
 }
 
index 5ba9f94bd3aca9db14421a4a981d26145a03694c..e7bcbe37f2faae540ab624999264e10b7edf024e 100644 (file)
@@ -140,7 +140,7 @@ newhope_noise_t *newhope_noise_create(chunk_t seed)
        {
                DBG1(DBG_LIB, "could not instantiate ChaCha20 stream");
                return NULL;
-       }       
+       }
 
        INIT(this,
                .public = {
index 4aed60e30fb00f9d6e97298a8b712bb2b2227b05..1021d10ec1e26efc5a4b51a131e010ccd9d79d06 100644 (file)
@@ -14,7 +14,7 @@
  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  * for more details.
- * 
+ *
  */
 
 #include "newhope_reconciliation.h"
@@ -166,7 +166,7 @@ METHOD(newhope_reconciliation_t, reconcile, chunk_t,
                        i2 = i1 + this->n4;
                        i3 = i2 + this->n4;
 
-                       tmp[0] = this->q16 + 8 * (int32_t)v[i0] - 
+                       tmp[0] = this->q16 + 8 * (int32_t)v[i0] -
                                         this->q  * (2*r[i0] + r[i3]);
                        tmp[1] = this->q16 + 8 * (int32_t)v[i1] -
                                         this->q  * (2*r[i1] + r[i3]);
index 7cbf0d2083998f8b4b85975dc233222efe2749b8..4c1239efc1f4923339812d083f1efdb62e55f1ed 100644 (file)
@@ -35,7 +35,7 @@ struct newhope_reconciliation_t {
         * Generate reconciliation polynomial
         *
         * @param v                     polynomial v
-        * @param rbits         pseudo random bit array 
+        * @param rbits         pseudo random bit array
         * @return                      return array with reconciliation polynomial
         */
        uint8_t* (*help_reconcile)(newhope_reconciliation_t *this,
index 96dd16787bfa1a32c5bb74e0a1dead76ad6cc282..7d5942a7e5adff2331c64a071671e49de8df8a00 100644 (file)
@@ -151,7 +151,7 @@ static noise_t noises[] = {
                0x98, 0x10, 0x39, 0xce, 0x17, 0x66, 0xaa, 0x25, 0x42, 0xb0,
                0x5d, 0xb3, 0xbd, 0x80, 0x9a, 0xb1, 0x42, 0x48, 0x9d, 0x5d,
                0xbf, 0xe1, 0x27, 0x3e, 0x73, 0x99, 0x63, 0x7b, 0x4b, 0x32,
-               0x13, 0x76, 0x8a, 0xaa }, 
+               0x13, 0x76, 0x8a, 0xaa },
          { 12283,     1, 12288,     4,     0, 12285,     5,     1,     1,     2,
                    3,     4, 12288,     0,     3,     1,     1,     0, 12286,     6,
                    1,     0,     1,     0,     4,     2, 12288,     3,     0,     5,
@@ -263,7 +263,7 @@ static noise_t noises[] = {
                0xaa, 0x5a, 0x8e, 0xca, 0x00, 0xbb, 0xb4, 0xa7, 0x3b, 0xda,
                0xd1, 0x92, 0xb5, 0xc4, 0x2f, 0x73, 0xf2, 0xfd, 0x4e, 0x27,
                0x36, 0x44, 0xc8, 0xb3, 0x61, 0x25, 0xa6, 0x4a, 0xdd, 0xeb,
-               0x00, 0x6c, 0x13, 0xa0 }, 
+               0x00, 0x6c, 0x13, 0xa0 },
          {     5,     4,     4, 12288, 12286,     1, 12287, 12288,     2, 12288,
                12288, 12287,     2,     2, 12284, 12288, 12288,     3,     2,     3,
                12287,     2,     2,     0,     0,     2,     5, 12285,     5, 12287,
@@ -366,7 +366,7 @@ static noise_t noises[] = {
                    0, 12287, 12288,     2, 12288, 12284, 12288, 12285,     4,     1,
                12288, 12284, 12287,     4, 12284,     1,     3, 12284, 12282,     0,
                12286, 12287,     2, 12286,     3,     4,     2, 12288,     3,     3,
-                   1,     3, 12287, 12283 } 
+                   1,     3, 12287, 12283 }
        },
        { 0x01, 0x01,   /* polynomial e' */
          { 0x58, 0xd8, 0x6a, 0xcd, 0xe2, 0x79, 0x61, 0x98, 0xfd, 0xea,
@@ -375,7 +375,7 @@ static noise_t noises[] = {
                0x41, 0x2b, 0x78, 0x88, 0x58, 0x6d, 0x58, 0x47, 0x3e, 0xb7,
                0x46, 0x60, 0xd8, 0x2f, 0xa0, 0x83, 0xe4, 0xbc, 0x81, 0xdd,
                0xc6, 0x29, 0x8b, 0xee, 0xf9, 0xec, 0x90, 0x39, 0x9d, 0x46,
-               0xbf, 0x2d, 0x7c, 0xdf }, 
+               0xbf, 0x2d, 0x7c, 0xdf },
          { 12287,     3,     3,     1, 12285,     4,     1,     5, 12287, 12285,
                12285, 12285,     1, 12288, 12287, 12288,     2,     3, 12283, 12288,
                12285,     0,     0, 12286, 12287, 12288, 12288, 12288, 12288,     1,
@@ -487,7 +487,7 @@ static noise_t noises[] = {
                0xd1, 0x25, 0xf2, 0x84, 0xd7, 0xee, 0xd5, 0x53, 0x86, 0x5b,
                0xa3, 0x93, 0x4e, 0xee, 0xc7, 0x5b, 0xe5, 0x52, 0x68, 0x19,
                0xdf, 0x63, 0xfb, 0x91, 0x3d, 0xe9, 0x5d, 0xd6, 0xeb, 0x81,
-               0x3d, 0xac, 0xf1, 0xad }, 
+               0x3d, 0xac, 0xf1, 0xad },
          { 12286, 12286,     1, 12287,     1, 12286, 12287, 12287, 12284,     1,
                12287,     2, 12284,     0,     2, 12288,     0,     1,     0, 12285,
                12288,     4,     2, 12287, 12282, 12288, 12285, 12288,     2, 12288,
index 4432e34d6b52c401d1d200e5820a012a4269c50b..dec316a5d5533c7cbb54d78a978ff24a845ba978 100644 (file)
@@ -242,57 +242,57 @@ static uint8_t rbits[] = {
 };
 
 static uint8_t r_ref[] = {
-       0, 3, 3, 1, 1, 1, 0, 1, 0, 3, 2, 0, 1, 1, 3, 0, 2, 1, 0, 3, 
-       2, 1, 2, 3, 3, 0, 2, 0, 1, 3, 3, 2, 3, 3, 0, 3, 0, 2, 2, 0, 
-       1, 1, 2, 0, 1, 1, 2, 1, 3, 0, 0, 3, 1, 1, 0, 0, 0, 2, 0, 1, 
-       0, 2, 3, 1, 3, 0, 3, 1, 0, 0, 2, 1, 3, 3, 1, 3, 2, 1, 0, 2, 
-       0, 0, 3, 3, 0, 1, 2, 2, 0, 1, 0, 3, 2, 2, 1, 1, 3, 0, 3, 3, 
-       2, 2, 0, 2, 1, 0, 0, 0, 3, 0, 3, 1, 2, 1, 1, 0, 3, 3, 2, 1, 
-       3, 3, 2, 2, 1, 3, 0, 0, 2, 2, 3, 1, 1, 2, 2, 2, 0, 2, 0, 2, 
-       0, 0, 1, 2, 2, 2, 3, 1, 2, 0, 3, 0, 1, 3, 2, 3, 3, 1, 1, 2, 
-       0, 0, 2, 1, 2, 2, 0, 2, 2, 2, 2, 1, 1, 3, 1, 3, 3, 1, 2, 2, 
-       3, 0, 1, 0, 0, 2, 2, 1, 3, 2, 2, 2, 3, 1, 1, 0, 0, 3, 2, 3, 
-       0, 0, 3, 3, 2, 2, 2, 2, 1, 1, 0, 1, 2, 1, 3, 2, 0, 3, 0, 2, 
-       3, 3, 3, 3, 2, 3, 3, 3, 3, 2, 1, 0, 2, 3, 2, 1, 2, 0, 3, 0, 
-       2, 2, 1, 1, 2, 1, 2, 0, 1, 2, 1, 3, 0, 0, 2, 3, 0, 3, 1, 0, 
-       2, 2, 2, 1, 2, 0, 3, 1, 0, 0, 3, 0, 2, 3, 1, 0, 2, 3, 3, 0, 
-       0, 0, 3, 0, 2, 3, 2, 0, 2, 2, 1, 0, 1, 2, 1, 3, 3, 3, 1, 2, 
-       1, 2, 3, 1, 1, 2, 2, 0, 3, 0, 3, 3, 1, 3, 3, 3, 1, 3, 0, 3, 
-       0, 0, 1, 2, 1, 0, 3, 0, 0, 2, 1, 3, 3, 3, 1, 1, 2, 3, 1, 0, 
-       1, 1, 3, 3, 0, 3, 1, 3, 1, 2, 2, 2, 1, 3, 1, 2, 1, 3, 0, 1, 
-       2, 2, 2, 3, 3, 2, 2, 3, 1, 2, 2, 1, 2, 1, 0, 0, 0, 1, 3, 2, 
-       0, 3, 1, 1, 2, 1, 3, 2, 3, 2, 0, 1, 0, 1, 3, 0, 2, 3, 1, 3, 
-       0, 1, 1, 3, 1, 1, 1, 0, 2, 3, 2, 1, 2, 0, 3, 3, 2, 0, 1, 0, 
-       3, 3, 3, 1, 2, 2, 1, 0, 3, 3, 0, 2, 3, 1, 1, 1, 3, 3, 1, 3, 
-       3, 0, 1, 0, 2, 0, 1, 1, 0, 0, 3, 2, 2, 3, 0, 2, 2, 0, 1, 1, 
-       1, 3, 1, 1, 1, 0, 1, 2, 3, 2, 2, 3, 1, 1, 3, 3, 3, 1, 2, 0, 
-       0, 0, 2, 2, 2, 3, 2, 0, 0, 1, 3, 0, 0, 0, 2, 0, 1, 0, 3, 0, 
-       3, 1, 0, 1, 1, 1, 2, 2, 2, 0, 0, 2, 2, 0, 3, 1, 0, 2, 2, 0, 
-       2, 0, 0, 1, 1, 0, 1, 2, 3, 2, 3, 2, 3, 3, 3, 0, 2, 1, 2, 2, 
-       1, 0, 1, 1, 1, 2, 1, 3, 2, 0, 3, 3, 0, 0, 1, 1, 1, 2, 2, 2, 
-       0, 1, 1, 2, 0, 2, 0, 1, 2, 0, 1, 3, 2, 2, 3, 0, 0, 1, 1, 2, 
-       3, 1, 2, 0, 3, 0, 2, 1, 0, 0, 0, 1, 1, 1, 1, 3, 0, 0, 0, 3, 
-       2, 3, 2, 1, 0, 3, 1, 1, 1, 1, 3, 0, 0, 1, 1, 1, 0, 3, 2, 2, 
-       3, 1, 1, 3, 0, 1, 1, 3, 0, 3, 2, 2, 0, 3, 1, 3, 1, 0, 0, 1, 
-       1, 0, 0, 1, 0, 3, 2, 2, 0, 1, 3, 0, 1, 3, 3, 2, 1, 3, 1, 1, 
-       3, 3, 2, 1, 1, 3, 1, 0, 2, 1, 1, 3, 3, 3, 1, 3, 1, 3, 0, 1, 
-       2, 2, 0, 3, 3, 2, 1, 1, 1, 3, 0, 2, 0, 3, 3, 1, 2, 3, 1, 3, 
-       0, 0, 0, 1, 3, 3, 0, 2, 3, 0, 1, 3, 0, 0, 3, 0, 2, 2, 3, 3, 
-       3, 3, 2, 1, 0, 3, 1, 1, 1, 2, 2, 0, 3, 2, 0, 2, 2, 3, 1, 0, 
-       3, 3, 1, 2, 3, 0, 1, 1, 0, 3, 3, 1, 1, 3, 0, 2, 1, 2, 2, 2, 
-       2, 3, 2, 3, 0, 0, 3, 1, 1, 0, 3, 2, 3, 2, 3, 3, 2, 2, 3, 1, 
-       3, 2, 1, 0, 1, 0, 2, 2, 1, 3, 1, 2, 3, 3, 1, 3, 2, 1, 3, 2, 
-       2, 3, 1, 1, 3, 3, 3, 3, 2, 0, 0, 3, 3, 3, 2, 3, 2, 0, 3, 0, 
-       3, 1, 2, 0, 3, 0, 2, 2, 2, 3, 1, 2, 2, 1, 3, 3, 0, 1, 3, 0, 
-       0, 1, 3, 2, 1, 1, 0, 1, 3, 3, 1, 1, 0, 1, 2, 2, 2, 0, 2, 3, 
-       1, 2, 1, 1, 3, 2, 3, 3, 1, 0, 1, 3, 2, 3, 2, 2, 1, 2, 3, 1, 
-       3, 2, 3, 1, 3, 3, 0, 3, 1, 1, 3, 2, 1, 2, 2, 0, 1, 1, 2, 3, 
-       1, 3, 0, 0, 3, 0, 3, 0, 1, 2, 0, 2, 2, 3, 2, 0, 0, 0, 3, 0, 
-       2, 0, 0, 2, 2, 2, 3, 1, 3, 2, 3, 2, 0, 1, 2, 1, 1, 3, 0, 3, 
-       2, 0, 2, 2, 3, 2, 1, 0, 1, 1, 0, 2, 0, 3, 2, 0, 2, 3, 1, 3, 
-       2, 2, 2, 2, 3, 1, 0, 2, 3, 3, 3, 2, 0, 0, 3, 3, 1, 2, 2, 3, 
-       0, 1, 1, 1, 3, 2, 1, 0, 0, 1, 2, 3, 3, 0, 1, 1, 1, 1, 0, 1, 
-       0, 2, 3, 3, 3, 3, 0, 2, 3, 0, 1, 0, 0, 1, 1, 3, 2, 2, 0, 0, 
+       0, 3, 3, 1, 1, 1, 0, 1, 0, 3, 2, 0, 1, 1, 3, 0, 2, 1, 0, 3,
+       2, 1, 2, 3, 3, 0, 2, 0, 1, 3, 3, 2, 3, 3, 0, 3, 0, 2, 2, 0,
+       1, 1, 2, 0, 1, 1, 2, 1, 3, 0, 0, 3, 1, 1, 0, 0, 0, 2, 0, 1,
+       0, 2, 3, 1, 3, 0, 3, 1, 0, 0, 2, 1, 3, 3, 1, 3, 2, 1, 0, 2,
+       0, 0, 3, 3, 0, 1, 2, 2, 0, 1, 0, 3, 2, 2, 1, 1, 3, 0, 3, 3,
+       2, 2, 0, 2, 1, 0, 0, 0, 3, 0, 3, 1, 2, 1, 1, 0, 3, 3, 2, 1,
+       3, 3, 2, 2, 1, 3, 0, 0, 2, 2, 3, 1, 1, 2, 2, 2, 0, 2, 0, 2,
+       0, 0, 1, 2, 2, 2, 3, 1, 2, 0, 3, 0, 1, 3, 2, 3, 3, 1, 1, 2,
+       0, 0, 2, 1, 2, 2, 0, 2, 2, 2, 2, 1, 1, 3, 1, 3, 3, 1, 2, 2,
+       3, 0, 1, 0, 0, 2, 2, 1, 3, 2, 2, 2, 3, 1, 1, 0, 0, 3, 2, 3,
+       0, 0, 3, 3, 2, 2, 2, 2, 1, 1, 0, 1, 2, 1, 3, 2, 0, 3, 0, 2,
+       3, 3, 3, 3, 2, 3, 3, 3, 3, 2, 1, 0, 2, 3, 2, 1, 2, 0, 3, 0,
+       2, 2, 1, 1, 2, 1, 2, 0, 1, 2, 1, 3, 0, 0, 2, 3, 0, 3, 1, 0,
+       2, 2, 2, 1, 2, 0, 3, 1, 0, 0, 3, 0, 2, 3, 1, 0, 2, 3, 3, 0,
+       0, 0, 3, 0, 2, 3, 2, 0, 2, 2, 1, 0, 1, 2, 1, 3, 3, 3, 1, 2,
+       1, 2, 3, 1, 1, 2, 2, 0, 3, 0, 3, 3, 1, 3, 3, 3, 1, 3, 0, 3,
+       0, 0, 1, 2, 1, 0, 3, 0, 0, 2, 1, 3, 3, 3, 1, 1, 2, 3, 1, 0,
+       1, 1, 3, 3, 0, 3, 1, 3, 1, 2, 2, 2, 1, 3, 1, 2, 1, 3, 0, 1,
+       2, 2, 2, 3, 3, 2, 2, 3, 1, 2, 2, 1, 2, 1, 0, 0, 0, 1, 3, 2,
+       0, 3, 1, 1, 2, 1, 3, 2, 3, 2, 0, 1, 0, 1, 3, 0, 2, 3, 1, 3,
+       0, 1, 1, 3, 1, 1, 1, 0, 2, 3, 2, 1, 2, 0, 3, 3, 2, 0, 1, 0,
+       3, 3, 3, 1, 2, 2, 1, 0, 3, 3, 0, 2, 3, 1, 1, 1, 3, 3, 1, 3,
+       3, 0, 1, 0, 2, 0, 1, 1, 0, 0, 3, 2, 2, 3, 0, 2, 2, 0, 1, 1,
+       1, 3, 1, 1, 1, 0, 1, 2, 3, 2, 2, 3, 1, 1, 3, 3, 3, 1, 2, 0,
+       0, 0, 2, 2, 2, 3, 2, 0, 0, 1, 3, 0, 0, 0, 2, 0, 1, 0, 3, 0,
+       3, 1, 0, 1, 1, 1, 2, 2, 2, 0, 0, 2, 2, 0, 3, 1, 0, 2, 2, 0,
+       2, 0, 0, 1, 1, 0, 1, 2, 3, 2, 3, 2, 3, 3, 3, 0, 2, 1, 2, 2,
+       1, 0, 1, 1, 1, 2, 1, 3, 2, 0, 3, 3, 0, 0, 1, 1, 1, 2, 2, 2,
+       0, 1, 1, 2, 0, 2, 0, 1, 2, 0, 1, 3, 2, 2, 3, 0, 0, 1, 1, 2,
+       3, 1, 2, 0, 3, 0, 2, 1, 0, 0, 0, 1, 1, 1, 1, 3, 0, 0, 0, 3,
+       2, 3, 2, 1, 0, 3, 1, 1, 1, 1, 3, 0, 0, 1, 1, 1, 0, 3, 2, 2,
+       3, 1, 1, 3, 0, 1, 1, 3, 0, 3, 2, 2, 0, 3, 1, 3, 1, 0, 0, 1,
+       1, 0, 0, 1, 0, 3, 2, 2, 0, 1, 3, 0, 1, 3, 3, 2, 1, 3, 1, 1,
+       3, 3, 2, 1, 1, 3, 1, 0, 2, 1, 1, 3, 3, 3, 1, 3, 1, 3, 0, 1,
+       2, 2, 0, 3, 3, 2, 1, 1, 1, 3, 0, 2, 0, 3, 3, 1, 2, 3, 1, 3,
+       0, 0, 0, 1, 3, 3, 0, 2, 3, 0, 1, 3, 0, 0, 3, 0, 2, 2, 3, 3,
+       3, 3, 2, 1, 0, 3, 1, 1, 1, 2, 2, 0, 3, 2, 0, 2, 2, 3, 1, 0,
+       3, 3, 1, 2, 3, 0, 1, 1, 0, 3, 3, 1, 1, 3, 0, 2, 1, 2, 2, 2,
+       2, 3, 2, 3, 0, 0, 3, 1, 1, 0, 3, 2, 3, 2, 3, 3, 2, 2, 3, 1,
+       3, 2, 1, 0, 1, 0, 2, 2, 1, 3, 1, 2, 3, 3, 1, 3, 2, 1, 3, 2,
+       2, 3, 1, 1, 3, 3, 3, 3, 2, 0, 0, 3, 3, 3, 2, 3, 2, 0, 3, 0,
+       3, 1, 2, 0, 3, 0, 2, 2, 2, 3, 1, 2, 2, 1, 3, 3, 0, 1, 3, 0,
+       0, 1, 3, 2, 1, 1, 0, 1, 3, 3, 1, 1, 0, 1, 2, 2, 2, 0, 2, 3,
+       1, 2, 1, 1, 3, 2, 3, 3, 1, 0, 1, 3, 2, 3, 2, 2, 1, 2, 3, 1,
+       3, 2, 3, 1, 3, 3, 0, 3, 1, 1, 3, 2, 1, 2, 2, 0, 1, 1, 2, 3,
+       1, 3, 0, 0, 3, 0, 3, 0, 1, 2, 0, 2, 2, 3, 2, 0, 0, 0, 3, 0,
+       2, 0, 0, 2, 2, 2, 3, 1, 3, 2, 3, 2, 0, 1, 2, 1, 1, 3, 0, 3,
+       2, 0, 2, 2, 3, 2, 1, 0, 1, 1, 0, 2, 0, 3, 2, 0, 2, 3, 1, 3,
+       2, 2, 2, 2, 3, 1, 0, 2, 3, 3, 3, 2, 0, 0, 3, 3, 1, 2, 2, 3,
+       0, 1, 1, 1, 3, 2, 1, 0, 0, 1, 2, 3, 3, 0, 1, 1, 1, 1, 0, 1,
+       0, 2, 3, 3, 3, 3, 0, 2, 3, 0, 1, 0, 0, 1, 1, 3, 2, 2, 0, 0,
        2, 2, 1, 3
 };
 
index 31594b1f6c7a76ceca419d8a3495e72d499dd972..25b2f6daf6930aa839da0357d794eb65fc05c273 100644 (file)
@@ -91,7 +91,7 @@ void ntru_indices_2_trits(uint16_t in_len, uint16_t const *in, bool plus1,
                                                  uint8_t *out);
 
 /**
- * Unpacks an array of N trits and creates a list of array indices 
+ * Unpacks an array of N trits and creates a list of array indices
  * corresponding to trits = +1, and list of array indices corresponding to
  * trits = -1.
  *
index b2fca2f7f70de261f77fd8655735fb17a73729d0..3ab5db409af1aa3a9e150ab92075303a4598fe1b 100644 (file)
@@ -321,7 +321,7 @@ ntru_poly_t *ntru_poly_create_from_seed(ext_out_function_t mgf1_type,
                /* generate indices for a single polynomial */
                while (num_indices)
                {
-                       /* generate a random candidate index with a size of c_bits */           
+                       /* generate a random candidate index with a size of c_bits */
                        do
                        {
                                if (!bitspender->get_bits(bitspender, c_bits, &index))
index 642384febaf24e1b2f4e539baba973944d497422..b1bcc7588d4f74fa45510e10b056e53c82fa88bd 100644 (file)
@@ -27,7 +27,7 @@ typedef struct ntru_poly_t ntru_poly_t;
 #include <crypto/xofs/xof.h>
 
 /**
- * Implements a trinary polynomial storing the indices of non-zero coefficients 
+ * Implements a trinary polynomial storing the indices of non-zero coefficients
  */
 struct ntru_poly_t {
 
index 642a35ca55f5231c43fb1108cb9eac5b5dcccd5f..1acab3b15d222e14e05c336601d39aee29740871 100644 (file)
@@ -146,7 +146,7 @@ METHOD(ntru_private_key_t, get_encoding, chunk_t,
        return this->encoding;
 }
 
-/** 
+/**
  * Checks that the number of 0, +1, and -1 trinary ring elements meet or exceed
  * a minimum weight.
  *
@@ -596,7 +596,7 @@ static bool ring_inv(uint16_t *a, uint16_t N, uint16_t q, uint16_t *t,
                        f[i] ^= g[i];
                }
                if (deg_c > deg_b)
-               {       
+               {
                        deg_b = deg_c;
                }
                for (i = 0; i <= deg_c; i++)
@@ -633,7 +633,7 @@ static bool ring_inv(uint16_t *a, uint16_t N, uint16_t q, uint16_t *t,
                t[0] = t[0] + 2;
                ring_mult_c(t2, t, N, q, a_inv);
        }
-       
+
        return TRUE;
 }
 
@@ -692,7 +692,7 @@ ntru_private_key_t *ntru_private_key_create(ntru_drbg_t *drbg,
        t = malloc(t_len);
        t1 = t + 2 * params->N;
 
-       /* extend sparse private key polynomial f to N array elements */ 
+       /* extend sparse private key polynomial f to N array elements */
        this->privkey->get_array(this->privkey, t1);
 
        /* set mask for large modulus */
@@ -707,7 +707,7 @@ ntru_private_key_t *ntru_private_key_create(ntru_drbg_t *drbg,
 
        /* use the public key array as a temporary buffer */
        t2 = this->pubkey;
+
        /* find f^-1 in (Z/qZ)[X]/(X^N - 1) */
        if (!ring_inv(t1, params->N, params->q, t, t2))
        {
@@ -743,7 +743,7 @@ ntru_private_key_t *ntru_private_key_create(ntru_drbg_t *drbg,
        chunk_clear(&seed);
        memwipe(t, t_len);
        free(t);
-       
+
        /* generate private key encoding */
        generate_encoding(this);
 
@@ -821,7 +821,7 @@ ntru_private_key_t *ntru_private_key_create_from_data(ntru_drbg_t *drbg,
             privkey_packed_indices_len <= privkey_packed_trits_len)
                {
                        tag = NTRU_PRIVKEY_INDICES_TAG;
-               }               
+               }
                else
                {
                        tag = NTRU_PRIVKEY_TRITS_TAG;
@@ -858,7 +858,7 @@ ntru_private_key_t *ntru_private_key_create_from_data(ntru_drbg_t *drbg,
        indices = malloc(2 * dF * sizeof(uint16_t));
 
        /* unpack the private key */
-       privkey_packed = data.ptr + header_len + pubkey_packed_len;     
+       privkey_packed = data.ptr + header_len + pubkey_packed_len;
        if (tag == NTRU_PRIVKEY_TRITS_TAG)
        {
                ntru_packed_trits_2_indices(privkey_packed, params->N,
index 0bbbcc178b13c237c105cca512734c3336dccac2..17bd2ac02cfcf29eb4e6b7eac1c7dafa3c829f05 100644 (file)
@@ -103,7 +103,7 @@ ntru_trits_t *ntru_trits_create(size_t len, ext_out_function_t alg,
                        return NULL;
                }
                if (octet < 243)  /* 243 = 3^5 */
-               {               
+               {
                        ntru_octet_2_trits(octet, (trits_needed < 5) ? buf : trits);
                        if (trits_needed < 5)
                        {
index e489aae7a288788b8510efa24e3eaac88750fcf5..8e040ce291fc71d22d2aa39aa4de5a829374b9ac 100644 (file)
@@ -27,7 +27,7 @@ typedef struct ntru_trits_t ntru_trits_t;
 #include <crypto/xofs/xof.h>
 
 /**
- * Implements an array of trinary elements (trits) 
+ * Implements an array of trinary elements (trits)
  */
 struct ntru_trits_t {
 
index 2c602c6a3be9b8fca12ffdce9faf8e828c71b76c..989c542da0cd81850f2c2e8336311a6f6bcfc7e9 100644 (file)
@@ -16,7 +16,7 @@
 #include <crypto/crypto_tester.h>
 
 /**
- * ChaCha20 Stream Test Vector from RFC 7539, Section 2.3.2 
+ * ChaCha20 Stream Test Vector from RFC 7539, Section 2.3.2
  */
 xof_test_vector_t chacha20_xof_1 = {
        .alg = XOF_CHACHA20, .len = 44,
@@ -31,7 +31,7 @@ xof_test_vector_t chacha20_xof_1 = {
 };
 
 /**
- * ChaCha20 Stream Test Vector from RFC 7539, Section 2.4.2 
+ * ChaCha20 Stream Test Vector from RFC 7539, Section 2.4.2
  */
 xof_test_vector_t chacha20_xof_2 = {
        .alg = XOF_CHACHA20, .len = 44,
@@ -50,7 +50,7 @@ xof_test_vector_t chacha20_xof_2 = {
 };
 
 /**
- * ChaCha20 Stream Test Vector #2 from RFC 7539, Section A1. 
+ * ChaCha20 Stream Test Vector #2 from RFC 7539, Section A1.
  */
 xof_test_vector_t chacha20_xof_3 = {
        .alg = XOF_CHACHA20, .len = 44,
@@ -65,7 +65,7 @@ xof_test_vector_t chacha20_xof_3 = {
 };
 
 /**
- * ChaCha20 Stream Test Vector #3 from RFC 7539, Section A1. 
+ * ChaCha20 Stream Test Vector #3 from RFC 7539, Section A1.
  */
 xof_test_vector_t chacha20_xof_4 = {
        .alg = XOF_CHACHA20, .len = 44,
index ebbe7ddaf3100c9f967c7d7c081308b30c676453..36c9cc0d05236e70670e18ae99aee6705f69233e 100644 (file)
@@ -125,7 +125,7 @@ static const asn1Object_t defaultObjects[] = {
        { 1,   "explicit int1", ASN1_CONTEXT_C_1,       ASN1_DEF                        }, /* 1 */
        { 2,     "int1",                ASN1_INTEGER,           ASN1_BODY                       }, /* 2 */
        { 1,   "int2",                  ASN1_INTEGER,           ASN1_DEF|ASN1_BODY      }, /* 3 */
-       { 1,   "implicit int3", ASN1_CONTEXT_S_3,       ASN1_DEF|ASN1_BODY      }, /* 4 */              
+       { 1,   "implicit int3", ASN1_CONTEXT_S_3,       ASN1_DEF|ASN1_BODY      }, /* 4 */
        { 0, "exit",                    ASN1_EOC,                       ASN1_EXIT                       }
 };
 
@@ -204,7 +204,7 @@ static const asn1Object_t optionObjects[] = {
        { 1,   "end opt",               ASN1_EOC,                       ASN1_END                        }, /* 4 */
        { 1,   "int2",                  ASN1_INTEGER,           ASN1_OPT|ASN1_BODY      }, /* 5 */
        { 1,   "end opt",               ASN1_EOC,                       ASN1_END                        }, /* 6 */
-       { 1,   "implicit int3", ASN1_CONTEXT_S_3,       ASN1_OPT|ASN1_BODY      }, /* 7 */              
+       { 1,   "implicit int3", ASN1_CONTEXT_S_3,       ASN1_OPT|ASN1_BODY      }, /* 7 */
        { 1,   "end opt",               ASN1_EOC,                       ASN1_END                        }, /* 8 */
        { 0, "exit",                    ASN1_EOC,                       ASN1_EXIT                       }
 };
index 321feedd1b864b60a07095c83b17ce5f8279b4fd..644f41202499d42460974242bd6617a505c36ead 100644 (file)
@@ -78,7 +78,7 @@ static crypter_aead_t aead[] = {
        { ENCR_AES_CBC, FALSE },
        { ENCR_CAMELLIA_CBC, FALSE }
 };
-     
+
 START_TEST(test_crypter_is_aead)
 {
        ck_assert(encryption_algorithm_is_aead(aead[_i].alg) == aead[_i].is_aead);
index 2663e3985d76fc74e0f7a2ff35e25efafce9e7a4..227fa802964d1c80b979cd378e85d11e64e78bca 100644 (file)
@@ -443,7 +443,7 @@ static status_t process_tnc_msg(private_pb_tnc_batch_t *this)
        }
 
        if (msg_len < msg_infos[msg_type].min_size ||
-          (msg_infos[msg_type].exact_size && 
+          (msg_infos[msg_type].exact_size &&
                msg_len != msg_infos[msg_type].min_size))
        {
                DBG1(DBG_TNC, "%N/%N message length must be %s %u bytes but is %u bytes",
index 34fc2088656cb89a988e72504b921009187663b8..8fdc0d24cb787a57d7e4054b0f77f1d75af83028 100644 (file)
@@ -104,7 +104,7 @@ struct pb_error_msg_t {
  */
 pb_tnc_msg_t* pb_error_msg_create(bool fatal, uint32_t vendor_id,
                                                                  pb_tnc_error_code_t error_code);
-       
+
 /**
  * Create a PB-Error message from parameters with offset field
  *
index f73f1162760ff388b685e5551f01c1374ed0f0f0..91b803b192a73e5a0257a352f0a3601b2eaabc34 100644 (file)
@@ -80,7 +80,7 @@ struct pb_pa_msg_t {
  * Create a PB-PA message from parameters
  *
  * @param vendor_id                    PA Message Vendor ID
- * @param subtype                      PA Subtype              
+ * @param subtype                      PA Subtype
  * @param collector_id         Posture Collector ID
  * @param validator_id         Posture Validator ID
  * @param excl                         Exclusive Flag
index 7c518e8d5cf4715b94ec95744198808cd566b337..3b50d9d98618ce459c1afcc94e94e47f24dd637b 100644 (file)
@@ -62,7 +62,7 @@ typedef struct private_pb_pdp_referral_msg_t private_pb_pdp_referral_msg_t;
  *   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
  *
  *   Section 3.1.1.2.3 IPv6 Identifier
- * 
+ *
  *    0                   1                   2                   3
  *    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
  *   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
index 0923c8ba4c11350a29717c4403cceb930262a43e..8161b10b18a27d0c44145067dec0971f529731ff 100644 (file)
@@ -92,7 +92,7 @@ pb_tnc_msg_t* pb_pdp_referral_msg_create(pen_type_t identifier_type,
  * Create a PB-PDP-Referral message of TCG Type PDP FQDN Identifier
  *
  * @param fqdn                         Fully Qualified Domain Name of PDP
- * @param port                         PT-TLS port the PDP is listening on 
+ * @param port                         PT-TLS port the PDP is listening on
  */
 pb_tnc_msg_t* pb_pdp_referral_msg_create_from_fqdn(chunk_t fqdn, uint16_t port);
 
index 5eecb9cca76f3ce08f39fa7b916e8b8da600b5b3..6a35b31eda90fa8cc45a6966e846109a23b4694f 100644 (file)
@@ -144,7 +144,7 @@ METHOD(tncif_identity_t, process, bool,
        reader->read_uint8 (reader, &reserved);
        reader->read_uint24(reader, &vendor_id);
        reader->read_uint32(reader, &type);
-       this->subject_type = pen_type_create(vendor_id, type);          
+       this->subject_type = pen_type_create(vendor_id, type);
 
        reader->read_uint8 (reader, &reserved);
        reader->read_uint24(reader, &vendor_id);
index d96bc493698a20116de39cbb9a4193e7c3c41640..a31d6f04d58875169a157f3ad01c2ce7a977d3f5 100644 (file)
@@ -75,7 +75,7 @@ tpm_rng_t *tpm_rng_create(rng_quality_t quality)
        if (!tpm)
        {
                DBG1(DBG_LIB, "no TPM 2.0 found");
-               return NULL;    
+               return NULL;
        }
 
        INIT(this,
index d2a4b5b5722e6cfedfd380a0bbedc7313bc48ea2..a9cbe99d49d9f2cfc87745524e4cf549a9fbd55b 100644 (file)
@@ -104,7 +104,7 @@ ENUM_END(tpm_ecc_curve_names, TPM_ECC_SM2_P256);
 
 #else /* TSS_TSS2_V1 */
 
-#ifndef TSS_TSS2_V2 
+#ifndef TSS_TSS2_V2
 
 /**
  * TPM 2.0 algorithm ID names
index e71830d4dd0089ad6a9cc8fa917f99fe8edcbcf7..547a4aee749fd4ac086b5f1444166fba4c54ed66 100644 (file)
@@ -2,16 +2,16 @@
 <?cs each:peercfg = peercfgs ?>
   <div class="expand" id="peercfg-<?cs name:peercfg ?>">
     <h1><?cs name:peercfg ?>:
-         <span><?cs var:peercfg.local ?></span> &lt;-&gt; 
-         <span><?cs var:peercfg.remote ?></span>
+      <span><?cs var:peercfg.local ?></span> &lt;-&gt;
+      <span><?cs var:peercfg.remote ?></span>
     </h1>
     <div class="controls">
       <?cs if:peercfg.remote != "%any" ?>
         <a title="initiate SA" href="<?cs var:base ?>/control/initiateike/<?cs name:peercfg ?>">
           <img src="<?cs var:base ?>/static/initiate.png"/>
         </a>
-         <?cs else ?>
-        &nbsp;    
+    <?cs else ?>
+        &nbsp;
       <?cs /if ?>
     </div>
     <div class="expander">
@@ -79,9 +79,9 @@
         <tr class="images">
           <td colspan="2">
             <?cs each:net = childcfg.local.networks ?>
-             <p><?cs var:net ?></p>
+              <p><?cs var:net ?></p>
             <?cs /each ?>
-         </td>
+          </td>
           <td style="background-image:url(<?cs var:base ?>/static/pipe-thin-left.png)">
             <br/><br/><br/>
           </td>
index db36019615b9ce61b12912c307e4ffd1f46e3472..9b151ee8970ce176a63268d9305379414f0a622d 100644 (file)
@@ -1,4 +1,4 @@
-      </div>    
+      </div>
     </div>
   </body>
 </html>
index ee46dbb3cb5c20d16053e6f75c775ee0118ceecb..5d174c4c8d55139d84b97f5c18cefa515c3b4e8f 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml">
   <head>
index f9a8e5c6820874a8647e1ae685b72f4534aa9ae5..88a88c175f30074697f8a2d7e89aca7cdd583f75 100644 (file)
@@ -2,9 +2,9 @@
 <?cs each:ikesa = ikesas ?>
   <div class="expand" id="ikesa-<?cs name:ikesa ?>">
   <h1>
-       <?cs var:ikesa.peerconfig ?> [IKE #<?cs name:ikesa ?>]:
-       <span><?cs var:ikesa.local.identification ?></span> &lt;-&gt; 
-       <span><?cs var:ikesa.remote.identification ?></span>
+    <?cs var:ikesa.peerconfig ?> [IKE #<?cs name:ikesa ?>]:
+    <span><?cs var:ikesa.local.identification ?></span> &lt;-&gt;
+    <span><?cs var:ikesa.remote.identification ?></span>
   </h1>
   <div class="controls">
     <a title="close IKE_SA" href="<?cs var:base ?>/control/terminateike/<?cs name:ikesa ?>">
@@ -33,8 +33,8 @@
           <?cs /if ?>
         </td>
         <td style="background-image:url(<?cs var:base ?>/static/pipe.png)">
-             <?cs var:ikesa.local.spi ?><br/><br/><br/> 
-             <?cs var:ikesa.local.address ?>
+        <?cs var:ikesa.local.spi ?><br/><br/><br/>
+        <?cs var:ikesa.local.address ?>
         </td>
         <td>
           <?cs if:ikesa.local.nat == "true" ?>
@@ -58,8 +58,8 @@
           <?cs /if ?>
         </td>
         <td class="right" style="background-image:url(<?cs var:base ?>/static/pipe.png)">
-             <?cs var:ikesa.remote.spi ?><br/><br/><br/> 
-             <?cs var:ikesa.remote.address ?>
+        <?cs var:ikesa.remote.spi ?><br/><br/><br/>
+        <?cs var:ikesa.remote.address ?>
         </td>
         <td>
           <?cs if:ikesa.role == "responder" ?>
       </tr>
       <?cs each:childsa = ikesa.childsas ?>
       <tr>
-       <td colspan="6" class="expand">
-         <h1><?cs var:childsa.childconfig ?> [IPsec #<?cs name:childsa ?>]:</h1>
+        <td colspan="6" class="expand">
+          <h1><?cs var:childsa.childconfig ?> [IPsec #<?cs name:childsa ?>]:</h1>
         </td>
-       <td class="controls">
-                 <a title="close CHILD_SA" href="<?cs var:base ?>/control/terminatechild/<?cs name:childsa ?>">  
+        <td class="controls">
+        <a title="close CHILD_SA" href="<?cs var:base ?>/control/terminatechild/<?cs name:childsa ?>">
             <img src="<?cs var:base ?>/static/close.png"/>
           </a>
         </td>
         <td colspan="7"><hr/></td>
       </tr>
       <tr class="images">
-       <td colspan="2">
+        <td colspan="2">
           <?cs each:net = childsa.local.networks ?>
-           <p><?cs var:net ?></p>
+            <p><?cs var:net ?></p>
           <?cs /each ?>
-       </td>
-       <td style="background-image:url(<?cs var:base ?>/static/pipe-thin-left-green.png)">
+        </td>
+        <td style="background-image:url(<?cs var:base ?>/static/pipe-thin-left-green.png)">
           <?cs var:childsa.local.spi ?> &lt;-<br/><br/><br/>
-       </td>
-       <td style="background-image:url(<?cs var:base ?>/static/pipe-thin-green.png)">
-       </td>
-       <td class="right" style="background-image:url(<?cs var:base ?>/static/pipe-thin-right-green.png)">
+        </td>
+        <td style="background-image:url(<?cs var:base ?>/static/pipe-thin-green.png)">
+        </td>
+        <td class="right" style="background-image:url(<?cs var:base ?>/static/pipe-thin-right-green.png)">
           -&gt; <?cs var:childsa.remote.spi ?><br/><br/><br/>
-       </td>
-       <td class="right" colspan="2">
+        </td>
+        <td class="right" colspan="2">
           <?cs each:net = childsa.remote.networks ?>
-           <p><?cs var:net ?></p>
+            <p><?cs var:net ?></p>
           <?cs /each ?>
-       </td>
+        </td>
       </tr>
       <?cs /each ?>
     </table>
index dccc5be909dec2672652992ab6f0156478d7cd15..aad352b5470d8007ba713ea410c6f982cc6f6060 100644 (file)
@@ -18,14 +18,14 @@ var jQuery = window.jQuery = function(a,c) {
        // If the context is global, return a new object
        if ( window == this || !this.init )
                return new jQuery(a,c);
-       
+
        return this.init(a,c);
 };
 
 // Map over the $ in case of overwrite
 if ( typeof $ != "undefined" )
        var _$ = $;
-       
+
 // Map the jQuery namespace to the '$' one
 window.$ = jQuery;
 
@@ -81,13 +81,13 @@ jQuery.fn = jQuery.prototype = {
                        // HANDLE: $(*)
                        [ a ] );
        },
-       
+
        jquery: "1.2",
 
        size: function() {
                return this.length;
        },
-       
+
        length: 0,
 
        get: function( num ) {
@@ -99,13 +99,13 @@ jQuery.fn = jQuery.prototype = {
                        // Return just the object
                        this[num];
        },
-       
+
        pushStack: function( a ) {
                var ret = jQuery(a);
                ret.prevObject = this;
                return ret;
        },
-       
+
        setArray: function( a ) {
                this.length = 0;
                Array.prototype.push.apply( this, a );
@@ -126,7 +126,7 @@ jQuery.fn = jQuery.prototype = {
 
        attr: function( key, value, type ) {
                var obj = key;
-               
+
                // Look for the case where we're accessing a style value
                if ( key.constructor == String )
                        if ( value == undefined )
@@ -135,7 +135,7 @@ jQuery.fn = jQuery.prototype = {
                                obj = {};
                                obj[ key ] = value;
                        }
-               
+
                // Check to see if we're setting style values
                return this.each(function(index){
                        // Set all the styles
@@ -206,7 +206,7 @@ jQuery.fn = jQuery.prototype = {
                        this.insertBefore( a, this.firstChild );
                });
        },
-       
+
        before: function() {
                return this.domManip(arguments, false, 1, function(a){
                        this.parentNode.insertBefore( a, this );
@@ -234,7 +234,7 @@ jQuery.fn = jQuery.prototype = {
                var ret = this.map(function(){
                        return this.outerHTML ? jQuery(this.outerHTML)[0] : this.cloneNode(true);
                });
-               
+
                if (events === true) {
                        var clone = ret.find("*").andSelf();
 
@@ -290,19 +290,19 @@ jQuery.fn = jQuery.prototype = {
        hasClass: function(expr) {
                return this.is("." + expr);
        },
-       
+
        val: function( val ) {
                if ( val == undefined ) {
                        if ( this.length ) {
                                var elem = this[0];
-                       
+
                                // We need to handle select boxes special
                                if ( jQuery.nodeName(elem, "select") ) {
                                        var index = elem.selectedIndex,
                                                a = [],
                                                options = elem.options,
                                                one = elem.type == "select-one";
-                                       
+
                                        // Nothing was selected
                                        if ( index < 0 )
                                                return null;
@@ -313,18 +313,18 @@ jQuery.fn = jQuery.prototype = {
                                                if ( option.selected ) {
                                                        // Get the specific value for the option
                                                        var val = jQuery.browser.msie && !option.attributes["value"].specified ? option.text : option.value;
-                                                       
+
                                                        // We don't need an array for one selects
                                                        if ( one )
                                                                return val;
-                                                       
+
                                                        // Multi-Selects return an array
                                                        a.push(val);
                                                }
                                        }
-                                       
+
                                        return a;
-                                       
+
                                // Everything else, we just grab the value
                                } else
                                        return this[0].value.replace(/\r/g, "");
@@ -348,7 +348,7 @@ jQuery.fn = jQuery.prototype = {
                                        this.value = val;
                        });
        },
-       
+
        html: function( val ) {
                return val == undefined ?
                        ( this.length ? this[0].innerHTML : null ) :
@@ -372,9 +372,9 @@ jQuery.fn = jQuery.prototype = {
        andSelf: function() {
                return this.add( this.prevObject );
        },
-       
+
        domManip: function(args, table, dir, fn) {
-               var clone = this.length > 1, a; 
+               var clone = this.length > 1, a;
 
                return this.each(function(){
                        if ( !a ) {
@@ -454,10 +454,10 @@ jQuery.extend({
        // This may seem like some crazy code, but trust me when I say that this
        // is the only cross-browser way to do this. --John
        isFunction: function( fn ) {
-               return !!fn && typeof fn != "string" && !fn.nodeName && 
+               return !!fn && typeof fn != "string" && !fn.nodeName &&
                        fn.constructor != Array && /function/i.test( fn + "" );
        },
-       
+
        // check if an element is in a XML document
        isXMLDoc: function(elem) {
                return elem.documentElement && !elem.body ||
@@ -482,31 +482,31 @@ jQuery.extend({
        nodeName: function( elem, name ) {
                return elem.nodeName && elem.nodeName.toUpperCase() == name.toUpperCase();
        },
-       
+
        cache: {},
-       
+
        data: function( elem, name, data ) {
                elem = elem == window ? win : elem;
 
                var id = elem[ expando ];
 
                // Compute a unique ID for the element
-               if ( !id ) 
+               if ( !id )
                        id = elem[ expando ] = ++uuid;
 
                // Only generate the data cache if we're
                // trying to access or manipulate it
                if ( name && !jQuery.cache[ id ] )
                        jQuery.cache[ id ] = {};
-               
+
                // Prevent overriding the named cache with undefined values
                if ( data != undefined )
                        jQuery.cache[ id ][ name ] = data;
-               
-               // Return the named cache data, or the ID for the element       
+
+               // Return the named cache data, or the ID for the element
                return name ? jQuery.cache[ id ][ name ] : id;
        },
-       
+
        removeData: function( elem, name ) {
                elem = elem == window ? win : elem;
 
@@ -558,18 +558,18 @@ jQuery.extend({
                                for ( var i in obj )
                                        fn.call( obj[i], i, obj[i] );
                        else
-                               for ( var i = 0, ol = obj.length, val = obj[0]; 
+                               for ( var i = 0, ol = obj.length, val = obj[0];
                                        i < ol && fn.call(val,i,val) !== false; val = obj[++i] ){}
                }
 
                return obj;
        },
-       
+
        prop: function(elem, value, type, index, prop){
                        // Handle executable functions
                        if ( jQuery.isFunction( value ) )
                                value = value.call( elem, [index] );
-                               
+
                        // exclude the following css properties to add px
                        var exclude = /z-?index|font-?weight|opacity|zoom|line-?height/i;
 
@@ -592,7 +592,7 @@ jQuery.extend({
                remove: function( elem, c ){
                        elem.className = c != undefined ?
                                jQuery.grep( elem.className.split(/\s+/), function(cur){
-                                       return !jQuery.className.has( c, cur ); 
+                                       return !jQuery.className.has( c, cur );
                                }).join(" ") : "";
                },
 
@@ -668,7 +668,7 @@ jQuery.extend({
                        ret = jQuery.attr(elem.style, "opacity");
                        return ret == "" ? "1" : ret;
                }
-               
+
                if (prop.match(/float/i))
                        prop = styleFloat;
 
@@ -738,7 +738,7 @@ jQuery.extend({
 
                return ret;
        },
-       
+
        clean: function(a, doc) {
                var r = [];
                doc = doc || document;
@@ -748,7 +748,7 @@ jQuery.extend({
 
                        if ( arg.constructor == Number )
                                arg = arg.toString();
-                       
+
                        // Convert html string into DOM nodes
                        if ( typeof arg == "string" ) {
                                // Fix "XHTML"-style tags in all browsers
@@ -763,43 +763,43 @@ jQuery.extend({
                                        // option or optgroup
                                        !s.indexOf("<opt") &&
                                        [1, "<select>", "</select>"] ||
-                                       
+
                                        !s.indexOf("<leg") &&
                                        [1, "<fieldset>", "</fieldset>"] ||
-                                       
+
                                        s.match(/^<(thead|tbody|tfoot|colg|cap)/) &&
                                        [1, "<table>", "</table>"] ||
-                                       
+
                                        !s.indexOf("<tr") &&
                                        [2, "<table><tbody>", "</tbody></table>"] ||
-                                       
+
                                        // <thead> matched above
                                        (!s.indexOf("<td") || !s.indexOf("<th")) &&
                                        [3, "<table><tbody><tr>", "</tr></tbody></table>"] ||
-                                       
+
                                        !s.indexOf("<col") &&
                                        [2, "<table><tbody></tbody><colgroup>", "</colgroup></table>"] ||
 
                                        // IE can't serialize <link> and <script> tags normally
                                        jQuery.browser.msie &&
                                        [1, "div<div>", "</div>"] ||
-                                       
+
                                        [0,"",""];
 
                                // Go to html and back, then peel off extra wrappers
                                div.innerHTML = wrap[1] + arg + wrap[2];
-                               
+
                                // Move to the right depth
                                while ( wrap[0]-- )
                                        div = div.lastChild;
-                               
+
                                // Remove IE's autoinserted <tbody> from table fragments
                                if ( jQuery.browser.msie ) {
-                                       
+
                                        // String was a <table>, *may* have spurious <tbody>
-                                       if ( !s.indexOf("<table") && s.indexOf("<tbody") < 0 ) 
+                                       if ( !s.indexOf("<table") && s.indexOf("<tbody") < 0 )
                                                tb = div.firstChild && div.firstChild.childNodes;
-                                               
+
                                        // String was a bare <thead> or <tfoot>
                                        else if ( wrap[1] == "<table>" && s.indexOf("<tbody") < 0 )
                                                tb = div.childNodes;
@@ -807,13 +807,13 @@ jQuery.extend({
                                        for ( var n = tb.length-1; n >= 0 ; --n )
                                                if ( jQuery.nodeName(tb[n], "tbody") && !tb[n].childNodes.length )
                                                        tb[n].parentNode.removeChild(tb[n]);
-       
-                                       // IE completely kills leading whitespace when innerHTML is used        
-                                       if ( /^\s/.test(arg) )  
+
+                                       // IE completely kills leading whitespace when innerHTML is used
+                                       if ( /^\s/.test(arg) )
                                                div.insertBefore( doc.createTextNode( arg.match(/^\s*/)[0] ), div.firstChild );
 
                                }
-                               
+
                                arg = jQuery.makeArray( div.childNodes );
                        }
 
@@ -829,7 +829,7 @@ jQuery.extend({
 
                return r;
        },
-       
+
        attr: function(elem, name, value){
                var fix = jQuery.isXMLDoc(elem) ? {} : jQuery.props;
 
@@ -837,7 +837,7 @@ jQuery.extend({
                // Accessing the parent's selectedIndex property fixes it
                if ( name == "selected" && jQuery.browser.safari )
                        elem.parentNode.selectedIndex;
-               
+
                // Certain attributes only work when accessed via the old DOM 0 way
                if ( fix[name] ) {
                        if ( value != undefined ) elem[fix[name]] = value;
@@ -857,7 +857,7 @@ jQuery.extend({
                                elem.setAttribute( name, value );
                        }
 
-                       if ( jQuery.browser.msie && /href|src/.test(name) && !jQuery.isXMLDoc(elem) ) 
+                       if ( jQuery.browser.msie && /href|src/.test(name) && !jQuery.isXMLDoc(elem) )
                                return elem.getAttribute( name, 2 );
 
                        return elem.getAttribute( name );
@@ -869,14 +869,14 @@ jQuery.extend({
                                if ( value != undefined ) {
                                        // IE has trouble with opacity if it does not have layout
                                        // Force it by setting the zoom level
-                                       elem.zoom = 1; 
-       
+                                       elem.zoom = 1;
+
                                        // Set the alpha filter to set the opacity
                                        elem.filter = (elem.filter || "").replace(/alpha\([^)]*\)/,"") +
                                                (parseFloat(value).toString() == "NaN" ? "" : "alpha(opacity=" + value * 100 + ")");
                                }
-       
-                               return elem.filter ? 
+
+                               return elem.filter ?
                                        (parseFloat( elem.filter.match(/opacity=([^)]*)/)[1] ) / 100).toString() : "";
                        }
                        name = name.replace(/-([a-z])/ig,function(z,b){return b.toUpperCase();});
@@ -884,7 +884,7 @@ jQuery.extend({
                        return elem[name];
                }
        },
-       
+
        trim: function(t){
                return (t||"").replace(/^\s+|\s+$/g, "");
        },
@@ -996,13 +996,13 @@ jQuery.browser = {
 };
 
 var styleFloat = jQuery.browser.msie ? "styleFloat" : "cssFloat";
-       
+
 jQuery.extend({
        // Check to see if the W3C box model is being used
        boxModel: !jQuery.browser.msie || document.compatMode == "CSS1Compat",
-       
+
        styleFloat: jQuery.browser.msie ? "styleFloat" : "cssFloat",
-       
+
        props: {
                "for": "htmlFor",
                "class": "className",
@@ -1090,16 +1090,16 @@ jQuery.each( {
 
 jQuery.each( [ "Height", "Width" ], function(i,name){
        var n = name.toLowerCase();
-       
+
        jQuery.fn[ n ] = function(h) {
                return this[0] == window ?
                        jQuery.browser.safari && self["inner" + name] ||
                        jQuery.boxModel && Math.max(document.documentElement["client" + name], document.body["client" + name]) ||
                        document.body["client" + name] :
-               
+
                        this[0] == document ?
                                Math.max( document.body["scroll" + name], document.body["offset" + name] ) :
-        
+
                                h == undefined ?
                                        ( this.length ? jQuery.css( this[0], n ) : null ) :
                                        this.css( n, h.constructor == String ? h : h + "px" );
@@ -1172,7 +1172,7 @@ jQuery.extend({
                        animated: "jQuery.grep(jQuery.timers,function(fn){return a==fn.elem;}).length"
                }
        },
-       
+
        // The regular expressions that power the parsing engine
        parse: [
                // Match: [@value='test'], [@foo]
@@ -1257,12 +1257,12 @@ jQuery.extend({
                                                                var id = jQuery.data(n);
 
                                                                if ( m == "~" && merge[id] ) break;
-                                                               
+
                                                                if (!nodeName || n.nodeName.toUpperCase() == nodeName.toUpperCase() ) {
                                                                        if ( m == "~" ) merge[id] = true;
                                                                        r.push( n );
                                                                }
-                                                               
+
                                                                if ( m == "+" ) break;
                                                        }
                                        }
@@ -1296,7 +1296,7 @@ jQuery.extend({
                                        // Optimize for the case nodeName#idName
                                        var re2 = quickID;
                                        var m = re2.exec(t);
-                                       
+
                                        // Re-organize the results, so that they're consistent
                                        if ( m ) {
                                           m = [ 0, m[2], m[3], m[1] ];
@@ -1316,7 +1316,7 @@ jQuery.extend({
                                        if ( m[1] == "#" && elem && elem.getElementById && !jQuery.isXMLDoc(elem) ) {
                                                // Optimization for HTML document case
                                                var oid = elem.getElementById(m[2]);
-                                               
+
                                                // Do a quick check for the existence of the actual ID attribute
                                                // to avoid selecting by the name attribute in IE
                                                // also check to insure id is a string to avoid selecting an element with the name of 'id' inside a form
@@ -1435,10 +1435,10 @@ jQuery.extend({
 
                        else if ( m[1] == "[" ) {
                                var tmp = [], type = m[3];
-                               
+
                                for ( var i = 0, rl = r.length; i < rl; i++ ) {
                                        var a = r[i], z = a[ jQuery.props[m[2]] || m[2] ];
-                                       
+
                                        if ( z == null || /href|src|selected/.test(m[2]) )
                                                z = jQuery.attr(a,m[2]) || '';
 
@@ -1450,7 +1450,7 @@ jQuery.extend({
                                                 (type == "*=" || type == "~=") && z.indexOf(m[5]) >= 0) ^ not )
                                                        tmp.push( a );
                                }
-                               
+
                                r = tmp;
 
                        // We can get a speed boost by handling nth-child here
@@ -1517,7 +1517,7 @@ jQuery.extend({
                }
                return matched;
        },
-       
+
        nth: function(cur,result,dir,elem){
                result = result || 1;
                var num = 0;
@@ -1528,7 +1528,7 @@ jQuery.extend({
 
                return cur;
        },
-       
+
        sibling: function( n, elem ) {
                var r = [];
 
@@ -1542,7 +1542,7 @@ jQuery.extend({
 });
 /*
  * A number of helper functions used for managing events.
- * Many of the ideas behind this code orignated from 
+ * Many of the ideas behind this code orignated from
  * Dean Edwards' addEvent library.
  */
 jQuery.event = {
@@ -1558,22 +1558,22 @@ jQuery.event = {
                // Make sure that the function being executed has a unique ID
                if ( !handler.guid )
                        handler.guid = this.guid++;
-                       
-               // if data is passed, bind to handler 
-               if( data != undefined ) { 
-                       // Create temporary function pointer to original handler 
-                       var fn = handler; 
-
-                       // Create unique handler function, wrapped around original handler 
-                       handler = function() { 
-                               // Pass arguments and context to original handler 
-                               return fn.apply(this, arguments); 
+
+               // if data is passed, bind to handler
+               if( data != undefined ) {
+                       // Create temporary function pointer to original handler
+                       var fn = handler;
+
+                       // Create unique handler function, wrapped around original handler
+                       handler = function() {
+                               // Pass arguments and context to original handler
+                               return fn.apply(this, arguments);
                        };
 
-                       // Store data in unique handler 
+                       // Store data in unique handler
                        handler.data = data;
 
-                       // Set the guid of unique handler to the same of original handler, so it can be removed 
+                       // Set the guid of unique handler to the same of original handler, so it can be removed
                        handler.guid = fn.guid;
                }
 
@@ -1584,7 +1584,7 @@ jQuery.event = {
 
                // Init the element's event structure
                var events = jQuery.data(element, "events") || jQuery.data(element, "events", {});
-               
+
                var handle = jQuery.data(element, "handle", function(){
                        // returned undefined or false
                        var val;
@@ -1593,9 +1593,9 @@ jQuery.event = {
                        // an event is called after a page has unloaded
                        if ( typeof jQuery == "undefined" || jQuery.event.triggered )
                                return val;
-                       
+
                        val = jQuery.event.handle.apply(element, arguments);
-                       
+
                        return val;
                });
 
@@ -1604,8 +1604,8 @@ jQuery.event = {
 
                // Init the event handler queue
                if (!handlers) {
-                       handlers = events[type] = {};   
-                       
+                       handlers = events[type] = {};
+
                        // And bind the global event handler to the element
                        if (element.addEventListener)
                                element.addEventListener(type, handle, false);
@@ -1639,7 +1639,7 @@ jQuery.event = {
                                handler = type.handler;
                                type = type.type;
                        }
-                       
+
                        if ( !type ) {
                                for ( type in events )
                                        this.remove( element, type );
@@ -1648,7 +1648,7 @@ jQuery.event = {
                                // remove the given handler for the given type
                                if ( handler )
                                        delete events[type][handler.guid];
-                               
+
                                // remove all handlers for the given type
                                else
                                        for ( handler in events[type] )
@@ -1692,7 +1692,7 @@ jQuery.event = {
                        var val, ret, fn = jQuery.isFunction( element[ type ] || null ),
                                // Check to see if we need to provide a fake event, or not
                                evt = !data[0] || !data[0].preventDefault;
-                       
+
                        // Pass along a fake event
                        if ( evt )
                                data.unshift( this.fix({ type: type, target: element }) );
@@ -1730,7 +1730,7 @@ jQuery.event = {
                var val;
 
                // Empty object is for triggered events with no data
-               event = jQuery.event.fix( event || window.event || {} ); 
+               event = jQuery.event.fix( event || window.event || {} );
 
                // Namespaced event handlers
                var parts = event.type.split(".");
@@ -1768,12 +1768,12 @@ jQuery.event = {
        },
 
        fix: function(event) {
-               // store a copy of the original event object 
+               // store a copy of the original event object
                // and clone to set read-only properties
                var originalEvent = event;
                event = jQuery.extend({}, originalEvent);
-               
-               // add preventDefault and stopPropagation since 
+
+               // add preventDefault and stopPropagation since
                // they will not work on the clone
                event.preventDefault = function() {
                        // if preventDefault exists run it on the original event
@@ -1789,11 +1789,11 @@ jQuery.event = {
                        // otherwise set the cancelBubble property of the original event to true (IE)
                        originalEvent.cancelBubble = true;
                };
-               
+
                // Fix target property, if necessary
                if ( !event.target && event.srcElement )
                        event.target = event.srcElement;
-                               
+
                // check if target is a textnode (safari)
                if (jQuery.browser.safari && event.target.nodeType == 3)
                        event.target = originalEvent.target.parentNode;
@@ -1808,11 +1808,11 @@ jQuery.event = {
                        event.pageX = event.clientX + (e && e.scrollLeft || b.scrollLeft || 0);
                        event.pageY = event.clientY + (e && e.scrollTop || b.scrollTop || 0);
                }
-                       
+
                // Add which for key events
                if ( !event.which && (event.charCode || event.keyCode) )
                        event.which = event.charCode || event.keyCode;
-               
+
                // Add metaKey to non-Mac browsers (use ctrl for PC's and Meta for Macs)
                if ( !event.metaKey && event.ctrlKey )
                        event.metaKey = event.ctrlKey;
@@ -1821,7 +1821,7 @@ jQuery.event = {
                // Note: button is not normalized, so don't use it
                if ( !event.which && event.button )
                        event.which = (event.button & 1 ? 1 : ( event.button & 2 ? 3 : ( event.button & 4 ? 2 : 0 ) ));
-                       
+
                return event;
        }
 };
@@ -1832,7 +1832,7 @@ jQuery.fn.extend({
                        jQuery.event.add( this, type, fn || data, fn && data );
                });
        },
-       
+
        one: function( type, data, fn ) {
                return this.each(function(){
                        jQuery.event.add( this, type, function(event) {
@@ -1866,36 +1866,36 @@ jQuery.fn.extend({
                return this.click(function(e) {
                        // Figure out which function to execute
                        this.lastToggle = 0 == this.lastToggle ? 1 : 0;
-                       
+
                        // Make sure that clicks stop
                        e.preventDefault();
-                       
+
                        // and execute the function
                        return a[this.lastToggle].apply( this, [e] ) || false;
                });
        },
 
        hover: function(f,g) {
-               
+
                // A private function for handling mouse 'hovering'
                function handleHover(e) {
                        // Check if mouse(over|out) are still within the same parent element
                        var p = e.relatedTarget;
-       
+
                        // Traverse up the tree
                        while ( p && p != this ) try { p = p.parentNode; } catch(e) { p = this; };
-                       
+
                        // If we actually just moused on to a sub-element, ignore it
                        if ( p == this ) return false;
-                       
+
                        // Execute the right function
                        return (e.type == "mouseover" ? f : g).apply(this, [e]);
                }
-               
+
                // Bind the function to the two event listeners
                return this.mouseover(handleHover).mouseout(handleHover);
        },
-       
+
        ready: function(f) {
                // Attach the listeners
                bindReady();
@@ -1904,12 +1904,12 @@ jQuery.fn.extend({
                if ( jQuery.isReady )
                        // Execute the function immediately
                        f.apply( document, [jQuery] );
-                       
+
                // Otherwise, remember the function for later
                else
                        // Add the function to the wait list
                        jQuery.readyList.push( function() { return f.apply(this, [jQuery]); } );
-       
+
                return this;
        }
 });
@@ -1920,28 +1920,28 @@ jQuery.extend({
         */
        isReady: false,
        readyList: [],
-       
+
        // Handle when the DOM is ready
        ready: function() {
                // Make sure that the DOM is not already loaded
                if ( !jQuery.isReady ) {
                        // Remember that the DOM is ready
                        jQuery.isReady = true;
-                       
+
                        // If there are functions bound, to execute
                        if ( jQuery.readyList ) {
                                // Execute all of them
                                jQuery.each( jQuery.readyList, function(){
                                        this.apply( document );
                                });
-                               
+
                                // Reset the list of functions
                                jQuery.readyList = null;
                        }
                        // Remove event listener to avoid memory leak
                        if ( jQuery.browser.mozilla || jQuery.browser.opera )
                                document.removeEventListener( "DOMContentLoaded", jQuery.ready, false );
-                       
+
                        // Remove script element used by IE hack
                        if( !window.frames.length ) // don't remove if frames are present (#1187)
                                jQuery(window).load(function(){ jQuery("#__ie_init").remove(); });
@@ -1950,9 +1950,9 @@ jQuery.extend({
 });
 
 jQuery.each( ("blur,focus,load,resize,scroll,unload,click,dblclick," +
-       "mousedown,mouseup,mousemove,mouseover,mouseout,change,select," + 
+       "mousedown,mouseup,mousemove,mouseover,mouseout,change,select," +
        "submit,keydown,keypress,keyup,error").split(","), function(i,o){
-       
+
        // Handle event binding
        jQuery.fn[o] = function(f){
                return f ? this.bind(o, f) : this.trigger(o);
@@ -1969,44 +1969,44 @@ function bindReady(){
        if ( jQuery.browser.mozilla || jQuery.browser.opera )
                // Use the handy event callback
                document.addEventListener( "DOMContentLoaded", jQuery.ready, false );
-       
+
        // If IE is used, use the excellent hack by Matthias Miller
        // http://www.outofhanwell.com/blog/index.php?title=the_window_onload_problem_revisited
        else if ( jQuery.browser.msie ) {
-       
+
                // Only works if you document.write() it
-               document.write("<scr" + "ipt id=__ie_init defer=true " + 
+               document.write("<scr" + "ipt id=__ie_init defer=true " +
                        "src=//:><\/script>");
-       
+
                // Use the defer script hack
                var script = document.getElementById("__ie_init");
-               
+
                // script does not exist if jQuery is loaded dynamically
-               if ( script ) 
+               if ( script )
                        script.onreadystatechange = function() {
                                if ( this.readyState != "complete" ) return;
                                jQuery.ready();
                        };
-       
+
                // Clear from memory
                script = null;
-       
+
        // If Safari  is used
        } else if ( jQuery.browser.safari )
                // Continually check to see if the document.readyState is valid
                jQuery.safariTimer = setInterval(function(){
                        // loaded and complete are both valid states
-                       if ( document.readyState == "loaded" || 
+                       if ( document.readyState == "loaded" ||
                                document.readyState == "complete" ) {
-       
+
                                // If either one are found, remove the timer
                                clearInterval( jQuery.safariTimer );
                                jQuery.safariTimer = null;
-       
+
                                // and execute any waiting functions
                                jQuery.ready();
                        }
-               }, 10); 
+               }, 10);
 
        // A fallback to window.onload, that will always work
        jQuery.event.add( window, "load", jQuery.ready );
@@ -2083,8 +2083,8 @@ jQuery.fn.extend({
                                jQuery.makeArray(this.elements) : this;
                })
                .filter(function(){
-                       return this.name && !this.disabled && 
-                               (this.checked || /select|textarea/i.test(this.nodeName) || 
+                       return this.name && !this.disabled &&
+                               (this.checked || /select|textarea/i.test(this.nodeName) ||
                                        /text|hidden|password/i.test(this.type));
                })
                .map(function(i, elem){
@@ -2115,7 +2115,7 @@ jQuery.extend({
                        callback = data;
                        data = null;
                }
-               
+
                return jQuery.ajax({
                        type: "GET",
                        url: url,
@@ -2161,7 +2161,7 @@ jQuery.extend({
                async: true,
                data: null
        },
-       
+
        // Last-Modified header cache for next request
        lastModified: {},
 
@@ -2240,7 +2240,7 @@ jQuery.extend({
 
                                // Attach handlers for all browsers
                                script.onload = script.onreadystatechange = function(){
-                                       if ( !done && (!this.readyState || 
+                                       if ( !done && (!this.readyState ||
                                                        this.readyState == "loaded" || this.readyState == "complete") ) {
                                                done = true;
                                                success();
@@ -2280,7 +2280,7 @@ jQuery.extend({
                // Allow custom headers/mimetypes
                if ( s.beforeSend )
                        s.beforeSend(xml);
-                       
+
                if ( s.global )
                    jQuery.event.trigger("ajaxSend", [xml, s]);
 
@@ -2289,13 +2289,13 @@ jQuery.extend({
                        // The transfer is complete and the data is available, or the request timed out
                        if ( !requestDone && xml && (xml.readyState == 4 || isTimeout == "timeout") ) {
                                requestDone = true;
-                               
+
                                // clear poll interval
                                if (ival) {
                                        clearInterval(ival);
                                        ival = null;
                                }
-                               
+
                                status = isTimeout == "timeout" && "timeout" ||
                                        !jQuery.httpSuccess( xml ) && "error" ||
                                        s.ifModified && jQuery.httpNotModified( xml, s.url ) && "notmodified" ||
@@ -2318,13 +2318,13 @@ jQuery.extend({
                                        try {
                                                modRes = xml.getResponseHeader("Last-Modified");
                                        } catch(e) {} // swallow exception thrown by FF if header is not available
-       
+
                                        if ( s.ifModified && modRes )
                                                jQuery.lastModified[s.url] = modRes;
 
                                        // JSONP handles its own success callback
                                        if ( !jsonp )
-                                               success();      
+                                               success();
                                } else
                                        jQuery.handleError(s, xml, status);
 
@@ -2336,10 +2336,10 @@ jQuery.extend({
                                        xml = null;
                        }
                };
-               
+
                if ( s.async ) {
                        // don't attach the handler to the request, just poll it instead
-                       var ival = setInterval(onreadystatechange, 13); 
+                       var ival = setInterval(onreadystatechange, 13);
 
                        // Timeout checker
                        if ( s.timeout > 0 )
@@ -2348,24 +2348,24 @@ jQuery.extend({
                                        if ( xml ) {
                                                // Cancel the request
                                                xml.abort();
-       
+
                                                if( !requestDone )
                                                        onreadystatechange( "timeout" );
                                        }
                                }, s.timeout);
                }
-                       
+
                // Send the data
                try {
                        xml.send(s.data);
                } catch(e) {
                        jQuery.handleError(s, xml, null, e);
                }
-               
+
                // firefox 1.5 doesn't fire statechange for sync requests
                if ( !s.async )
                        onreadystatechange();
-               
+
                // return XMLHttpRequest to allow aborting the request etc.
                return xml;
 
@@ -2483,20 +2483,20 @@ jQuery.fn.extend({
                        this.animate({
                                height: "show", width: "show", opacity: "show"
                        }, speed, callback) :
-                       
+
                        this.filter(":hidden").each(function(){
                                this.style.display = this.oldblock ? this.oldblock : "";
                                if ( jQuery.css(this,"display") == "none" )
                                        this.style.display = "block";
                        }).end();
        },
-       
+
        hide: function(speed,callback){
                return speed ?
                        this.animate({
                                height: "hide", width: "hide", opacity: "hide"
                        }, speed, callback) :
-                       
+
                        this.filter(":visible").each(function(){
                                this.oldblock = this.oldblock || jQuery.css(this,"display");
                                if ( this.oldblock == "none" )
@@ -2507,7 +2507,7 @@ jQuery.fn.extend({
 
        // Save the old toggle function
        _toggle: jQuery.fn.toggle,
-       
+
        toggle: function( fn, fn2 ){
                return jQuery.isFunction(fn) && jQuery.isFunction(fn2) ?
                        this._toggle( fn, fn2 ) :
@@ -2519,11 +2519,11 @@ jQuery.fn.extend({
                                        jQuery(this)[ jQuery(this).is(":hidden") ? "show" : "hide" ]();
                                });
        },
-       
+
        slideDown: function(speed,callback){
                return this.animate({height: "show"}, speed, callback);
        },
-       
+
        slideUp: function(speed,callback){
                return this.animate({height: "hide"}, speed, callback);
        },
@@ -2531,26 +2531,26 @@ jQuery.fn.extend({
        slideToggle: function(speed, callback){
                return this.animate({height: "toggle"}, speed, callback);
        },
-       
+
        fadeIn: function(speed, callback){
                return this.animate({opacity: "show"}, speed, callback);
        },
-       
+
        fadeOut: function(speed, callback){
                return this.animate({opacity: "hide"}, speed, callback);
        },
-       
+
        fadeTo: function(speed,to,callback){
                return this.animate({opacity: to}, speed, callback);
        },
-       
+
        animate: function( prop, speed, easing, callback ) {
                var opt = jQuery.speed(speed, easing, callback);
 
                return this[ opt.queue === false ? "each" : "queue" ](function(){
                        opt = jQuery.extend({}, opt);
                        var hidden = jQuery(this).is(":hidden"), self = this;
-                       
+
                        for ( var p in prop ) {
                                if ( prop[p] == "hide" && hidden || prop[p] == "show" && !hidden )
                                        return jQuery.isFunction(opt.complete) && opt.complete.apply(this);
@@ -2568,7 +2568,7 @@ jQuery.fn.extend({
                                this.style.overflow = "hidden";
 
                        opt.curAnim = jQuery.extend({}, prop);
-                       
+
                        jQuery.each( prop, function(name, val){
                                var e = new jQuery.fx( self, opt, name );
 
@@ -2603,7 +2603,7 @@ jQuery.fn.extend({
                        return true;
                });
        },
-       
+
        queue: function(type, fn){
                if ( !fn ) {
                        fn = type;
@@ -2618,7 +2618,7 @@ jQuery.fn.extend({
                                queue(this, type, fn);
                        else {
                                queue(this, type).push( fn );
-                       
+
                                if ( queue(this, type).length == 1 )
                                        fn.apply(this);
                        }
@@ -2644,7 +2644,7 @@ var queue = function( elem, type, array ) {
        var q = jQuery.data( elem, type + "queue" );
 
        if ( !q || array )
-               q = jQuery.data( elem, type + "queue", 
+               q = jQuery.data( elem, type + "queue",
                        array ? jQuery.makeArray(array) : [] );
 
        return q;
@@ -2664,19 +2664,19 @@ jQuery.fn.dequeue = function(type){
 };
 
 jQuery.extend({
-       
+
        speed: function(speed, easing, fn) {
                var opt = speed && speed.constructor == Object ? speed : {
-                       complete: fn || !fn && easing || 
+                       complete: fn || !fn && easing ||
                                jQuery.isFunction( speed ) && speed,
                        duration: speed,
                        easing: fn && easing || easing && easing.constructor != Function && easing
                };
 
-               opt.duration = (opt.duration && opt.duration.constructor == Number ? 
-                       opt.duration : 
+               opt.duration = (opt.duration && opt.duration.constructor == Number ?
+                       opt.duration :
                        { slow: 600, fast: 200 }[opt.duration]) || 400;
-       
+
                // Queueing
                opt.old = opt.complete;
                opt.complete = function(){
@@ -2684,10 +2684,10 @@ jQuery.extend({
                        if ( jQuery.isFunction( opt.old ) )
                                opt.old.apply( this );
                };
-       
+
                return opt;
        },
-       
+
        easing: {
                linear: function( p, n, firstNum, diff ) {
                        return firstNum + diff * p;
@@ -2696,7 +2696,7 @@ jQuery.extend({
                        return ((-Math.cos(p*Math.PI)/2) + 0.5) * diff + firstNum;
                }
        },
-       
+
        timers: [],
 
        fx: function( elem, options, prop ){
@@ -2755,7 +2755,7 @@ jQuery.fx.prototype = {
                if ( jQuery.timers.length == 1 ) {
                        var timer = setInterval(function(){
                                var timers = jQuery.timers;
-                               
+
                                for ( var i = 0; i < timers.length; i++ )
                                        if ( !timers[i]() )
                                                timers.splice(i--, 1);
@@ -2779,7 +2779,7 @@ jQuery.fx.prototype = {
                // flash of content
                if ( this.prop == "width" || this.prop == "height" )
                        this.elem.style[this.prop] = "1px";
-               
+
                // Start by showing the element
                jQuery(this.elem).show();
        },
@@ -2814,7 +2814,7 @@ jQuery.fx.prototype = {
                                if ( this.options.display != null ) {
                                        // Reset the overflow
                                        this.elem.style.overflow = this.options.overflow;
-                               
+
                                        // Reset the display
                                        this.elem.style.display = this.options.display;
                                        if ( jQuery.css(this.elem, "display") == "none" )
@@ -2876,24 +2876,24 @@ jQuery.fx.step = {
 // http://jquery.com/plugins/project/dimensions
 jQuery.fn.offset = function() {
        var left = 0, top = 0, elem = this[0], results;
-       
+
        if ( elem ) with ( jQuery.browser ) {
-               var     absolute        = jQuery.css(elem, "position") == "absolute", 
-                       parent          = elem.parentNode, 
-                       offsetParent    = elem.offsetParent, 
+               var     absolute        = jQuery.css(elem, "position") == "absolute",
+                       parent          = elem.parentNode,
+                       offsetParent    = elem.offsetParent,
                        doc             = elem.ownerDocument,
                        safari2         = safari && !absolute && parseInt(version) < 522;
-       
+
                // Use getBoundingClientRect if available
                if ( elem.getBoundingClientRect ) {
                        box = elem.getBoundingClientRect();
-               
+
                        // Add the document scroll offsets
                        add(
                                box.left + Math.max(doc.documentElement.scrollLeft, doc.body.scrollLeft),
                                box.top  + Math.max(doc.documentElement.scrollTop,  doc.body.scrollTop)
                        );
-               
+
                        // IE adds the HTML element's border, by default it is medium which is 2px
                        // IE 6 and IE 7 quirks mode the border width is overwritable by the following css html { border: 0; }
                        // IE 7 standards mode, the border is always 2px
@@ -2902,46 +2902,46 @@ jQuery.fn.offset = function() {
                                border = (border == "medium" || jQuery.boxModel && parseInt(version) >= 7) && 2 || border;
                                add( -border, -border );
                        }
-       
+
                // Otherwise loop through the offsetParents and parentNodes
                } else {
-               
+
                        // Initial element offsets
                        add( elem.offsetLeft, elem.offsetTop );
-               
+
                        // Get parent offsets
                        while ( offsetParent ) {
                                // Add offsetParent offsets
                                add( offsetParent.offsetLeft, offsetParent.offsetTop );
-                       
+
                                // Mozilla and Safari > 2 does not include the border on offset parents
                                // However Mozilla adds the border for table cells
                                if ( mozilla && /^t[d|h]$/i.test(parent.tagName) || !safari2 )
                                        border( offsetParent );
-                               
+
                                // Safari <= 2 doubles body offsets with an absolutely positioned element or parent
                                if ( safari2 && !absolute && jQuery.css(offsetParent, "position") == "absolute" )
                                        absolute = true;
-                       
+
                                // Get next offsetParent
                                offsetParent = offsetParent.offsetParent;
                        }
-               
+
                        // Get parent scroll offsets
                        while ( parent.tagName && /^body|html$/i.test(parent.tagName) ) {
                                // Work around opera inline/table scrollLeft/Top bug
                                if ( /^inline|table-row.*$/i.test(jQuery.css(parent, "display")) )
                                        // Subtract parent scroll offsets
                                        add( -parent.scrollLeft, -parent.scrollTop );
-                       
+
                                // Mozilla does not add the border for a parent that has overflow != visible
                                if ( mozilla && jQuery.css(parent, "overflow") != "visible" )
                                        border( parent );
-                       
+
                                // Get next parent
                                parent = parent.parentNode;
                        }
-               
+
                        // Safari doubles body offsets with an absolutely positioned element or parent
                        if ( safari && absolute )
                                add( -doc.body.offsetLeft, -doc.body.offsetTop );
index 9550b8291b9772855aca3a7a6cfdf3dd48a09e3c..cf8711b159e35eb44b53bda631549331d3a88760 100644 (file)
@@ -39,7 +39,7 @@ a {
 
 h1 {
        margin-top: 1em;
-       
+
 }
 
 hr {
index db36019615b9ce61b12912c307e4ffd1f46e3472..9b151ee8970ce176a63268d9305379414f0a622d 100644 (file)
@@ -1,4 +1,4 @@
-      </div>    
+      </div>
     </div>
   </body>
 </html>
index 4ab4afd1e323f146a2f6cbd1481b3bbc0ef25fed..cb21bb06a42108a73987cb2c20dae6b3d586a16d 100644 (file)
@@ -16,7 +16,7 @@
     </div>
     <div class="menu">
             <?cs if:?login ?>
-             Logged in as <i><?cs var:login ?></i> 
+             Logged in as <i><?cs var:login ?></i>
              | <a href="<?cs var:base ?>/user/edit">Edit</a>
              | <a href="<?cs var:base ?>/user/logout">Logout</a>
              | <a href="<?cs var:base ?>/user/help">Help</a>
index 27fdf0685201fdbbfb3d82d33975658fbcaa38bf..1e4f10f30fef0c85d7bdbab54c16091b251bbe5f 100644 (file)
@@ -15,7 +15,7 @@
     <tr>
       <td></td>
       <td class="right">
-        <input type="submit" value="Back" name="back"/> 
+        <input type="submit" value="Back" name="back"/>
         <input type="submit" value="Add" name="add"/>
       </td>
     </tr>
index 942762b49f8ea6f00e23eee172aab02181115ab2..ac4a2e11f93bbd8c4ed049b4cb401d1130255212 100644 (file)
@@ -16,7 +16,7 @@
       <td></td>
       <td align="right">
         <input type="submit" value="Back" name="back"/>
-        <input type="submit" value="Delete" name="delete" onclick="return confirm('Permanently delete this peer?')"/> 
+        <input type="submit" value="Delete" name="delete" onclick="return confirm('Permanently delete this peer?')"/>
        <input type="submit" value="Save" name="save"/>
       </td>
     </tr>
index 1f168498be07def8909e88ace7ed4332ee83b576..de311cd3d99e8c00d2ef1b5ac46333a923247ed3 100644 (file)
@@ -25,8 +25,8 @@
     <tr>
       <td></td>
       <td class="right">
-        <input type="submit" value="Back" name="back"/> 
-        <input type="submit" value="Delete" name="delete" onclick="return confirm('Permanently delete your account?')"/> 
+        <input type="submit" value="Back" name="back"/>
+        <input type="submit" value="Delete" name="delete" onclick="return confirm('Permanently delete your account?')"/>
         <input type="submit" value="Save" name="save"/>
       </td>
     </tr>
index 5546cb8f8aefb608fb262b9360bbb0ff4f1574cb..9cbd60280cb8bab66d51b590796fa40c96ee3eba 100644 (file)
@@ -1,6 +1,6 @@
 if !USE_WINDOWS
 
-sbin_PROGRAMS = sec-updater 
+sbin_PROGRAMS = sec-updater
 
 AM_CPPFLAGS = \
        -I$(top_srcdir)/src/libstrongswan \
index b5a8582972e14812154ac80a5e9b8c6d7fbcab9d..acb57c9f16ce369a73f3c3bc764ec5d0d7536409 100644 (file)
@@ -98,7 +98,7 @@ METHOD(enumerator_t, enumerator_destroy, void,
        dpkg_enumerator_t *this)
 {
        pclose(this->file);
-       free(this);     
+       free(this);
 }
 
 METHOD(sw_collector_dpkg_t, create_sw_enumerator, enumerator_t*,
index aa354e8f4899fb7c8b9d41a746dae77c489962aa..4da9bdab5b60d8b87a4e570bde3258ef9facab63 100644 (file)
@@ -55,11 +55,11 @@ struct sw_collector_history_t {
                                                          char *buf);
 
        /**
-        * Extract packages from event in installation history 
+        * Extract packages from event in installation history
         *
         * @param args                  Arguments to be processed
         * @param eid                   Primary key pointing to current event
-        * @param op                    Extraction operation 
+        * @param op                    Extraction operation
         * @return                              TRUE if extraction succeeded
         */
        bool (*extract_packages)(sw_collector_history_t *this, chunk_t args,
index 6b9b7b96a57add81fab65448e4ef5088640cd828..f636a2f559c60dab86860e8dea9cc0a28801d89e 100644 (file)
@@ -109,7 +109,7 @@ METHOD(enumerator_t, enumerator_destroy, void,
        json_array_enumerator_t *this)
 {
        json_object_put(this->jarray);
-       free(this);     
+       free(this);
 }
 
 METHOD(sw_collector_rest_api_t, create_sw_enumerator, enumerator_t*,
index 8bff6f95d1ebbe933fcf854cbb500b94f30bfbef..769612437c59ea5f8a24d1745548280fd4f7e425 100644 (file)
@@ -48,7 +48,7 @@ CALLBACK(authority_list, int,
                if (streq(name, "crl_uris"))
                {
                        printf("  %s %.*s\n",
-                                 (*labeled & LABELED_CRL_URI)  ? "          " : "crl_uris: ", 
+                                 (*labeled & LABELED_CRL_URI)  ? "          " : "crl_uris: ",
                                  len, value);
                        *labeled |= LABELED_CRL_URI;
                }
index 23091234aacd823385b84909da51a4a10ee02caa..8e3a9c62eb602060797ddc6d19d3a28df80cedbd 100755 (executable)
@@ -56,7 +56,7 @@ do
                execute_chroot "chgrp www-data /etc/pts" 0
                execute_chroot "chmod g+w /etc/pts" 0
        fi
-    if [ "$host" = "winnetou" ]
+       if [ "$host" = "winnetou" ]
        then
                execute "mkdir $LOOPDIR/var/log/apache2/ocsp" 0
                execute "cp -rf $DIR/../images $LOOPDIR/var/www/" 0
index c512b8add66f5872ab9f4001be1c34dea6ecfec7..5fbc98293bf38d215ded69e105970584c0c513ac 100755 (executable)
@@ -183,21 +183,21 @@ running_any()
 
 function searchandreplace {
 
-    SEARCHSTRING="$1"
-    REPLACESTRING="$2"
-    DESTDIR="$3"
+       SEARCHSTRING="$1"
+       REPLACESTRING="$2"
+       DESTDIR="$3"
 
-    [ -d "$DESTDIR" ] || die "$DESTDIR is not a directory!"
+       [ -d "$DESTDIR" ] || die "$DESTDIR is not a directory!"
 
 
-    ###########################################
-    # search and replace in each found file the
-    # given string
-    #
+       ###########################################
+       # search and replace in each found file the
+       # given string
+       #
 
-    for eachfoundfile in `find $DESTDIR -type f`
-    do
-        sed -i -e "s/$SEARCHSTRING/$REPLACESTRING/g" "$eachfoundfile"
-    done
+       for eachfoundfile in `find $DESTDIR -type f`
+       do
+               sed -i -e "s/$SEARCHSTRING/$REPLACESTRING/g" "$eachfoundfile"
+       done
 
 }
index a1a0f987d6801e05f87d71869859a0b80afdc3d5..220107ed4a3a8334566b3c3640afd5d3fbeb4ad1 100755 (executable)
@@ -45,37 +45,37 @@ cp -rfp $DEFAULTTESTSDIR/${testname}/* $TESTDIR
 
 for host in $STRONGSWANHOSTS
 do
-    eval ipv4_${host}="`echo $HOSTNAMEIPV4 | sed -n -e "s/^.*${host},//gp" | awk -F, '{ print $1 }' | awk '{ print $1 }'`"
-    eval ipv6_${host}="`echo $HOSTNAMEIPV6 | sed -n -e "s/^.*${host},//gp" | awk -F, '{ print $1 }' | awk '{ print $1 }'`"
-
-    case $host in
-    moon)
-        eval ipv4_moon1="`echo $HOSTNAMEIPV4 | sed -n -e "s/^.*${host},//gp" | awk -F, '{ print $2 }' | awk '{ print $1 }'`"
-        eval ipv6_moon1="`echo $HOSTNAMEIPV6 | sed -n -e "s/^.*${host},//gp" | awk -F, '{ print $2 }' | awk '{ print $1 }'`"
-        ;;
-    sun)
-        eval ipv4_sun1="`echo $HOSTNAMEIPV4 | sed -n -e "s/^.*${host},//gp" | awk -F, '{ print $2 }' | awk '{ print $1 }'`"
-        eval ipv6_sun1="`echo $HOSTNAMEIPV6 | sed -n -e "s/^.*${host},//gp" | awk -F, '{ print $2 }' | awk '{ print $1 }'`"
-        ;;
-    alice)
-        eval ipv4_alice1="`echo $HOSTNAMEIPV4 | sed -n -e "s/^.*${host},//gp" | awk -F, '{ print $2 }' | awk '{ print $1 }'`"
-        eval ipv6_alice1="`echo $HOSTNAMEIPV6 | sed -n -e "s/^.*${host},//gp" | awk -F, '{ print $2 }' | awk '{ print $1 }'`"
-        ;;
-    venus)
-        ;;
-    bob)
-        ;;
-    carol)
-        eval ipv4_carol1="`echo $HOSTNAMEIPV4 | sed -n -e "s/^.*${host},//gp" | awk -F, '{ print $2 }' | awk '{ print $1 }'`"
-        eval ipv6_carol1="`echo $HOSTNAMEIPV6 | sed -n -e "s/^.*${host},//gp" | awk -F, '{ print $2 }' | awk '{ print $1 }'`"
-         ;;
-    dave)
-        eval ipv4_dave1="`echo $HOSTNAMEIPV4 | sed -n -e "s/^.*${host},//gp" | awk -F, '{ print $2 }' | awk '{ print $1 }'`"
-        eval ipv6_dave1="`echo $HOSTNAMEIPV6 | sed -n -e "s/^.*${host},//gp" | awk -F, '{ print $2 }' | awk '{ print $1 }'`"
-        ;;
-    winnetou)
-        ;;
-    esac
+       eval ipv4_${host}="`echo $HOSTNAMEIPV4 | sed -n -e "s/^.*${host},//gp" | awk -F, '{ print $1 }' | awk '{ print $1 }'`"
+       eval ipv6_${host}="`echo $HOSTNAMEIPV6 | sed -n -e "s/^.*${host},//gp" | awk -F, '{ print $1 }' | awk '{ print $1 }'`"
+
+       case $host in
+       moon)
+               eval ipv4_moon1="`echo $HOSTNAMEIPV4 | sed -n -e "s/^.*${host},//gp" | awk -F, '{ print $2 }' | awk '{ print $1 }'`"
+               eval ipv6_moon1="`echo $HOSTNAMEIPV6 | sed -n -e "s/^.*${host},//gp" | awk -F, '{ print $2 }' | awk '{ print $1 }'`"
+               ;;
+       sun)
+               eval ipv4_sun1="`echo $HOSTNAMEIPV4 | sed -n -e "s/^.*${host},//gp" | awk -F, '{ print $2 }' | awk '{ print $1 }'`"
+               eval ipv6_sun1="`echo $HOSTNAMEIPV6 | sed -n -e "s/^.*${host},//gp" | awk -F, '{ print $2 }' | awk '{ print $1 }'`"
+               ;;
+       alice)
+               eval ipv4_alice1="`echo $HOSTNAMEIPV4 | sed -n -e "s/^.*${host},//gp" | awk -F, '{ print $2 }' | awk '{ print $1 }'`"
+               eval ipv6_alice1="`echo $HOSTNAMEIPV6 | sed -n -e "s/^.*${host},//gp" | awk -F, '{ print $2 }' | awk '{ print $1 }'`"
+               ;;
+       venus)
+               ;;
+       bob)
+               ;;
+       carol)
+               eval ipv4_carol1="`echo $HOSTNAMEIPV4 | sed -n -e "s/^.*${host},//gp" | awk -F, '{ print $2 }' | awk '{ print $1 }'`"
+               eval ipv6_carol1="`echo $HOSTNAMEIPV6 | sed -n -e "s/^.*${host},//gp" | awk -F, '{ print $2 }' | awk '{ print $1 }'`"
+               ;;
+       dave)
+               eval ipv4_dave1="`echo $HOSTNAMEIPV4 | sed -n -e "s/^.*${host},//gp" | awk -F, '{ print $2 }' | awk '{ print $1 }'`"
+               eval ipv6_dave1="`echo $HOSTNAMEIPV6 | sed -n -e "s/^.*${host},//gp" | awk -F, '{ print $2 }' | awk '{ print $1 }'`"
+               ;;
+       winnetou)
+               ;;
+       esac
 done
 
 ##############################################################################
@@ -84,50 +84,50 @@ done
 
 for host in $STRONGSWANHOSTS
 do
-    case $host in
-    moon)
-    searchandreplace PH_IP_MOON1     $ipv4_moon1 $TESTDIR
-    searchandreplace PH_IP_MOON      $ipv4_moon  $TESTDIR
-    searchandreplace PH_IP6_MOON1    $ipv6_moon1 $TESTDIR
-    searchandreplace PH_IP6_MOON     $ipv6_moon  $TESTDIR
-    ;;
-    sun)
-    searchandreplace PH_IP_SUN1      $ipv4_sun1 $TESTDIR
-    searchandreplace PH_IP_SUN       $ipv4_sun  $TESTDIR
-    searchandreplace PH_IP6_SUN1     $ipv6_sun1 $TESTDIR
-    searchandreplace PH_IP6_SUN      $ipv6_sun  $TESTDIR
-    ;;
-    alice)
-    searchandreplace PH_IP_ALICE1    $ipv4_alice1 $TESTDIR
-    searchandreplace PH_IP_ALICE     $ipv4_alice  $TESTDIR
-    searchandreplace PH_IP6_ALICE1   $ipv6_alice1 $TESTDIR
-    searchandreplace PH_IP6_ALICE    $ipv6_alice  $TESTDIR
-    ;;
-    venus)
-    searchandreplace PH_IP_VENUS     $ipv4_venus $TESTDIR
-    searchandreplace PH_IP6_VENUS    $ipv6_venus $TESTDIR
-    ;;
-    bob)
-    searchandreplace PH_IP_BOB       $ipv4_bob $TESTDIR
-    searchandreplace PH_IPV6_BOB     $ipv6_bob $TESTDIR
-    ;;
-    carol)
-    searchandreplace PH_IP_CAROL1    $ipv4_carol1 $TESTDIR
-    searchandreplace PH_IP_CAROL     $ipv4_carol  $TESTDIR
-    searchandreplace PH_IP6_CAROL1   $ipv6_carol1 $TESTDIR
-    searchandreplace PH_IP6_CAROL    $ipv6_carol  $TESTDIR
-    ;;
-    dave)
-    searchandreplace PH_IP_DAVE1     $ipv4_dave1 $TESTDIR
-    searchandreplace PH_IP_DAVE      $ipv4_dave  $TESTDIR
-    searchandreplace PH_IP6_DAVE1    $ipv6_dave1 $TESTDIR
-    searchandreplace PH_IP6_DAVE     $ipv6_dave  $TESTDIR
-    ;;
-    winnetou)
-    searchandreplace PH_IP_WINNETOU  $ipv4_winnetou $TESTDIR
-    searchandreplace PH_IP6_WINNETOU $ipv6_winnetou $TESTDIR
-    ;;
-    esac
+       case $host in
+       moon)
+               searchandreplace PH_IP_MOON1     $ipv4_moon1 $TESTDIR
+               searchandreplace PH_IP_MOON      $ipv4_moon  $TESTDIR
+               searchandreplace PH_IP6_MOON1    $ipv6_moon1 $TESTDIR
+               searchandreplace PH_IP6_MOON     $ipv6_moon  $TESTDIR
+               ;;
+       sun)
+               searchandreplace PH_IP_SUN1      $ipv4_sun1 $TESTDIR
+               searchandreplace PH_IP_SUN       $ipv4_sun  $TESTDIR
+               searchandreplace PH_IP6_SUN1     $ipv6_sun1 $TESTDIR
+               searchandreplace PH_IP6_SUN      $ipv6_sun  $TESTDIR
+               ;;
+       alice)
+               searchandreplace PH_IP_ALICE1    $ipv4_alice1 $TESTDIR
+               searchandreplace PH_IP_ALICE     $ipv4_alice  $TESTDIR
+               searchandreplace PH_IP6_ALICE1   $ipv6_alice1 $TESTDIR
+               searchandreplace PH_IP6_ALICE    $ipv6_alice  $TESTDIR
+               ;;
+       venus)
+               searchandreplace PH_IP_VENUS     $ipv4_venus $TESTDIR
+               searchandreplace PH_IP6_VENUS    $ipv6_venus $TESTDIR
+               ;;
+       bob)
+               searchandreplace PH_IP_BOB       $ipv4_bob $TESTDIR
+               searchandreplace PH_IPV6_BOB     $ipv6_bob $TESTDIR
+               ;;
+       carol)
+               searchandreplace PH_IP_CAROL1    $ipv4_carol1 $TESTDIR
+               searchandreplace PH_IP_CAROL     $ipv4_carol  $TESTDIR
+               searchandreplace PH_IP6_CAROL1   $ipv6_carol1 $TESTDIR
+               searchandreplace PH_IP6_CAROL    $ipv6_carol  $TESTDIR
+               ;;
+       dave)
+               searchandreplace PH_IP_DAVE1     $ipv4_dave1 $TESTDIR
+               searchandreplace PH_IP_DAVE      $ipv4_dave  $TESTDIR
+               searchandreplace PH_IP6_DAVE1    $ipv6_dave1 $TESTDIR
+               searchandreplace PH_IP6_DAVE     $ipv6_dave  $TESTDIR
+               ;;
+       winnetou)
+               searchandreplace PH_IP_WINNETOU  $ipv4_winnetou $TESTDIR
+               searchandreplace PH_IP6_WINNETOU $ipv6_winnetou $TESTDIR
+               ;;
+       esac
 done
 
 source $TESTDIR/test.conf
@@ -138,11 +138,11 @@ source $TESTDIR/test.conf
 
 if [ -d $TESTDIR/hosts ]
 then
-    for host in `ls $TESTDIR/hosts`
-    do
-       eval HOSTLOGIN=root@\$ipv4_${host}
-       scp $SSHCONF -r $TESTDIR/hosts/$host/etc $HOSTLOGIN:/ > /dev/null 2>&1
-    done
+       for host in `ls $TESTDIR/hosts`
+       do
+               eval HOSTLOGIN=root@\$ipv4_${host}
+               scp $SSHCONF -r $TESTDIR/hosts/$host/etc $HOSTLOGIN:/ > /dev/null 2>&1
+       done
 fi
 
 
@@ -152,9 +152,9 @@ fi
 
 for host in $IPSECHOSTS
 do
-    eval HOSTLOGIN=root@\$ipv4_${host}
-    ssh $SSHCONF $HOSTLOGIN 'rm -f /var/log/auth.log /var/log/daemon.log; \
-                   kill -SIGHUP `cat /var/run/rsyslogd.pid`' > /dev/null 2>&1
+       eval HOSTLOGIN=root@\$ipv4_${host}
+       ssh $SSHCONF $HOSTLOGIN 'rm -f /var/log/auth.log /var/log/daemon.log; \
+                       kill -SIGHUP `cat /var/run/rsyslogd.pid`' > /dev/null 2>&1
 done
 
 
@@ -164,7 +164,7 @@ done
 
 for host in $RADIUSHOSTS
 do
-    eval HOSTLOGIN=root@\$ipv4_${host}
-    ssh $SSHCONF $HOSTLOGIN 'rm -f /var/log/daemon.log /var/log/freeradius/radius.log; \
-                   kill -SIGHUP `cat /var/run/rsyslogd.pid`' > /dev/null 2>&1
+       eval HOSTLOGIN=root@\$ipv4_${host}
+       ssh $SSHCONF $HOSTLOGIN 'rm -f /var/log/daemon.log /var/log/freeradius/radius.log; \
+                       kill -SIGHUP `cat /var/run/rsyslogd.pid`' > /dev/null 2>&1
 done
index 173baf820a03cd016a1795cfd5d56cbaa8d1b0e6..95f3e5d84421ccf8433014be99c07c901bc6b774 100755 (executable)
@@ -32,10 +32,10 @@ TESTSDIR=$BUILDDIR/tests
 
 if [ -d $TESTSDIR/${testname}/hosts ]
 then
-    for host in `ls $TESTSDIR/${testname}/hosts`
-    do
-       eval HOSTLOGIN="root@`echo $HOSTNAMEIPV4 | sed -n -e "s/^.*${host},//gp" | awk -F, '{ print $1 }' | awk '{ print $1 }'`"
-       scp $SSHCONF -r $HOSTCONFIGDIR/${host}/etc $HOSTLOGIN:/ > /dev/null 2>&1
-       scp $SSHCONF -r $HOSTCONFIGDIR/default/etc $HOSTLOGIN:/ > /dev/null 2>&1
-    done
+       for host in `ls $TESTSDIR/${testname}/hosts`
+       do
+               eval HOSTLOGIN="root@`echo $HOSTNAMEIPV4 | sed -n -e "s/^.*${host},//gp" | awk -F, '{ print $1 }' | awk '{ print $1 }'`"
+               scp $SSHCONF -r $HOSTCONFIGDIR/${host}/etc $HOSTLOGIN:/ > /dev/null 2>&1
+               scp $SSHCONF -r $HOSTCONFIGDIR/default/etc $HOSTLOGIN:/ > /dev/null 2>&1
+       done
 fi