[Rpm-maint] [PATCH] replaceSigDigests is only used with IMAEVM.
Florian Festi
ffesti at redhat.com
Fri Jul 21 13:37:29 UTC 2017
Pushed.
On 07/19/2017 03:33 PM, Mark Wielaard wrote:
> 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,
>
--
Red Hat GmbH, http://www.de.redhat.com/, Registered seat: Grasbrunn,
Commercial register: Amtsgericht Muenchen, HRB 153243,
Managing Directors: Paul Argiry, Charles Cachera, Michael Cunningham,
Michael O'Neill
More information about the Rpm-maint
mailing list