]> granicus.if.org Git - transmission/commit
Simplify `tr_ssha1_matches` logic
authorMike Gelfand <mikedld@mikedld.com>
Mon, 9 Jan 2017 11:15:07 +0000 (14:15 +0300)
committerMike Gelfand <mikedld@mikedld.com>
Tue, 16 Jan 2018 22:17:50 +0000 (01:17 +0300)
commitc22e687b5162cb26c2daa8a8f352b7eacff16660
tree3cbb2f0e57c630c9fff0891f074ac2d08e69f597
parent1e8267d68ca4c3bbbdfa38a488b4a081e5d6cd5b
Simplify `tr_ssha1_matches` logic

Gets rid of needless heap memory allocations and copying. Convert SHA1 hash
to hex in-place.

Fixes: #141
libtransmission/crypto-utils.c
libtransmission/utils.c