]> granicus.if.org Git - transmission/commit
#4400, #5462: Move SHA1/HEX helpers to crypto-utils
authorMike Gelfand <mikedld@mikedld.com>
Thu, 4 Dec 2014 20:53:56 +0000 (20:53 +0000)
committerMike Gelfand <mikedld@mikedld.com>
Thu, 4 Dec 2014 20:53:56 +0000 (20:53 +0000)
commit42de056a4bd70aa5f246c30a84ee24cdbcfc385a
tree100875a27c7a6d0f67990872c5dac196f13c48b4
parent748f8a75d2a12b4b41a3ceb0e2d2be80e771d96d
#4400, #5462: Move SHA1/HEX helpers to crypto-utils

On a way to factoring out OpenSSL support to a standalone file to ease
addition of other crypto libraries support in the future, move helpers
providing SHA1/HEX conversion to crypto-utils.{c,h}.

Rename functions:
* tr_sha1_to_hex -> tr_binary_to_hex (add length argument),
* tr_hex_to_sha1 -> tr_hex_to_binary (add length argument).

Make tr_sha1_to_hex and tr_hex_to_sha1 wrappers around above functions.
libtransmission/crypto-utils.h
libtransmission/magnet.c
libtransmission/utils-test.c
libtransmission/utils.c
libtransmission/utils.h