[Rpm-maint] [PATCH] replaceSigDigests is only used with IMAEVM.
Mark Wielaard
mark at klomp.org
Wed Jul 19 13:33:37 UTC 2017
The replaceSigDigests function is only used in includeFileSignatures
when WITH_IMAEVM is defined. If not warning is generated.
Signed-off-by: Mark Wielaard <mark at klomp.org>
---
sign/rpmgensig.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sign/rpmgensig.c b/sign/rpmgensig.c
index 0731363..d29c178 100644
--- a/sign/rpmgensig.c
+++ b/sign/rpmgensig.c
@@ -469,6 +469,7 @@ static void unloadImmutableRegion(Header *hdrp, rpmTagVal tag)
}
}
+#ifdef WITH_IMAEVM
static rpmRC replaceSigDigests(FD_t fd, const char *rpm, Header *sigp,
off_t sigStart, off_t sigTargetSize,
char *SHA256, char *SHA1, uint8_t *MD5)
@@ -516,6 +517,7 @@ static rpmRC replaceSigDigests(FD_t fd, const char *rpm, Header *sigp,
exit:
return rc;
}
+#endif
static rpmRC includeFileSignatures(FD_t fd, const char *rpm,
Header *sigp, Header *hdrp,
--
1.8.3.1
More information about the Rpm-maint
mailing list