X-Git-Url: http://git.hcoop.net/ntk/apt.git/blobdiff_plain/15847d263c371cadcb8664021b8eb2444dd70998..d73fe42cf042fbc9d8d2b38eb67bd7efaa4be412:/apt-private/private-download.h diff --git a/apt-private/private-download.h b/apt-private/private-download.h dissimilarity index 74% index b8cc8da1..a90ac7ea 100644 --- a/apt-private/private-download.h +++ b/apt-private/private-download.h @@ -1,9 +1,17 @@ -#ifndef APT_PRIVATE_DOWNLOAD_H -#define APT_PRIVATE_DOWNLOAD_H - -#include - -bool CheckAuth(pkgAcquire& Fetcher, bool const PromptUser); -bool AcquireRun(pkgAcquire &Fetcher, int const PulseInterval, bool * const Failure, bool * const TransientNetworkFailure); - -#endif +#ifndef APT_PRIVATE_DOWNLOAD_H +#define APT_PRIVATE_DOWNLOAD_H + +#include + +class pkgAcquire; + +// Check if all files in the fetcher are authenticated +APT_PUBLIC bool CheckAuth(pkgAcquire& Fetcher, bool const PromptUser); + +// show a authentication warning prompt and return true if the system +// should continue +APT_PUBLIC bool AuthPrompt(std::string UntrustedList, bool const PromptUser); + +APT_PUBLIC bool AcquireRun(pkgAcquire &Fetcher, int const PulseInterval, bool * const Failure, bool * const TransientNetworkFailure); + +#endif