]> git.saurik.com Git - apt.git/blob - apt-pkg/contrib/gpgv.h
c15166c94105c139c0d59a4c3e51413e6ad11a38
[apt.git] / apt-pkg / contrib / 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 <string>
13
14 /** \brief generates and run the command to verify a file with gpgv */
15 bool ExecGPGV(std::string const &File, std::string const &FileOut,
16 int const &statusfd, int fd[2]);
17
18 inline bool ExecGPGV(std::string const &File, std::string const &FileOut,
19 int const &statusfd = -1) {
20 int fd[2];
21 return ExecGPGV(File, FileOut, statusfd, fd);
22 }
23
24 #endif