5466f381dd
When detaching a signature, we need to know the size of the non-signature data. So, add a data_size member to struct image, and populate it when we iterate through the section table. When writing the image, use data_size rather than size, so we don't unnecessarily add the (now unused) signature data. Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com> |
||
---|---|---|
coff | ||
docs | ||
lib | ||
tests | ||
.gitmodules | ||
autogen.sh | ||
configure.ac | ||
COPYING | ||
efivars.h | ||
fileio.c | ||
fileio.h | ||
gen-keyfiles.c | ||
idc.c | ||
idc.h | ||
image.c | ||
image.h | ||
libcoff.h | ||
LICENSE.GPLv3 | ||
Makefile.am | ||
NEWS | ||
README | ||
sbattach.c | ||
sbsiglist.c | ||
sbsign.c | ||
sbvarsign.c | ||
sbverify.c | ||
verify.c |
sbsigntool - Signing utility for UEFI secure boot Copyright (C) 2102 Jeremy Kerr <jeremy.kerr@canonical.com> Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. See file ./INSTALL for building and installation instructions. Main git repository: git://kernel.ubuntu.com/jk/sbsigntool.git sbsigntool is free software. See the file COPYING for copying conditions.