summaryrefslogtreecommitdiff
path: root/tor.h
diff options
context:
space:
mode:
authorTim Retout <tim@retout.co.uk>2014-04-21 17:49:14 +0100
committerTim Retout <tim@retout.co.uk>2014-04-21 17:49:14 +0100
commit72ef198c05d7aff539ddd1785e68cd09d793d2e0 (patch)
treeb807e30951a2f25608f2d8e4a97a528788bce55a /tor.h
parent206ec4713da49d1fe04a5af8af19409971779214 (diff)
Replace/remove HTTPS code
Diffstat (limited to 'tor.h')
-rw-r--r--tor.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/tor.h b/tor.h
index faac8a3..1d31591 100644
--- a/tor.h
+++ b/tor.h
@@ -8,8 +8,8 @@
##################################################################### */
/*}}}*/
-#ifndef APT_HTTPS_H
-#define APT_HTTPS_H
+#ifndef APT_TOR_H
+#define APT_TOR_H
#include <apt-pkg/acquire-method.h>
@@ -24,10 +24,10 @@ using std::cout;
using std::endl;
class Hashes;
-class HttpsMethod;
+class TorMethod;
class FileFd;
-class HttpsServerState : public ServerState
+class TorServerState : public ServerState
{
protected:
virtual bool ReadHeaderLines(std::string &/*Data*/) { return false; }
@@ -48,11 +48,11 @@ class HttpsServerState : public ServerState
virtual bool Flush(FileFd * const /*File*/) { return false; }
virtual bool Go(bool /*ToFile*/, FileFd * const /*File*/) { return false; }
- HttpsServerState(URI Srv, HttpsMethod *Owner);
- virtual ~HttpsServerState() {Close();};
+ TorServerState(URI Srv, TorMethod *Owner);
+ virtual ~TorServerState() {Close();};
};
-class HttpsMethod : public pkgAcqMethod
+class TorMethod : public pkgAcqMethod
{
// minimum speed in bytes/se that triggers download timeout handling
static const int DL_MIN_SPEED = 10;
@@ -65,18 +65,18 @@ class HttpsMethod : public pkgAcqMethod
void SetupProxy();
CURL *curl;
FetchResult Res;
- HttpsServerState *Server;
+ TorServerState *Server;
public:
FileFd *File;
- HttpsMethod() : pkgAcqMethod("1.2",Pipeline | SendConfig), File(NULL)
+ TorMethod() : pkgAcqMethod("1.2",Pipeline | SendConfig), File(NULL)
{
File = 0;
curl = curl_easy_init();
};
- ~HttpsMethod()
+ ~TorMethod()
{
curl_easy_cleanup(curl);
};