tPrint hexadecimal hash in torrent output - libeech - bittorrent library
(HTM) git clone git://z3bra.org/libeech.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 43f71d66c05978eb4778835f80b83ac57dec3504
(DIR) parent 00a21c7271abed9eb6faa3d028e706f04c5f5128
(HTM) Author: z3bra <willy at mailoo dot org>
Date: Tue, 3 Jul 2018 15:37:52 +0200
Print hexadecimal hash in torrent output
Diffstat:
M torrent.c | 1 +
1 file changed, 1 insertion(+), 0 deletions(-)
---
(DIR) diff --git a/torrent.c b/torrent.c
t@@ -74,6 +74,7 @@ main(int argc, char *argv[])
return -1;
printf("Peer ID: %s\n", t.id);
+ printf("Hash: %s\n", tohex(t.ih, hex, 20));
printf("Tracker: %s\n", t.tr);
printf("Length: %ld bytes\n", t.sz);
printf("Files:\n");