display EAP identifiers in HEX format
authorAndreas Steffen <andreas.steffen@strongswan.org>
Wed, 6 Apr 2011 15:34:27 +0000 (17:34 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Wed, 6 Apr 2011 15:34:27 +0000 (17:34 +0200)
src/libcharon/plugins/eap_peap/eap_peap_peer.c
src/libcharon/plugins/eap_ttls/eap_ttls_peer.c
src/libcharon/sa/authenticators/eap_authenticator.c

index a4a92c7..6b6c2a9 100644 (file)
@@ -130,12 +130,12 @@ METHOD(tls_application_t, process, status_t,
                if (received_vendor)
                {
                        DBG1(DBG_IKE, "server requested vendor specific EAP method %d-%d "
-                                                 "(id: %u)", received_type, received_vendor,
+                                                 "(id 0x%02X", received_type, received_vendor,
                                                   in->get_identifier(in));
                }
                else
                {
-                       DBG1(DBG_IKE, "server requested %N authentication (id: %u)",
+                       DBG1(DBG_IKE, "server requested %N authentication (id 0x%02X)",
                                 eap_type_names, received_type, in->get_identifier(in));
                }
                this->ph2_method = charon->eap->create_instance(charon->eap,
index 0ee6bea..f7f676d 100644 (file)
@@ -168,12 +168,12 @@ METHOD(tls_application_t, process, status_t,
                if (received_vendor)
                {
                        DBG1(DBG_IKE, "server requested vendor specific EAP method %d-%d "
-                                                 "(id: %u)", received_type, received_vendor,
+                                                 "(id 0x%02X)", received_type, received_vendor,
                                                   in->get_identifier(in));
                }
                else
                {
-                       DBG1(DBG_IKE, "server requested %N authentication (id: %u)",
+                       DBG1(DBG_IKE, "server requested %N authentication (id 0x%02X)",
                                 eap_type_names, received_type, in->get_identifier(in));
                }
                this->method = charon->eap->create_instance(charon->eap,
index c39fe05..6cae003 100644 (file)
@@ -187,12 +187,12 @@ static eap_payload_t* server_initiate_eap(private_eap_authenticator_t *this,
                {
                        if (vendor)
                        {
-                               DBG1(DBG_IKE, "initiating EAP vendor type %d-%d method (id: %u)",
+                               DBG1(DBG_IKE, "initiating EAP vendor type %d-%d method (id 0x%02X)",
                                         type, vendor, out->get_identifier(out));
                        }
                        else
                        {
-                               DBG1(DBG_IKE, "initiating %N method (id: %u)", eap_type_names,
+                               DBG1(DBG_IKE, "initiating %N method (id 0x%02X)", eap_type_names,
                                         type, out->get_identifier(out));
                        }
                        return out;
@@ -373,11 +373,11 @@ static eap_payload_t* client_process_eap(private_eap_authenticator_t *this,
                if (vendor)
                {
                        DBG1(DBG_IKE, "server requested vendor specific EAP method %d-%d ",
-                                                 "(id: %u)", type, vendor, in->get_identifier(in));
+                                                 "(id 0x%02X)", type, vendor, in->get_identifier(in));
                }
                else
                {
-                       DBG1(DBG_IKE, "server requested %N authentication (id: %u)",
+                       DBG1(DBG_IKE, "server requested %N authentication (id 0x%02X)",
                                 eap_type_names, type, in->get_identifier(in));
                }
                this->method = load_method(this, type, vendor, EAP_PEER);