summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/gpgv.h
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2013-03-19 10:49:57 +0100
committerDavid Kalnischkies <kalnischkies@gmail.com>2013-03-19 10:49:57 +0100
commitb408e4ad0010b273dac0af7dc87ab61062d89e49 (patch)
treed6a95f98a91af2b36ae93cbc5ab1684eced3358e /apt-pkg/contrib/gpgv.h
parent233b78083f6f79730fcb5a6faeb74e2a78b6038a (diff)
use FileFd instead of int fds to tidy up the interface a bit
Diffstat (limited to 'apt-pkg/contrib/gpgv.h')
-rw-r--r--apt-pkg/contrib/gpgv.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/apt-pkg/contrib/gpgv.h b/apt-pkg/contrib/gpgv.h
index 8cbe553bc..1f877fc2d 100644
--- a/apt-pkg/contrib/gpgv.h
+++ b/apt-pkg/contrib/gpgv.h
@@ -48,8 +48,8 @@ inline void ExecGPGV(std::string const &File, std::string const &FileSig,
* whitespaces are discarded. The resulting files are suitable to
* be checked with gpgv.
*
- * If one or all Fds are -1 they will not be used and the content
- * which would have been written to them is discarded.
+ * If a FileFd pointers is NULL it will not be used and the content
+ * which would have been written to it is silently discarded.
*
* The code doesn't support dash-encoded lines as these are not
* expected to be present in files we have to deal with.
@@ -61,13 +61,13 @@ inline void ExecGPGV(std::string const &File, std::string const &FileSig,
* not generate an error message.
*
* @param InFile is the clear-signed file
- * @param ContentFile is the Fd the message will be written to
+ * @param ContentFile is the FileFd the message will be written to
* @param ContentHeader is a list of all required Amored Headers for the message
- * @param SignatureFile is the Fd all signatures will be written to
+ * @param SignatureFile is the FileFd all signatures will be written to
* @return true if the splitting was successful, false otherwise
*/
-bool SplitClearSignedFile(std::string const &InFile, int const ContentFile,
- std::vector<std::string> * const ContentHeader, int const SignatureFile);
+bool SplitClearSignedFile(std::string const &InFile, FileFd * const ContentFile,
+ std::vector<std::string> * const ContentHeader, FileFd * const SignatureFile);
/** \brief open a file which might be clear-signed
*