test_hs_service.c 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578
  1. /* Copyright (c) 2016-2017, The Tor Project, Inc. */
  2. /* See LICENSE for licensing information */
  3. /**
  4. * \file test_hs_service.c
  5. * \brief Test hidden service functionality.
  6. */
  7. #define CIRCUITBUILD_PRIVATE
  8. #define CIRCUITLIST_PRIVATE
  9. #define CONFIG_PRIVATE
  10. #define CONNECTION_PRIVATE
  11. #define CRYPTO_PRIVATE
  12. #define HS_COMMON_PRIVATE
  13. #define HS_SERVICE_PRIVATE
  14. #define HS_INTROPOINT_PRIVATE
  15. #define MAIN_PRIVATE
  16. #define TOR_CHANNEL_INTERNAL_
  17. #include "test.h"
  18. #include "test_helpers.h"
  19. #include "log_test_helpers.h"
  20. #include "rend_test_helpers.h"
  21. #include "or.h"
  22. #include "channeltls.h"
  23. #include "circuitbuild.h"
  24. #include "circuitlist.h"
  25. #include "circuituse.h"
  26. #include "config.h"
  27. #include "connection.h"
  28. #include "crypto.h"
  29. #include "hs_circuit.h"
  30. #include "hs_common.h"
  31. #include "hs_config.h"
  32. #include "hs_ident.h"
  33. #include "hs_intropoint.h"
  34. #include "hs_ntor.h"
  35. #include "hs_service.h"
  36. #include "main.h"
  37. #include "rendservice.h"
  38. /* Trunnel */
  39. #include "hs/cell_establish_intro.h"
  40. /* Helper: from a set of options in conf, configure a service which will add
  41. * it to the staging list of the HS subsytem. */
  42. static int
  43. helper_config_service(const char *conf)
  44. {
  45. int ret = 0;
  46. or_options_t *options = NULL;
  47. tt_assert(conf);
  48. options = helper_parse_options(conf);
  49. tt_assert(options);
  50. ret = hs_config_service_all(options, 0);
  51. done:
  52. or_options_free(options);
  53. return ret;
  54. }
  55. /** We simulate the creation of an outgoing ESTABLISH_INTRO cell, and then we
  56. * parse it from the receiver side. */
  57. static void
  58. test_gen_establish_intro_cell(void *arg)
  59. {
  60. (void) arg;
  61. ssize_t retval;
  62. uint8_t circuit_key_material[DIGEST_LEN] = {0};
  63. uint8_t buf[RELAY_PAYLOAD_SIZE];
  64. trn_cell_establish_intro_t *cell_out = NULL;
  65. trn_cell_establish_intro_t *cell_in = NULL;
  66. crypto_rand((char *) circuit_key_material, sizeof(circuit_key_material));
  67. /* Create outgoing ESTABLISH_INTRO cell and extract its payload so that we
  68. attempt to parse it. */
  69. {
  70. cell_out = generate_establish_intro_cell(circuit_key_material,
  71. sizeof(circuit_key_material));
  72. tt_assert(cell_out);
  73. retval = get_establish_intro_payload(buf, sizeof(buf), cell_out);
  74. tt_int_op(retval, >=, 0);
  75. }
  76. /* Parse it as the receiver */
  77. {
  78. ssize_t parse_result = trn_cell_establish_intro_parse(&cell_in,
  79. buf, sizeof(buf));
  80. tt_int_op(parse_result, >=, 0);
  81. retval = verify_establish_intro_cell(cell_in,
  82. circuit_key_material,
  83. sizeof(circuit_key_material));
  84. tt_int_op(retval, >=, 0);
  85. }
  86. done:
  87. trn_cell_establish_intro_free(cell_out);
  88. trn_cell_establish_intro_free(cell_in);
  89. }
  90. /* Mocked ed25519_sign_prefixed() function that always fails :) */
  91. static int
  92. mock_ed25519_sign_prefixed(ed25519_signature_t *signature_out,
  93. const uint8_t *msg, size_t msg_len,
  94. const char *prefix_str,
  95. const ed25519_keypair_t *keypair) {
  96. (void) signature_out;
  97. (void) msg;
  98. (void) msg_len;
  99. (void) prefix_str;
  100. (void) keypair;
  101. return -1;
  102. }
  103. /** We simulate a failure to create an ESTABLISH_INTRO cell */
  104. static void
  105. test_gen_establish_intro_cell_bad(void *arg)
  106. {
  107. (void) arg;
  108. trn_cell_establish_intro_t *cell = NULL;
  109. uint8_t circuit_key_material[DIGEST_LEN] = {0};
  110. MOCK(ed25519_sign_prefixed, mock_ed25519_sign_prefixed);
  111. crypto_rand((char *) circuit_key_material, sizeof(circuit_key_material));
  112. setup_full_capture_of_logs(LOG_WARN);
  113. /* Easiest way to make that function fail is to mock the
  114. ed25519_sign_prefixed() function and make it fail. */
  115. cell = generate_establish_intro_cell(circuit_key_material,
  116. sizeof(circuit_key_material));
  117. expect_log_msg_containing("Unable to gen signature for "
  118. "ESTABLISH_INTRO cell.");
  119. teardown_capture_of_logs();
  120. tt_assert(!cell);
  121. done:
  122. trn_cell_establish_intro_free(cell);
  123. UNMOCK(ed25519_sign_prefixed);
  124. }
  125. /** Test the HS ntor handshake. Simulate the sending of an encrypted INTRODUCE1
  126. * cell, and verify the proper derivation of decryption keys on the other end.
  127. * Then simulate the sending of an authenticated RENDEZVOUS1 cell and verify
  128. * the proper verification on the other end. */
  129. static void
  130. test_hs_ntor(void *arg)
  131. {
  132. int retval;
  133. uint8_t subcredential[DIGEST256_LEN];
  134. ed25519_keypair_t service_intro_auth_keypair;
  135. curve25519_keypair_t service_intro_enc_keypair;
  136. curve25519_keypair_t service_ephemeral_rend_keypair;
  137. curve25519_keypair_t client_ephemeral_enc_keypair;
  138. hs_ntor_intro_cell_keys_t client_hs_ntor_intro_cell_keys;
  139. hs_ntor_intro_cell_keys_t service_hs_ntor_intro_cell_keys;
  140. hs_ntor_rend_cell_keys_t service_hs_ntor_rend_cell_keys;
  141. hs_ntor_rend_cell_keys_t client_hs_ntor_rend_cell_keys;
  142. (void) arg;
  143. /* Generate fake data for this unittest */
  144. {
  145. /* Generate fake subcredential */
  146. memset(subcredential, 'Z', DIGEST256_LEN);
  147. /* service */
  148. curve25519_keypair_generate(&service_intro_enc_keypair, 0);
  149. ed25519_keypair_generate(&service_intro_auth_keypair, 0);
  150. curve25519_keypair_generate(&service_ephemeral_rend_keypair, 0);
  151. /* client */
  152. curve25519_keypair_generate(&client_ephemeral_enc_keypair, 0);
  153. }
  154. /* Client: Simulate the sending of an encrypted INTRODUCE1 cell */
  155. retval =
  156. hs_ntor_client_get_introduce1_keys(&service_intro_auth_keypair.pubkey,
  157. &service_intro_enc_keypair.pubkey,
  158. &client_ephemeral_enc_keypair,
  159. subcredential,
  160. &client_hs_ntor_intro_cell_keys);
  161. tt_int_op(retval, ==, 0);
  162. /* Service: Simulate the decryption of the received INTRODUCE1 */
  163. retval =
  164. hs_ntor_service_get_introduce1_keys(&service_intro_auth_keypair.pubkey,
  165. &service_intro_enc_keypair,
  166. &client_ephemeral_enc_keypair.pubkey,
  167. subcredential,
  168. &service_hs_ntor_intro_cell_keys);
  169. tt_int_op(retval, ==, 0);
  170. /* Test that the INTRODUCE1 encryption/mac keys match! */
  171. tt_mem_op(client_hs_ntor_intro_cell_keys.enc_key, OP_EQ,
  172. service_hs_ntor_intro_cell_keys.enc_key,
  173. CIPHER256_KEY_LEN);
  174. tt_mem_op(client_hs_ntor_intro_cell_keys.mac_key, OP_EQ,
  175. service_hs_ntor_intro_cell_keys.mac_key,
  176. DIGEST256_LEN);
  177. /* Service: Simulate creation of RENDEZVOUS1 key material. */
  178. retval =
  179. hs_ntor_service_get_rendezvous1_keys(&service_intro_auth_keypair.pubkey,
  180. &service_intro_enc_keypair,
  181. &service_ephemeral_rend_keypair,
  182. &client_ephemeral_enc_keypair.pubkey,
  183. &service_hs_ntor_rend_cell_keys);
  184. tt_int_op(retval, ==, 0);
  185. /* Client: Simulate the verification of a received RENDEZVOUS1 cell */
  186. retval =
  187. hs_ntor_client_get_rendezvous1_keys(&service_intro_auth_keypair.pubkey,
  188. &client_ephemeral_enc_keypair,
  189. &service_intro_enc_keypair.pubkey,
  190. &service_ephemeral_rend_keypair.pubkey,
  191. &client_hs_ntor_rend_cell_keys);
  192. tt_int_op(retval, ==, 0);
  193. /* Test that the RENDEZVOUS1 key material match! */
  194. tt_mem_op(client_hs_ntor_rend_cell_keys.rend_cell_auth_mac, OP_EQ,
  195. service_hs_ntor_rend_cell_keys.rend_cell_auth_mac,
  196. DIGEST256_LEN);
  197. tt_mem_op(client_hs_ntor_rend_cell_keys.ntor_key_seed, OP_EQ,
  198. service_hs_ntor_rend_cell_keys.ntor_key_seed,
  199. DIGEST256_LEN);
  200. done:
  201. ;
  202. }
  203. static void
  204. test_validate_address(void *arg)
  205. {
  206. int ret;
  207. (void) arg;
  208. /* Address too short and too long. */
  209. setup_full_capture_of_logs(LOG_WARN);
  210. ret = hs_address_is_valid("blah");
  211. tt_int_op(ret, OP_EQ, 0);
  212. expect_log_msg_containing("has an invalid length");
  213. teardown_capture_of_logs();
  214. setup_full_capture_of_logs(LOG_WARN);
  215. ret = hs_address_is_valid(
  216. "p3xnclpu4mu22dwaurjtsybyqk4xfjmcfz6z62yl24uwmhjatiwnlnadb");
  217. tt_int_op(ret, OP_EQ, 0);
  218. expect_log_msg_containing("has an invalid length");
  219. teardown_capture_of_logs();
  220. /* Invalid checksum (taken from prop224) */
  221. setup_full_capture_of_logs(LOG_WARN);
  222. ret = hs_address_is_valid(
  223. "l5satjgud6gucryazcyvyvhuxhr74u6ygigiuyixe3a6ysis67ororad");
  224. tt_int_op(ret, OP_EQ, 0);
  225. expect_log_msg_containing("invalid checksum");
  226. teardown_capture_of_logs();
  227. setup_full_capture_of_logs(LOG_WARN);
  228. ret = hs_address_is_valid(
  229. "btojiu7nu5y5iwut64eufevogqdw4wmqzugnoluw232r4t3ecsfv37ad");
  230. tt_int_op(ret, OP_EQ, 0);
  231. expect_log_msg_containing("invalid checksum");
  232. teardown_capture_of_logs();
  233. /* Non base32 decodable string. */
  234. setup_full_capture_of_logs(LOG_WARN);
  235. ret = hs_address_is_valid(
  236. "????????????????????????????????????????????????????????");
  237. tt_int_op(ret, OP_EQ, 0);
  238. expect_log_msg_containing("can't be decoded");
  239. teardown_capture_of_logs();
  240. /* Valid address. */
  241. ret = hs_address_is_valid(
  242. "p3xnclpu4mu22dwaurjtsybyqk4xfjmcfz6z62yl24uwmhjatiwnlnad");
  243. tt_int_op(ret, OP_EQ, 1);
  244. done:
  245. ;
  246. }
  247. static void
  248. test_build_address(void *arg)
  249. {
  250. int ret;
  251. char onion_addr[HS_SERVICE_ADDR_LEN_BASE32 + 1];
  252. ed25519_public_key_t pubkey;
  253. (void) arg;
  254. /* The following has been created with hs_build_address.py script that
  255. * follows proposal 224 specification to build an onion address. */
  256. static const char *test_addr =
  257. "ijbeeqscijbeeqscijbeeqscijbeeqscijbeeqscijbeeqscijbezhid";
  258. /* Let's try to build the same onion address that the script can do. Key is
  259. * a long set of very random \x42 :). */
  260. memset(&pubkey, '\x42', sizeof(pubkey));
  261. hs_build_address(&pubkey, HS_VERSION_THREE, onion_addr);
  262. tt_str_op(test_addr, OP_EQ, onion_addr);
  263. /* Validate that address. */
  264. ret = hs_address_is_valid(onion_addr);
  265. tt_int_op(ret, OP_EQ, 1);
  266. done:
  267. ;
  268. }
  269. /** Test that our HS time period calculation functions work properly */
  270. static void
  271. test_time_period(void *arg)
  272. {
  273. (void) arg;
  274. uint64_t tn;
  275. int retval;
  276. time_t fake_time;
  277. /* Let's do the example in prop224 section [TIME-PERIODS] */
  278. retval = parse_rfc1123_time("Wed, 13 Apr 2016 11:00:00 UTC",
  279. &fake_time);
  280. tt_int_op(retval, ==, 0);
  281. /* Check that the time period number is right */
  282. tn = hs_get_time_period_num(fake_time);
  283. tt_u64_op(tn, ==, 16903);
  284. /* Increase current time to 11:59:59 UTC and check that the time period
  285. number is still the same */
  286. fake_time += 3599;
  287. tn = hs_get_time_period_num(fake_time);
  288. tt_u64_op(tn, ==, 16903);
  289. /* Now take time to 12:00:00 UTC and check that the time period rotated */
  290. fake_time += 1;
  291. tn = hs_get_time_period_num(fake_time);
  292. tt_u64_op(tn, ==, 16904);
  293. /* Now also check our hs_get_next_time_period_num() function */
  294. tn = hs_get_next_time_period_num(fake_time);
  295. tt_u64_op(tn, ==, 16905);
  296. done:
  297. ;
  298. }
  299. /* Test: Ensure that setting up rendezvous circuits works correctly. */
  300. static void
  301. test_e2e_rend_circuit_setup(void *arg)
  302. {
  303. ed25519_public_key_t service_pk;
  304. origin_circuit_t *or_circ;
  305. int retval;
  306. /** In this test we create a v3 prop224 service-side rendezvous circuit.
  307. * We simulate an HS ntor key exchange with a client, and check that
  308. * the circuit was setup correctly and is ready to accept rendezvous data */
  309. (void) arg;
  310. /* Now make dummy circuit */
  311. {
  312. or_circ = origin_circuit_new();
  313. or_circ->base_.purpose = CIRCUIT_PURPOSE_S_CONNECT_REND;
  314. or_circ->build_state = tor_malloc_zero(sizeof(cpath_build_state_t));
  315. or_circ->build_state->is_internal = 1;
  316. /* prop224: Setup hs conn identifier on the stream */
  317. ed25519_secret_key_t sk;
  318. tt_int_op(0, OP_EQ, ed25519_secret_key_generate(&sk, 0));
  319. tt_int_op(0, OP_EQ, ed25519_public_key_generate(&service_pk, &sk));
  320. or_circ->hs_ident = hs_ident_circuit_new(&service_pk,
  321. HS_IDENT_CIRCUIT_RENDEZVOUS);
  322. TO_CIRCUIT(or_circ)->state = CIRCUIT_STATE_OPEN;
  323. }
  324. /* Check number of hops */
  325. retval = cpath_get_n_hops(&or_circ->cpath);
  326. tt_int_op(retval, OP_EQ, 0);
  327. /* Setup the circuit: do the ntor key exchange */
  328. {
  329. uint8_t ntor_key_seed[DIGEST256_LEN] = {2};
  330. retval = hs_circuit_setup_e2e_rend_circ(or_circ,
  331. ntor_key_seed, sizeof(ntor_key_seed),
  332. 1);
  333. tt_int_op(retval, OP_EQ, 0);
  334. }
  335. /* See that a hop was added to the circuit's cpath */
  336. retval = cpath_get_n_hops(&or_circ->cpath);
  337. tt_int_op(retval, OP_EQ, 1);
  338. /* Check the digest algo */
  339. tt_int_op(crypto_digest_get_algorithm(or_circ->cpath->f_digest),
  340. OP_EQ, DIGEST_SHA3_256);
  341. tt_int_op(crypto_digest_get_algorithm(or_circ->cpath->b_digest),
  342. OP_EQ, DIGEST_SHA3_256);
  343. tt_assert(or_circ->cpath->f_crypto);
  344. tt_assert(or_circ->cpath->b_crypto);
  345. /* Ensure that circ purpose was changed */
  346. tt_int_op(or_circ->base_.purpose, OP_EQ, CIRCUIT_PURPOSE_S_REND_JOINED);
  347. done:
  348. circuit_free(TO_CIRCUIT(or_circ));
  349. }
  350. static void
  351. test_load_keys(void *arg)
  352. {
  353. int ret;
  354. char *conf = NULL;
  355. char *hsdir_v2 = tor_strdup(get_fname("hs2"));
  356. char *hsdir_v3 = tor_strdup(get_fname("hs3"));
  357. char addr[HS_SERVICE_ADDR_LEN_BASE32 + 1];
  358. (void) arg;
  359. /* We'll register two services, a v2 and a v3, then we'll load keys and
  360. * validate that both are in a correct state. */
  361. hs_init();
  362. #define conf_fmt \
  363. "HiddenServiceDir %s\n" \
  364. "HiddenServiceVersion %d\n" \
  365. "HiddenServicePort 65535\n"
  366. /* v2 service. */
  367. tor_asprintf(&conf, conf_fmt, hsdir_v2, HS_VERSION_TWO);
  368. ret = helper_config_service(conf);
  369. tor_free(conf);
  370. tt_int_op(ret, OP_EQ, 0);
  371. /* This one should now be registered into the v2 list. */
  372. tt_int_op(get_hs_service_staging_list_size(), OP_EQ, 0);
  373. tt_int_op(num_rend_services(), OP_EQ, 1);
  374. /* v3 service. */
  375. tor_asprintf(&conf, conf_fmt, hsdir_v3, HS_VERSION_THREE);
  376. ret = helper_config_service(conf);
  377. tor_free(conf);
  378. tt_int_op(ret, OP_EQ, 0);
  379. /* It's in staging? */
  380. tt_int_op(get_hs_service_staging_list_size(), OP_EQ, 1);
  381. /* Load the keys for these. After that, the v3 service should be registered
  382. * in the global map. */
  383. hs_service_load_all_keys();
  384. tt_int_op(get_hs_service_map_size(), OP_EQ, 1);
  385. hs_service_t *s = get_first_service();
  386. tt_assert(s);
  387. /* Ok we have the service object. Validate few things. */
  388. tt_assert(!tor_mem_is_zero(s->onion_address, sizeof(s->onion_address)));
  389. tt_int_op(hs_address_is_valid(s->onion_address), OP_EQ, 1);
  390. tt_assert(!tor_mem_is_zero((char *) s->keys.identity_sk.seckey,
  391. ED25519_SECKEY_LEN));
  392. tt_assert(!tor_mem_is_zero((char *) s->keys.identity_pk.pubkey,
  393. ED25519_PUBKEY_LEN));
  394. /* Check onion address from identity key. */
  395. hs_build_address(&s->keys.identity_pk, s->config.version, addr);
  396. tt_int_op(hs_address_is_valid(addr), OP_EQ, 1);
  397. tt_str_op(addr, OP_EQ, s->onion_address);
  398. done:
  399. tor_free(hsdir_v2);
  400. tor_free(hsdir_v3);
  401. hs_free_all();
  402. }
  403. static void
  404. test_access_service(void *arg)
  405. {
  406. int ret;
  407. char *conf = NULL;
  408. char *hsdir_v3 = tor_strdup(get_fname("hs3"));
  409. hs_service_ht *global_map;
  410. hs_service_t *s = NULL;
  411. (void) arg;
  412. /* We'll register two services, a v2 and a v3, then we'll load keys and
  413. * validate that both are in a correct state. */
  414. hs_init();
  415. #define conf_fmt \
  416. "HiddenServiceDir %s\n" \
  417. "HiddenServiceVersion %d\n" \
  418. "HiddenServicePort 65535\n"
  419. /* v3 service. */
  420. tor_asprintf(&conf, conf_fmt, hsdir_v3, HS_VERSION_THREE);
  421. ret = helper_config_service(conf);
  422. tor_free(conf);
  423. tt_int_op(ret, OP_EQ, 0);
  424. /* It's in staging? */
  425. tt_int_op(get_hs_service_staging_list_size(), OP_EQ, 1);
  426. /* Load the keys for these. After that, the v3 service should be registered
  427. * in the global map. */
  428. hs_service_load_all_keys();
  429. tt_int_op(get_hs_service_map_size(), OP_EQ, 1);
  430. s = get_first_service();
  431. tt_assert(s);
  432. global_map = get_hs_service_map();
  433. tt_assert(global_map);
  434. /* From here, we'll try the service accessors. */
  435. hs_service_t *query = find_service(global_map, &s->keys.identity_pk);
  436. tt_assert(query);
  437. tt_mem_op(query, OP_EQ, s, sizeof(hs_service_t));
  438. /* Remove service, check if it actually works and then put it back. */
  439. remove_service(global_map, s);
  440. tt_int_op(get_hs_service_map_size(), OP_EQ, 0);
  441. query = find_service(global_map, &s->keys.identity_pk);
  442. tt_assert(!query);
  443. /* Register back the service in the map. */
  444. ret = register_service(global_map, s);
  445. tt_int_op(ret, OP_EQ, 0);
  446. tt_int_op(get_hs_service_map_size(), OP_EQ, 1);
  447. /* Twice should fail. */
  448. ret = register_service(global_map, s);
  449. tt_int_op(ret, OP_EQ, -1);
  450. /* Remove service from map so we don't double free on cleanup. */
  451. remove_service(global_map, s);
  452. tt_int_op(get_hs_service_map_size(), OP_EQ, 0);
  453. query = find_service(global_map, &s->keys.identity_pk);
  454. tt_assert(!query);
  455. /* Let's try to remove twice for fun. */
  456. setup_full_capture_of_logs(LOG_WARN);
  457. remove_service(global_map, s);
  458. expect_log_msg_containing("Could not find service in the global map");
  459. teardown_capture_of_logs();
  460. done:
  461. hs_service_free(s);
  462. tor_free(hsdir_v3);
  463. hs_free_all();
  464. }
  465. struct testcase_t hs_service_tests[] = {
  466. { "gen_establish_intro_cell", test_gen_establish_intro_cell, TT_FORK,
  467. NULL, NULL },
  468. { "gen_establish_intro_cell_bad", test_gen_establish_intro_cell_bad, TT_FORK,
  469. NULL, NULL },
  470. { "hs_ntor", test_hs_ntor, TT_FORK,
  471. NULL, NULL },
  472. { "time_period", test_time_period, TT_FORK,
  473. NULL, NULL },
  474. { "e2e_rend_circuit_setup", test_e2e_rend_circuit_setup, TT_FORK,
  475. NULL, NULL },
  476. { "build_address", test_build_address, TT_FORK,
  477. NULL, NULL },
  478. { "validate_address", test_validate_address, TT_FORK,
  479. NULL, NULL },
  480. { "load_keys", test_load_keys, TT_FORK,
  481. NULL, NULL },
  482. { "access_service", test_access_service, TT_FORK,
  483. NULL, NULL },
  484. END_OF_TESTCASES
  485. };