gpgv.h
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
/* ######################################################################
Helpers to deal with gpgv better and more easily
##################################################################### */
/*}}}*/
#ifndef CONTRIB_GPGV_H
#define CONTRIB_GPGV_H
#include <apt-pkg/macros.h>
#include <forward_list>
#include <string>
#include <vector>
class FileFd;
#ifdef APT_COMPILING_APT
namespace APT::Internal
{
APT_PUBLIC std::pair<std::string, std::forward_list<std::string>> FindGPGV(bool Debug);
}
#endif
[[noreturn]] APT_PUBLIC void ExecGPGV(std::string const &File, std::string const &FileSig,
int const &statusfd, int fd[2], std::vector<std::string> const &KeyFiles);
[[noreturn]] APT_PUBLIC void ExecGPGV(std::string const &File, std::string const &FileSig,
int const &statusfd, int fd[2], std::string const &Key = "");
[[noreturn]] inline void ExecGPGV(std::string const &File, std::string const &FileSig,
int const &statusfd = -1) {
int fd[2];
ExecGPGV(File, FileSig, statusfd, fd);
}
APT_PUBLIC bool SplitClearSignedFile(std::string const &InFile, FileFd * const ContentFile,
std::vector<std::string> * const ContentHeader, FileFd * const SignatureFile);
APT_PUBLIC bool OpenMaybeClearSignedFile(std::string const &ClearSignedFileName, FileFd &MessageFile);
APT_PUBLIC bool VerifyDetachedSignatureFile(std::string const &DetachedSignatureFileName);
APT_PUBLIC bool IsAssertedPubKeyAlgo(std::string const &pkstr, std::string const &option);
#endif
FileFd
Definition fileutl.h:43