]> git.saurik.com Git - apt.git/blob - apt-private/private-download.h
don't drop privileges if _apt has not enough rights
[apt.git] / apt-private / private-download.h
1 #ifndef APT_PRIVATE_DOWNLOAD_H
2 #define APT_PRIVATE_DOWNLOAD_H
3
4 #include <apt-pkg/macros.h>
5
6 #include <string>
7
8 class pkgAcquire;
9
10 APT_PUBLIC bool CheckDropPrivsMustBeDisabled(pkgAcquire &Fetcher);
11
12 // Check if all files in the fetcher are authenticated
13 APT_PUBLIC bool CheckAuth(pkgAcquire& Fetcher, bool const PromptUser);
14
15 // show a authentication warning prompt and return true if the system
16 // should continue
17 APT_PUBLIC bool AuthPrompt(std::string const &UntrustedList, bool const PromptUser);
18
19 APT_PUBLIC bool AcquireRun(pkgAcquire &Fetcher, int const PulseInterval, bool * const Failure, bool * const TransientNetworkFailure);
20
21 #endif