libopkg: fix hex encoding/decoding, add checksum getter/setter
authorJo-Philipp Wich <jo@mein.io>
Mon, 13 Feb 2017 17:07:04 +0000 (18:07 +0100)
committerJo-Philipp Wich <jo@mein.io>
Thu, 16 Feb 2017 16:00:40 +0000 (17:00 +0100)
commit54cc7e3bd1f79569022aa9fc3d0e748c81e3bcd8
treed1eb618c224d0df11613f8d5d768a5adc4a1ae38
parent9396bd4a4c84bde6b55ac3c47c90b4804e51adaf
libopkg: fix hex encoding/decoding, add checksum getter/setter

Fix broken hex encoding/decoding due to the use of signed chars and introduce
new convenience getters and setters to simplify the checksum usage.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
libopkg/file_util.c
libopkg/opkg_install.c
libopkg/pkg.c
libopkg/pkg.h
libopkg/pkg_parse.c