From 5ad33e7398fb2ec0dd8d960f3e66371eb5b15782 Mon Sep 17 00:00:00 2001 From: Astonex Date: Mon, 29 Jul 2013 23:00:56 +0100 Subject: Essentially nTox without the ncurses for Windows. Slightly modified main() --- other/DHT_bootstrap.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'other') diff --git a/other/DHT_bootstrap.c b/other/DHT_bootstrap.c index 19714e70..befe2225 100644 --- a/other/DHT_bootstrap.c +++ b/other/DHT_bootstrap.c @@ -79,12 +79,20 @@ int main(int argc, char *argv[]) manage_keys(); printf("Public key: "); uint32_t i; + + FILE *file; + file = fopen("PUBLIC_ID.txt", "w"); + for(i = 0; i < 32; i++) { if(self_public_key[i] < 16) printf("0"); printf("%hhX",self_public_key[i]); + fprintf(file, "%hhX",self_public_key[i]); } + + fclose(file); + printf("\n"); printf("Port: %u\n", PORT); //initialize networking -- cgit v1.2.3