diff options
author | bertrand <bertrand@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-06-23 09:16:08 +0000 |
---|---|---|
committer | bertrand <bertrand@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-06-23 09:16:08 +0000 |
commit | f83fbf33c3710c5efa2d376a73560cb7077949ee (patch) | |
tree | 9c377760f117bbe6908e2a490f6e85aac37673cd /libmpdemux/http.h | |
parent | d5ae6731503a272b0b8b89c774529d7e2f66582e (diff) | |
download | mpv-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.h | 4 |
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 |