log received vendor id as a hex value
authorAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 27 Jun 2008 17:11:54 +0000 (17:11 -0000)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 27 Jun 2008 17:11:54 +0000 (17:11 -0000)
src/charon/sa/tasks/ike_init.c

index 333404e..5a94ca6 100644 (file)
@@ -26,6 +26,7 @@
 #include <encoding/payloads/sa_payload.h>
 #include <encoding/payloads/ke_payload.h>
 #include <encoding/payloads/nonce_payload.h>
+#include <encoding/payloads/vendor_id_payload.h>
 
 /** maximum retries to do with cookies/other dh groups */
 #define MAX_RETRIES 5
@@ -203,9 +204,17 @@ static void process_payloads(private_ike_init_t *this, message_t *message)
                        case NONCE:
                        {
                                nonce_payload_t *nonce_payload = (nonce_payload_t*)payload;
+
                                this->other_nonce = nonce_payload->get_nonce(nonce_payload);
                                break;
                        }
+                       case VENDOR_ID:
+                       {
+                               vendor_id_payload_t *vendor_id = (vendor_id_payload_t*)payload;
+                               chunk_t vid = vendor_id->get_data(vendor_id);
+
+                               DBG1(DBG_ENC, "received vendor id: %#B", &vid);                                 
+                       }
                        default:
                                break;
                }