]> git.ipfire.org Git - thirdparty/kmod.git/commit
libkmod: modinfo: use own function for sig_key hex output
authorYauheni Kaliuta <yauheni.kaliuta@redhat.com>
Tue, 11 Apr 2017 12:15:01 +0000 (15:15 +0300)
committerLucas De Marchi <lucas.demarchi@intel.com>
Tue, 11 Apr 2017 16:04:28 +0000 (09:04 -0700)
commit96b88aea2a5601ff8199bdb4c8851bc62bcbcf82
tree33fc9c2118acdab3440080935030b77ee6ded1bd
parent30fb14f3c81ec5b0a5ef5b4b1c998a7de5420328
libkmod: modinfo: use own function for sig_key hex output

Refactor the code a bit to make it easier to extend for signature
output.

kmod_module_get_info() creats a hex string for the sig_key data
inplace. Separate it into own kmod_module_hex_to_string function
and handle the branch in the new kmod_module_info_append_hex,
keeping the same signature as the non-hex version.

Signed-off-by: Yauheni Kaliuta <yauheni.kaliuta@redhat.com>
libkmod/libkmod-module.c