]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
PEAP white space cleanups
authorMartin Willi <martin@revosec.ch>
Wed, 29 Aug 2012 13:50:36 +0000 (15:50 +0200)
committerMartin Willi <martin@revosec.ch>
Mon, 3 Sep 2012 08:25:14 +0000 (10:25 +0200)
src/libcharon/plugins/eap_peap/eap_peap.c
src/libcharon/plugins/eap_peap/eap_peap_avp.c
src/libcharon/plugins/eap_peap/eap_peap_peer.c
src/libcharon/plugins/eap_peap/eap_peap_server.c

index 8aba703c5215e5ea86f73d9a72d094f8259b1b00..63b7201d43044044c13f014ed2c5033cef50ccc4 100644 (file)
@@ -172,7 +172,7 @@ static eap_peap_t *eap_peap_create(private_eap_peap_t * this,
        tls = tls_create(is_server, server, peer, TLS_PURPOSE_EAP_PEAP,
                                         application, NULL);
        this->tls_eap = tls_eap_create(EAP_PEAP, tls, frag_size, max_msg_count,
-                                                                                                 include_length);
+                                                                  include_length);
        if (!this->tls_eap)
        {
                application->destroy(application);
index 10f6ec11c438508951d4de93862baaf30522b4b7..36f605e22c7d28833e941c86733d3f52a15ad030 100644 (file)
@@ -78,7 +78,7 @@ METHOD(eap_peap_avp_t, build, void,
        }
        */
        else
-       {       
+       {
                avp_data = chunk_skip(data, 4);
        }
        writer->write_data(writer, avp_data);
index 79fd667cb73ee8cfb1c8c9fb7c667d61ae7d2b07..1cee90dd6eeceac6d38966dc39509069c38309c3 100644 (file)
@@ -42,17 +42,17 @@ struct private_eap_peap_peer_t {
        identification_t *peer;
 
        /**
-     * Outer phase 1 EAP method
+        * Outer phase 1 EAP method
         */
        eap_method_t *ph1_method;
 
        /**
-     * Current phase 2 EAP method
+        * Current phase 2 EAP method
         */
        eap_method_t *ph2_method;
 
        /**
-     * Pending outbound EAP message
+        * Pending outbound EAP message
         */
        eap_payload_t *out;
 
@@ -101,9 +101,8 @@ METHOD(tls_application_t, process, status_t,
        if (code == EAP_REQUEST || code == EAP_RESPONSE)
        {
                received_type = in->get_type(in, &received_vendor);
-               DBG1(DBG_IKE, "received tunneled EAP-PEAP AVP [EAP/%N/%N]",
-                                                               eap_code_short_names, code,
-                                                               eap_type_short_names, received_type);
+               DBG1(DBG_IKE, "received tunneled EAP-PEAP AVP [ EAP/%N/%N ]",
+                        eap_code_short_names, code, eap_type_short_names, received_type);
                if (code != EAP_REQUEST)
                {
                        DBG1(DBG_IKE, "%N expected", eap_code_names, EAP_REQUEST);
@@ -113,8 +112,8 @@ METHOD(tls_application_t, process, status_t,
        }
        else
        {
-               DBG1(DBG_IKE, "received tunneled EAP-PEAP AVP [EAP/%N]",
-                                                               eap_code_short_names, code);
+               DBG1(DBG_IKE, "received tunneled EAP-PEAP AVP [ EAP/%N ]",
+                        eap_code_short_names, code);
                this->out = eap_payload_create_code(code, in->get_identifier(in));
                in->destroy(in);
                return NEED_MORE;
@@ -137,8 +136,8 @@ METHOD(tls_application_t, process, status_t,
                if (received_vendor)
                {
                        DBG1(DBG_IKE, "server requested vendor specific EAP method %d-%d "
-                                                 "(id 0x%02X", received_type, received_vendor,
-                                                  in->get_identifier(in));
+                                "(id 0x%02X", received_type, received_vendor,
+                                in->get_identifier(in));
                }
                else
                {
@@ -175,7 +174,7 @@ METHOD(tls_application_t, process, status_t,
                        if (vendor)
                        {
                                DBG1(DBG_IKE, "vendor specific EAP method %d-%d failed",
-                                                          type, vendor);
+                                        type, vendor);
                        }
                        else
                        {
@@ -199,12 +198,12 @@ METHOD(tls_application_t, build, status_t,
                type = this->out->get_type(this->out, &vendor);
                if (code == EAP_REQUEST || code == EAP_RESPONSE)
                {
-                       DBG1(DBG_IKE, "sending tunneled EAP-PEAP AVP [EAP/%N/%N]",
+                       DBG1(DBG_IKE, "sending tunneled EAP-PEAP AVP [ EAP/%N/%N ]",
                                 eap_code_short_names, code, eap_type_short_names, type);
                }
                else
                {
-                       DBG1(DBG_IKE, "sending tunneled EAP-PEAP AVP [EAP/%N]",
+                       DBG1(DBG_IKE, "sending tunneled EAP-PEAP AVP [ EAP/%N ]",
                                 eap_code_short_names, code);
                }
 
index 0e80465010016da0f157c35d4c852f6452d43234..bbc937337fdff2a507b957192af96fb4bb6ab220 100644 (file)
@@ -62,17 +62,17 @@ struct private_eap_peap_server_t {
        eap_code_t phase2_result;
 
        /**
-     * Outer phase 1 EAP method
+        * Outer phase 1 EAP method
         */
        eap_method_t *ph1_method;
 
        /**
-     * Current phase 2 EAP method
+        * Current phase 2 EAP method
         */
        eap_method_t *ph2_method;
 
        /**
-     * Pending outbound EAP message
+        * Pending outbound EAP message
         */
        eap_payload_t *out;
 
@@ -119,7 +119,7 @@ static status_t start_phase2_auth(private_eap_peap_server_t *this)
        else
        {
                DBG1(DBG_IKE, "%N method failed", eap_type_names, type);
-                       return FAILED;
+               return FAILED;
        }
 }
 
@@ -197,7 +197,7 @@ METHOD(tls_application_t, process, status_t,
        if (code == EAP_REQUEST || code == EAP_RESPONSE)
        {
                received_type = in->get_type(in, &received_vendor);
-               DBG1(DBG_IKE, "received tunneled EAP-PEAP AVP [EAP/%N/%N]",
+               DBG1(DBG_IKE, "received tunneled EAP-PEAP AVP [ EAP/%N/%N ]",
                                                                eap_code_short_names, code,
                                                                eap_type_short_names, received_type);
                if (code != EAP_RESPONSE)
@@ -209,7 +209,7 @@ METHOD(tls_application_t, process, status_t,
        }
        else
        {
-               DBG1(DBG_IKE, "received tunneled EAP-PEAP AVP [EAP/%N]",
+               DBG1(DBG_IKE, "received tunneled EAP-PEAP AVP [ EAP/%N ]",
                                                                eap_code_short_names, code);
 
                /* if EAP_SUCCESS check if to continue phase2 with EAP-TNC */