]> 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>
Mon, 9 Jan 2017 11:15:07 +0000 (14:15 +0300)
commit3375b22b23f8e26ab0c87918e571067993448435
treeb2d314e64f343aa8f8846faa6f70d8929ff00d40
parent15625de3c7a3d6959120b7e6b259d26fa7087957
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