]> git.saurik.com Git - apt.git/blobdiff - methods/https.h
delete targets data
[apt.git] / methods / https.h
index 3f0c416b6c9d5638faf9364a50c68cc932d0f8ae..293e288e06f8d6fe1872bbcf4769ff4d2fc48ae5 100644 (file)
@@ -8,10 +8,8 @@
    ##################################################################### */
                                                                        /*}}}*/
 
-#ifndef APT_HTTP_H
-#define APT_HTTP_H
-
-#define MAXLEN 360
+#ifndef APT_HTTPS_H
+#define APT_HTTPS_H
 
 #include <iostream>
 #include <curl/curl.h>
@@ -20,7 +18,7 @@ using std::cout;
 using std::endl;
 
 class HttpsMethod;
-
+class FileFd;
 
 class HttpsMethod : public pkgAcqMethod
 {
@@ -43,8 +41,14 @@ class HttpsMethod : public pkgAcqMethod
       File = 0;
       curl = curl_easy_init();
    };
+
+   ~HttpsMethod()
+   {
+      curl_easy_cleanup(curl);
+   };
 };
 
+#include <apt-pkg/strutl.h>
 URI Proxy;
 
 #endif