apt 3.2.0 commandline package manager

gpgv.h
1// -*- mode: cpp; mode: fold -*-
2// Description /*{{{*/
3/* ######################################################################
4
5 Helpers to deal with gpgv better and more easily
6
7 ##################################################################### */
8 /*}}}*/
9#ifndef CONTRIB_GPGV_H
10#define CONTRIB_GPGV_H
11
12#include <apt-pkg/macros.h>
13
14#include <forward_list>
15#include <string>
16#include <vector>
17
18
19 class FileFd;
20
21#ifdef APT_COMPILING_APT
22 namespace APT::Internal
23{
24APT_PUBLIC std::pair<std::string, std::forward_list<std::string>> FindGPGV(bool Debug);
25}
26#endif
27
50[[noreturn]] APT_PUBLIC void ExecGPGV(std::string const &File, std::string const &FileSig,
51 int const &statusfd, int fd[2], std::vector<std::string> const &KeyFiles);
52[[noreturn]] APT_PUBLIC void ExecGPGV(std::string const &File, std::string const &FileSig,
53 int const &statusfd, int fd[2], std::string const &Key = "");
54[[noreturn]] inline void ExecGPGV(std::string const &File, std::string const &FileSig,
55 int const &statusfd = -1) {
56 int fd[2];
57 ExecGPGV(File, FileSig, statusfd, fd);
58}
59
83APT_PUBLIC bool SplitClearSignedFile(std::string const &InFile, FileFd * const ContentFile,
84 std::vector<std::string> * const ContentHeader, FileFd * const SignatureFile);
85
97APT_PUBLIC bool OpenMaybeClearSignedFile(std::string const &ClearSignedFileName, FileFd &MessageFile);
98
106APT_PUBLIC bool VerifyDetachedSignatureFile(std::string const &DetachedSignatureFileName);
107
108APT_PUBLIC bool IsAssertedPubKeyAlgo(std::string const &pkstr, std::string const &option);
109#endif
FileFd
Definition fileutl.h:43