summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/gpgv.h
blob: c15166c94105c139c0d59a4c3e51413e6ad11a38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// -*- mode: cpp; mode: fold -*-
// Description								/*{{{*/
/* ######################################################################

   Helpers to deal with gpgv better and more easily

   ##################################################################### */
									/*}}}*/
#ifndef CONTRIB_GPGV_H
#define CONTRIB_GPGV_H

#include <string>

/** \brief generates and run the command to verify a file with gpgv */
bool ExecGPGV(std::string const &File, std::string const &FileOut,
      int const &statusfd, int fd[2]);

inline bool ExecGPGV(std::string const &File, std::string const &FileOut,
      int const &statusfd = -1) {
   int fd[2];
   return ExecGPGV(File, FileOut, statusfd, fd);
}

#endif