(no commit message)
[strongswan.git] / Source / charon / testcases / kernel_interface_test.c
index 8a24fb7..2f26c80 100644 (file)
@@ -60,15 +60,15 @@ void test_kernel_interface(protected_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, 50, TRUE, &spi);
-       tester->assert_true(tester, status == SUCCESS, "spi get");
+       //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,TRUE);      
+       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");