diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-07-15 21:43:30 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-07-15 21:43:30 +0000 |
commit | d0550c56cee3e21663b5a09e97024aef69fb83a7 (patch) | |
tree | d0a64c6ea37780f0dcce9f7fcfe4e32cd7118494 | |
parent | e1f35f347f36df880838d5a208d2998e218aaecf (diff) | |
download | gnunet-d0550c56cee3e21663b5a09e97024aef69fb83a7.tar.gz gnunet-d0550c56cee3e21663b5a09e97024aef69fb83a7.zip |
-notes on what is left
-rw-r--r-- | src/identity/gnunet-service-identity.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/identity/gnunet-service-identity.c b/src/identity/gnunet-service-identity.c index 62485f353..8284b6537 100644 --- a/src/identity/gnunet-service-identity.c +++ b/src/identity/gnunet-service-identity.c | |||
@@ -25,6 +25,10 @@ | |||
25 | * | 25 | * |
26 | * The purpose of this service is to manage private keys that | 26 | * The purpose of this service is to manage private keys that |
27 | * represent the various egos/pseudonyms/identities of a GNUnet user. | 27 | * represent the various egos/pseudonyms/identities of a GNUnet user. |
28 | * | ||
29 | * TODO: | ||
30 | * - disk operations | ||
31 | * - default identity set/get handlers | ||
28 | */ | 32 | */ |
29 | #include "platform.h" | 33 | #include "platform.h" |
30 | #include "gnunet_util_lib.h" | 34 | #include "gnunet_util_lib.h" |
@@ -488,6 +492,21 @@ handle_delete_message (void *cls, struct GNUNET_SERVER_Client *client, | |||
488 | 492 | ||
489 | 493 | ||
490 | /** | 494 | /** |
495 | * Process the given file from the "EGODIR". Parses the file | ||
496 | * and creates the respective 'struct Ego' in memory. | ||
497 | * | ||
498 | * @param cls NULL | ||
499 | * @param filename name of the file to parse | ||
500 | */ | ||
501 | static void | ||
502 | process_ego_file (void *cls, | ||
503 | const char *filename) | ||
504 | { | ||
505 | GNUNET_break (0); // not implemented | ||
506 | } | ||
507 | |||
508 | |||
509 | /** | ||
491 | * Handle network size estimate clients. | 510 | * Handle network size estimate clients. |
492 | * | 511 | * |
493 | * @param cls closure | 512 | * @param cls closure |
@@ -550,6 +569,9 @@ run (void *cls, | |||
550 | stats = GNUNET_STATISTICS_create ("identity", cfg); | 569 | stats = GNUNET_STATISTICS_create ("identity", cfg); |
551 | GNUNET_SERVER_add_handlers (server, handlers); | 570 | GNUNET_SERVER_add_handlers (server, handlers); |
552 | nc = GNUNET_SERVER_notification_context_create (server, 1); | 571 | nc = GNUNET_SERVER_notification_context_create (server, 1); |
572 | GNUNET_DISK_directory_scan (ego_directory, | ||
573 | &process_ego_file, | ||
574 | NULL); | ||
553 | GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, &shutdown_task, | 575 | GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, &shutdown_task, |
554 | NULL); | 576 | NULL); |
555 | } | 577 | } |