(no commit message)
[strongswan.git] / Source / charon / testcases / kernel_interface_test.c
index 1c475ec..2f26c80 100644 (file)
@@ -33,7 +33,7 @@
 /* 
  * described in Header-File
  */
-void test_kernel_interface(tester_t *tester)
+void test_kernel_interface(protected_tester_t *tester)
 {
        kernel_interface_t *kernel_interface;
        u_int32_t spi;
@@ -60,16 +60,15 @@ void test_kernel_interface(tester_t *tester)
        
        kernel_interface = kernel_interface_create();
        
-       me = host_create(AF_INET, "152.96.193.130", 500);
-       other = host_create(AF_INET, "152.96.193.130", 500);
+       me = host_create(AF_INET, "127.0.0.1", 0);
+       other = host_create(AF_INET, "127.0.0.1", 0);
 
 
 
-       //status = kernel_interface->get_spi(kernel_interface, me, other, 51, TRUE, &spi);
-       //status |= kernel_interface->get_spi(kernel_interface, me, other, 50, TRUE, &spi);
+       //status = kernel_interface->get_spi(kernel_interface, me, other, 50, TRUE, &spi);
        //tester->assert_true(tester, status == SUCCESS, "spi get");
 
-       status = kernel_interface->add_sa(kernel_interface, me, other, spi, 50, TRUE, ENCR_AES_CBC, 16, enc_key,AUTH_HMAC_MD5_96,16,inc_key,FALSE);     
+       status = kernel_interface->add_sa(kernel_interface, me, other, spi, 50, TRUE, ENCR_AES_CBC, enc_key,AUTH_HMAC_MD5_96,inc_key,TRUE);     
        tester->assert_true(tester, status == SUCCESS, "build sa");