diff options
author | Eduardo Chappa <chappa@washington.edu> | 2021-03-27 12:43:03 -0600 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2021-03-27 12:43:03 -0600 |
commit | a5c42906261fefe477422cf106cbd0ce934e0173 (patch) | |
tree | 3ab4135304ff155eae681e12c55d5bcfec37e790 /imap/src/c-client/http.h | |
parent | 903b5ac6305612d16e6053b4a4e8957d8ada9bde (diff) | |
download | alpine-a5c42906261fefe477422cf106cbd0ce934e0173.tar.xz |
* new http option for debug. This is mostly useful to debug XOAUTH2
autentication and reveals sensitive login information. Use with care.
Remove your .pine-debug file after using this option.
Diffstat (limited to 'imap/src/c-client/http.h')
-rw-r--r-- | imap/src/c-client/http.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/imap/src/c-client/http.h b/imap/src/c-client/http.h index 41b16842..9c7464e1 100644 --- a/imap/src/c-client/http.h +++ b/imap/src/c-client/http.h @@ -90,6 +90,7 @@ typedef struct http_status_s { typedef struct http_stream { NETSTREAM *netstream; HTTP_HEADER_DATA_S *header; /* headers sent by the server */ + unsigned int debug : 1; /* send debug information */ char *url; /* original url */ char *urlhost; /* get original host */ char *urltail; /* the part of the URL after the original host */ @@ -115,5 +116,7 @@ void http_close (HTTPSTREAM *stream); HTTP_PARAM_S *http_param_get(int); void http_param_free(HTTP_PARAM_S **); +void *http_parameters (long,void *); + /* Ugghh.... just construct the URL for a get request */ unsigned char *http_get_param_url(unsigned char *, HTTP_PARAM_S *); |