apt: apt-pkg/contrib/gpgv.h Source File

apt 2.3.15 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 <string>
15#include <vector>
16
17
18class FileFd;
19
42APT_PUBLIC void ExecGPGV(std::string const &File, std::string const &FileSig,
43 int const &statusfd, int fd[2], std::string const &Key = "") APT_NORETURN;
44inline APT_NORETURN void ExecGPGV(std::string const &File, std::string const &FileSig,
45 int const &statusfd = -1) {
46 int fd[2];
47 ExecGPGV(File, FileSig, statusfd, fd);
48}
49
73APT_PUBLIC bool SplitClearSignedFile(std::string const &InFile, FileFd * const ContentFile,
74 std::vector<std::string> * const ContentHeader, FileFd * const SignatureFile);
75
87APT_PUBLIC bool OpenMaybeClearSignedFile(std::string const &ClearSignedFileName, FileFd &MessageFile);
88
89#endif
FileFd
Definition: fileutl.h:39