summaryrefslogtreecommitdiffstats
path: root/libmpdemux/http.h
diff options
context:
space:
mode:
authorbertrand <bertrand@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-06-23 09:16:08 +0000
committerbertrand <bertrand@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-06-23 09:16:08 +0000
commitf83fbf33c3710c5efa2d376a73560cb7077949ee (patch)
tree9c377760f117bbe6908e2a490f6e85aac37673cd /libmpdemux/http.h
parentd5ae6731503a272b0b8b89c774529d7e2f66582e (diff)
downloadmpv-f83fbf33c3710c5efa2d376a73560cb7077949ee.tar.bz2
mpv-f83fbf33c3710c5efa2d376a73560cb7077949ee.tar.xz
Added base64 encoder
Added http basic authentication git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6515 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/http.h')
-rw-r--r--libmpdemux/http.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libmpdemux/http.h b/libmpdemux/http.h
index ebd0d9f8cb..84b15901cc 100644
--- a/libmpdemux/http.h
+++ b/libmpdemux/http.h
@@ -25,7 +25,7 @@ typedef struct {
int field_nb;
char *field_search;
HTTP_field_t *field_search_pos;
- // Body varibles
+ // Body variables
char *body;
int body_size;
char *buffer;
@@ -44,7 +44,9 @@ char* http_get_next_field( HTTP_header_t *http_hdr );
void http_set_field( HTTP_header_t *http_hdr, const char *field_name );
void http_set_method( HTTP_header_t *http_hdr, const char *method );
void http_set_uri( HTTP_header_t *http_hdr, const char *uri );
+int http_add_basic_authentication( HTTP_header_t *http_hdr, const char *username, const char *password );
void http_debug_hdr( HTTP_header_t *http_hdr );
+int base64_encode(const void *enc, int encLen, char *out, int outMax);
#endif // __HTTP_H