~ubuntu-branches/ubuntu/trusty/apt/trusty

« back to all changes in this revision

Viewing changes to methods/https.h

  • Committer: Package Import Robot
  • Author(s): Michael Vogt
  • Date: 2014-04-01 17:48:58 UTC
  • mfrom: (1.4.87 sid)
  • Revision ID: package-import@ubuntu.com-20140401174858-4mv29mm29zu22fn1
Tags: 1.0.1ubuntu1
merge with the debian/sid 1.0.1 version
(LP: #1302033)

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
#ifndef APT_HTTPS_H
12
12
#define APT_HTTPS_H
13
13
 
 
14
#include <apt-pkg/acquire-method.h>
 
15
 
 
16
#include <curl/curl.h>
14
17
#include <iostream>
15
 
#include <curl/curl.h>
 
18
#include <stddef.h>
 
19
#include <string>
16
20
 
17
21
#include "server.h"
18
22
 
19
23
using std::cout;
20
24
using std::endl;
21
25
 
 
26
class Hashes;
22
27
class HttpsMethod;
23
28
class FileFd;
24
29
 
25
30
class HttpsServerState : public ServerState
26
31
{
27
32
   protected:
28
 
   virtual bool ReadHeaderLines(std::string &Data) { return false; }
29
 
   virtual bool LoadNextResponse(bool const ToFile, FileFd * const File) { return false; }
 
33
   virtual bool ReadHeaderLines(std::string &/*Data*/) { return false; }
 
34
   virtual bool LoadNextResponse(bool const /*ToFile*/, FileFd * const /*File*/) { return false; }
30
35
 
31
36
   public:
32
 
   virtual bool WriteResponse(std::string const &Data) { return false; }
 
37
   virtual bool WriteResponse(std::string const &/*Data*/) { return false; }
33
38
 
34
39
   /** \brief Transfer the data from the socket */
35
 
   virtual bool RunData(FileFd * const File) { return false; }
 
40
   virtual bool RunData(FileFd * const /*File*/) { return false; }
36
41
 
37
42
   virtual bool Open() { return false; }
38
43
   virtual bool IsOpen() { return false; }
39
44
   virtual bool Close() { return false; }
40
 
   virtual bool InitHashes(FileFd &File) { return false; }
 
45
   virtual bool InitHashes(FileFd &/*File*/) { return false; }
41
46
   virtual Hashes * GetHashes() { return NULL; }
42
 
   virtual bool Die(FileFd &File) { return false; }
43
 
   virtual bool Flush(FileFd * const File) { return false; }
44
 
   virtual bool Go(bool ToFile, FileFd * const File) { return false; }
 
47
   virtual bool Die(FileFd &/*File*/) { return false; }
 
48
   virtual bool Flush(FileFd * const /*File*/) { return false; }
 
49
   virtual bool Go(bool /*ToFile*/, FileFd * const /*File*/) { return false; }
45
50
 
46
51
   HttpsServerState(URI Srv, HttpsMethod *Owner);
47
52
   virtual ~HttpsServerState() {Close();};