From 992498b088a1ace2184cd7b5c104349987168017 Mon Sep 17 00:00:00 2001 From: Moritz Warning Date: Sat, 18 Aug 2018 17:52:45 +0200 Subject: [PATCH] add comments --- src/announces.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/announces.c b/src/announces.c index 4c5441e7..cc70aef1 100644 --- a/src/announces.c +++ b/src/announces.c @@ -91,17 +91,20 @@ struct value_t *announces_add(const char query[], int port, time_t lifetime) // Get id from query #ifdef BOB + // base32 or base64 if (ret == EXIT_FAILURE) { ret = bob_get_id(id, sizeof(id), query); } #endif #ifdef TLS + // contains dot (.p2p is already removed here) => sha256 hash if (ret == EXIT_FAILURE) { ret = tls_client_get_id(id, sizeof(id), query); } #endif + // base32 or base64 if (ret == EXIT_FAILURE) { ret = hex_get_id(id, sizeof(id), query); }