summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/gpgv.cc
Commit message (Collapse)AuthorAgeFilesLines
* cleanup headers and especially #includes everywhereDavid Kalnischkies2014-03-131-8/+10
| | | | | | | | Beside being a bit cleaner it hopefully also resolves oddball problems I have with high levels of parallel jobs. Git-Dch: Ignore Reported-By: iwyu (include-what-you-use)
* correct some style/performance/warnings from cppcheckDavid Kalnischkies2014-01-161-3/+2
| | | | | | | | The most "visible" change is from utime to utimensat/futimens as the first one isn't part of POSIX anymore. Reported-By: cppcheck Git-Dch: Ignore
* rework some code to fix some scan-build warningsDavid Kalnischkies2014-01-161-3/+3
| | | | | | | | No visible functional changes, just code moved around and additional checks to eliminate impossible branches Reported-By: scan-build Git-Dch: Ignore
* factor GetTempDir outMichael Vogt2013-12-221-13/+2
|
* apt-pkg/contrib/gpgv.cc: use /tmp as fallback dirThomas Bechtold2013-12-221-1/+6
| | | | if the directory given by $TMPDIR is not available, use /tmp as fallback.
* trigger NODATA error for invalid InRelease filesDavid Kalnischkies2013-06-201-1/+1
| | | | | | | | | | | | | | | | | With the selfgrown splitting we got the problem of not recovering from networks which just reply with invalid data like those sending us login pages to authenticate with the network (e.g. hotels) back. The good thing about the InRelease file is that we know that it must be clearsigned (a Release file might or might not have a detached sig) so if we get a file but are unable to split it something is seriously wrong, so there is not much point in trying further. The Acquire system already looks out for a NODATA error from gpgv, so this adds a new error message sent to the acquire system in case the splitting we do now ourselves failed including this magic word. Closes: #712486
* apt-pkg/contrib/gpgv.cc: fix InRelease checkMichael Vogt2013-04-031-2/+2
|
* support dash-escaped text in clearsigned files as implementations areDavid Kalnischkies2013-03-191-11/+12
| | | | | | | | free to escape all lines (we have no lines in our files which need to be escaped as these would be invalid fieldnames) and while ExecGPGV would detect dash-escaped text as invalid (as its not expected in messages with detached signatures) it would be possible to "comment" lines in (signed) dsc files which are only parsed but not verified
* use FileFd instead of int fds to tidy up the interface a bitDavid Kalnischkies2013-03-191-56/+47
|
* * apt-pkg/deb/debindexfile.cc,David Kalnischkies2013-03-181-42/+2
| | | | | | | | | | | apt-pkg/deb/deblistparser.cc: - use OpenMaybeClearSignedFile to be free from detecting and skipping clearsigning metadata in dsc and Release files We can't write a "clean" file to disk as not all acquire methods copy Release files before checking them (e.g. cdrom), so this reverts recombining, but uses the method we use for dsc files also in the two places we deal with Release files
* - add method to open (maybe) clearsigned files transparentlyDavid Kalnischkies2013-03-181-1/+54
| | | | | * ftparchive/writer.cc: - use OpenMaybeClearSignedFile to be free from detecting and skipping clearsigning metadata in dsc files
* ensure that we fclose/unlink/free in the new gpg-code as soon as possibleDavid Kalnischkies2013-03-161-5/+22
|
* - if ExecGPGV deals with a clear-signed file it will split this fileDavid Kalnischkies2013-03-151-44/+258
| | | | | | | | into data and signatures, pass it to gpgv for verification and recombines it after that in a known-good way without unsigned blocks and whitespaces resulting usually in more or less the same file as before, but later code can be sure about the format * apt-pkg/deb/debmetaindex.cc: - reenable InRelease by default
* don't close stdout/stderr if it is also the statusfdDavid Kalnischkies2013-03-151-10/+11
|
* * apt-pkg/contrib/gpgv.cc:David Kalnischkies2013-03-151-6/+16
| | | | - ExecGPGV is a method which should never return, so mark it as such and fix the inconsistency of returning in error cases
* * apt-pkg/indexcopy.cc:David Kalnischkies2013-03-151-0/+138
- rename RunGPGV to ExecGPGV and move it to apt-pkg/contrib/gpgv.cc