diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-11-05 21:54:44 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-11-05 21:54:44 +0000 |
commit | bdc3b54372a92874c2ecb58069eac5bdfe6fcddc (patch) | |
tree | 575c606a8f81c1f0baabad43bf34789023513ee7 /src/transport/test_plugin_transport_https.c | |
parent | f0963cfb7a694f9a7c7ff28471660242529f00a8 (diff) | |
download | gnunet-bdc3b54372a92874c2ecb58069eac5bdfe6fcddc.tar.gz gnunet-bdc3b54372a92874c2ecb58069eac5bdfe6fcddc.zip |
moving plugin headers
Diffstat (limited to 'src/transport/test_plugin_transport_https.c')
-rw-r--r-- | src/transport/test_plugin_transport_https.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/transport/test_plugin_transport_https.c b/src/transport/test_plugin_transport_https.c index 0abc307b4..d13c2346a 100644 --- a/src/transport/test_plugin_transport_https.c +++ b/src/transport/test_plugin_transport_https.c | |||
@@ -18,8 +18,8 @@ | |||
18 | Boston, MA 02111-1307, USA. | 18 | Boston, MA 02111-1307, USA. |
19 | */ | 19 | */ |
20 | /** | 20 | /** |
21 | * @file transport/test_plugin_transport_https.c | 21 | * @file transport/test_gnunet_transport_plugin.https.c |
22 | * @brief testcase for plugin_transport_https.c | 22 | * @brief testcase for gnunet_transport_plugin.https.c |
23 | * @author Matthias Wachs | 23 | * @author Matthias Wachs |
24 | */ | 24 | */ |
25 | 25 | ||
@@ -37,7 +37,7 @@ | |||
37 | #include "gnunet_service_lib.h" | 37 | #include "gnunet_service_lib.h" |
38 | #include "gnunet_crypto_lib.h" | 38 | #include "gnunet_crypto_lib.h" |
39 | 39 | ||
40 | #include "plugin_transport.h" | 40 | #include "gnunet_transport_plugin.h" |
41 | #include "gnunet_statistics_service.h" | 41 | #include "gnunet_statistics_service.h" |
42 | #include "transport.h" | 42 | #include "transport.h" |
43 | #include <curl/curl.h> | 43 | #include <curl/curl.h> |
@@ -462,10 +462,10 @@ shutdown_clean () | |||
462 | 462 | ||
463 | GNUNET_free(test_addr); | 463 | GNUNET_free(test_addr); |
464 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Unloading https plugin\n"); | 464 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Unloading https plugin\n"); |
465 | GNUNET_assert (NULL == GNUNET_PLUGIN_unload ("libgnunet_plugin_transport_https", api)); | 465 | GNUNET_assert (NULL == GNUNET_PLUGIN_unload ("libgnunet_gnunet_transport_plugin.https", api)); |
466 | 466 | ||
467 | GNUNET_SCHEDULER_shutdown(); | 467 | GNUNET_SCHEDULER_shutdown(); |
468 | GNUNET_DISK_directory_remove ("/tmp/test_plugin_transport_http"); | 468 | GNUNET_DISK_directory_remove ("/tmp/test_gnunet_transport_plugin.http"); |
469 | 469 | ||
470 | struct stat sbuf; | 470 | struct stat sbuf; |
471 | if (0 == stat (cert_file, &sbuf )) | 471 | if (0 == stat (cert_file, &sbuf )) |
@@ -1266,7 +1266,7 @@ run (void *cls, | |||
1266 | 1266 | ||
1267 | /* load plugins... */ | 1267 | /* load plugins... */ |
1268 | setup_plugin_environment (); | 1268 | setup_plugin_environment (); |
1269 | GNUNET_asprintf (&libname, "libgnunet_plugin_transport_https"); | 1269 | GNUNET_asprintf (&libname, "libgnunet_gnunet_transport_plugin.https"); |
1270 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, _("Loading HTTPS transport plugin `%s'\n"),libname); | 1270 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, _("Loading HTTPS transport plugin `%s'\n"),libname); |
1271 | api = GNUNET_PLUGIN_load (libname, &env); | 1271 | api = GNUNET_PLUGIN_load (libname, &env); |
1272 | GNUNET_free (libname); | 1272 | GNUNET_free (libname); |
@@ -1376,7 +1376,7 @@ main (int argc, char *const *argv) | |||
1376 | }; | 1376 | }; |
1377 | int ret; | 1377 | int ret; |
1378 | char *const argv_prog[] = { | 1378 | char *const argv_prog[] = { |
1379 | "test_plugin_transport_https", | 1379 | "test_gnunet_transport_plugin.https", |
1380 | "-c", | 1380 | "-c", |
1381 | "test_plugin_transport_data_http.conf", | 1381 | "test_plugin_transport_data_http.conf", |
1382 | "-L", | 1382 | "-L", |
@@ -1387,7 +1387,7 @@ main (int argc, char *const *argv) | |||
1387 | #endif | 1387 | #endif |
1388 | NULL | 1388 | NULL |
1389 | }; | 1389 | }; |
1390 | GNUNET_log_setup ("test_plugin_transport_https", | 1390 | GNUNET_log_setup ("test_gnunet_transport_plugin.https", |
1391 | #if VERBOSE | 1391 | #if VERBOSE |
1392 | "DEBUG", | 1392 | "DEBUG", |
1393 | #else | 1393 | #else |
@@ -1398,12 +1398,12 @@ main (int argc, char *const *argv) | |||
1398 | ret = (GNUNET_OK == | 1398 | ret = (GNUNET_OK == |
1399 | GNUNET_PROGRAM_run (5, | 1399 | GNUNET_PROGRAM_run (5, |
1400 | argv_prog, | 1400 | argv_prog, |
1401 | "test_plugin_transport_https", | 1401 | "test_gnunet_transport_plugin.https", |
1402 | "testcase", options, &run, NULL)) ? GNUNET_NO : GNUNET_YES; | 1402 | "testcase", options, &run, NULL)) ? GNUNET_NO : GNUNET_YES; |
1403 | 1403 | ||
1404 | GNUNET_DISK_directory_remove ("/tmp/test_plugin_transport_https"); | 1404 | GNUNET_DISK_directory_remove ("/tmp/test_gnunet_transport_plugin.https"); |
1405 | 1405 | ||
1406 | return fail; | 1406 | return fail; |
1407 | } | 1407 | } |
1408 | 1408 | ||
1409 | /* end of test_plugin_transport_http.c */ | 1409 | /* end of test_gnunet_transport_plugin.http.c */ |