1 // -*- mode: cpp; mode: fold -*-
3 /* ######################################################################
5 Helpers to deal with gpgv better and more easily
7 ##################################################################### */
10 #define CONTRIB_GPGV_H
15 #define APT_noreturn __attribute__ ((noreturn))
17 #define APT_noreturn /* no support */
20 /** \brief generates and run the command to verify a file with gpgv
22 * If File and FileSig specify the same file it is assumed that we
23 * deal with a clear-signed message.
25 * @param File is the message (unsigned or clear-signed)
26 * @param FileSig is the signature (detached or clear-signed)
28 void ExecGPGV(std::string
const &File
, std::string
const &FileSig
,
29 int const &statusfd
, int fd
[2]) APT_noreturn
;
30 inline void ExecGPGV(std::string
const &File
, std::string
const &FileSig
,
31 int const &statusfd
= -1) {
33 ExecGPGV(File
, FileSig
, statusfd
, fd
);