summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorSimon <simon@hardwired.org.uk>2011-01-29 12:16:13 (GMT)
committer Simon <simon@hardwired.org.uk>2011-01-29 12:16:13 (GMT)
commitf391b896d495410e703e88e06f3cec86323e6a81 (patch)
tree18f20c74be09dcfd7d8edb920bc2c62910be386e /includes
parent9938378c0d7eed11dc3cf2db67dfd32d0c31dfd7 (diff)
downloadpowder-f391b896d495410e703e88e06f3cec86323e6a81.zip
powder-f391b896d495410e703e88e06f3cec86323e6a81.tar.gz
Use Sessions instead of saving password
Diffstat (limited to 'includes')
-rwxr-xr-xincludes/http.h6
-rw-r--r--includes/interface.h2
2 files changed, 5 insertions, 3 deletions
diff --git a/includes/http.h b/includes/http.h
index 2ad7ccc..af0971c 100755
--- a/includes/http.h
+++ b/includes/http.h
@@ -24,10 +24,10 @@ void http_init(char *proxy);
void http_done(void);
char *http_simple_get(char *uri, int *ret, int *len);
-char *http_auth_get(char *uri, char *user, char *pass, int *ret, int *len);
+char *http_auth_get(char *uri, char *user, char *pass, char * session_id, int *ret, int *len);
char *http_simple_post(char *uri, char *data, int dlen, int *ret, int *len);
-void http_auth_headers(void *ctx, char *user, char *pass);
+void http_auth_headers(void *ctx, char *user, char *pass, char * session_id);
void *http_async_req_start(void *ctx, char *uri, char *data, int dlen, int keep);
void http_async_add_header(void *ctx, char *name, char *data);
@@ -36,7 +36,7 @@ void http_async_get_length(void *ctx, int *total, int *done);
char *http_async_req_stop(void *ctx, int *ret, int *len);
void http_async_req_close(void *ctx);
-char *http_multipart_post(char *uri, char **names, char **parts, int *plens, char *user, char *pass, int *ret, int *len);
+char *http_multipart_post(char *uri, char **names, char **parts, int *plens, char *user, char *pass, char * session_id, int *ret, int *len);
char *http_ret_text(int ret);
diff --git a/includes/interface.h b/includes/interface.h
index 4bee583..15e857d 100644
--- a/includes/interface.h
+++ b/includes/interface.h
@@ -118,6 +118,8 @@ extern int svf_admin;
extern int svf_mod;
extern char svf_user[64];
extern char svf_pass[64];
+extern char svf_user_id[64];
+extern char svf_session_id[64];
extern int svf_open;
extern int svf_own;