summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/fileutl.cc
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2013-07-10 16:38:55 +0200
committerMichael Vogt <mvo@debian.org>2013-07-10 16:38:55 +0200
commitd2636e63fd823e537f61b5e9d33a85aa0626f0aa (patch)
tree1041902cfd6820605314424f239b27c18ae4ef2b /apt-pkg/contrib/fileutl.cc
parent88f5f8258f0d6f9d3a188ccf8a89f36243ea14b5 (diff)
remove more merge artifacts
Diffstat (limited to 'apt-pkg/contrib/fileutl.cc')
-rw-r--r--apt-pkg/contrib/fileutl.cc20
1 files changed, 0 insertions, 20 deletions
diff --git a/apt-pkg/contrib/fileutl.cc b/apt-pkg/contrib/fileutl.cc
index 61ff0031f..0f88923cf 100644
--- a/apt-pkg/contrib/fileutl.cc
+++ b/apt-pkg/contrib/fileutl.cc
@@ -853,26 +853,6 @@ bool ExecWait(pid_t Pid,const char *Name,bool Reap)
}
/*}}}*/
-// StartsWithGPGClearTextSignature - Check if a file is Pgp/GPG clearsigned /*{{{*/
-// ---------------------------------------------------------------------
-/* */
-bool StartsWithGPGClearTextSignature(string const &FileName)
-{
- static const char* SIGMSG = "-----BEGIN PGP SIGNED MESSAGE-----\n";
- char buffer[strlen(SIGMSG)+1];
- FILE* gpg = fopen(FileName.c_str(), "r");
- if (gpg == NULL)
- return false;
-
- char const * const test = fgets(buffer, sizeof(buffer), gpg);
- fclose(gpg);
- if (test == NULL || strcmp(buffer, SIGMSG) != 0)
- return false;
-
- return true;
-}
-
-
// FileFd::Open - Open a file /*{{{*/
// ---------------------------------------------------------------------
/* The most commonly used open mode combinations are given with Mode */