Merged jnlib into common.
[gnupg.git] / common / http.h
index c92bbf1..e7120f5 100644 (file)
@@ -22,7 +22,7 @@
 
 #include <gpg-error.h>
 #ifdef HTTP_USE_ESTREAM
-#include "estream.h"
+#include "../common/estream.h"
 #endif
 
 struct uri_tuple_s {
@@ -63,9 +63,8 @@ enum
   { 
     HTTP_FLAG_TRY_PROXY = 1,
     HTTP_FLAG_NO_SHUTDOWN = 2,
-    HTTP_FLAG_TRY_SRV = 4,
-    HTTP_FLAG_LOG_RESP = 8,
-    HTTP_FLAG_NEED_HEADER = 16
+    HTTP_FLAG_LOG_RESP = 4,
+    HTTP_FLAG_NEED_HEADER = 8
   };
 
 struct http_context_s;
@@ -82,7 +81,9 @@ gpg_error_t http_open (http_t *r_hd, http_req_t reqtype,
                        const char *auth,
                        unsigned int flags,
                        const char *proxy,
-                       void *tls_context);
+                       void *tls_context,
+                      const char *srvtag,
+                      strlist_t headers);
 
 void http_start_data (http_t hd);
 
@@ -95,7 +96,9 @@ gpg_error_t http_open_document (http_t *r_hd,
                                 const char *auth,
                                 unsigned int flags,
                                 const char *proxy,
-                                void *tls_context);
+                                void *tls_context,
+                               const char *srvtag,
+                               strlist_t headers);
 
 #ifdef HTTP_USE_ESTREAM
 estream_t http_get_read_ptr (http_t hd);