| VLC
    3.0.18
    | 

Go to the source code of this file.
| Data Structures | |
| struct | vlc_http_auth_t | 
| Typedefs | |
| typedef struct vlc_http_auth_t | vlc_http_auth_t | 
| typedef struct vlc_http_cookie_jar_t | vlc_http_cookie_jar_t | 
| Functions | |
| void | vlc_http_auth_Init (vlc_http_auth_t *) | 
| void | vlc_http_auth_Deinit (vlc_http_auth_t *) | 
| void | vlc_http_auth_ParseWwwAuthenticateHeader (vlc_object_t *, vlc_http_auth_t *, const char *) | 
| int | vlc_http_auth_ParseAuthenticationInfoHeader (vlc_object_t *, vlc_http_auth_t *, const char *, const char *, const char *, const char *, const char *) | 
| char * | vlc_http_auth_FormatAuthorizationHeader (vlc_object_t *, vlc_http_auth_t *, const char *, const char *, const char *, const char *) | 
| vlc_http_cookie_jar_t * | vlc_http_cookies_new (void) | 
| void | vlc_http_cookies_destroy (vlc_http_cookie_jar_t *p_jar) | 
| bool | vlc_http_cookies_store (vlc_http_cookie_jar_t *jar, const char *cookie, const char *host, const char *path) | 
| Parse a value of an incoming Set-Cookie header and append the cookie to the cookie jar if appropriate.  More... | |
| char * | vlc_http_cookies_fetch (vlc_http_cookie_jar_t *jar, bool secure, const char *host, const char *path) | 
| Returns a cookie value that match the given URL.  More... | |
This file defines functions, structures, enums and macros shared between HTTP clients.
| typedef struct vlc_http_auth_t vlc_http_auth_t | 
| typedef struct vlc_http_cookie_jar_t vlc_http_cookie_jar_t | 
| void vlc_http_auth_Deinit | ( | vlc_http_auth_t * | ) | 
| char* vlc_http_auth_FormatAuthorizationHeader | ( | vlc_object_t * | , | 
| vlc_http_auth_t * | , | ||
| const char * | , | ||
| const char * | , | ||
| const char * | , | ||
| const char * | |||
| ) | 
| void vlc_http_auth_Init | ( | vlc_http_auth_t * | ) | 
| int vlc_http_auth_ParseAuthenticationInfoHeader | ( | vlc_object_t * | , | 
| vlc_http_auth_t * | , | ||
| const char * | , | ||
| const char * | , | ||
| const char * | , | ||
| const char * | , | ||
| const char * | |||
| ) | 
< No error
< Unspecified error
< Unspecified error
< Unspecified error
References AuthDigest(), AuthGetParam(), AuthGetParamNoQuotes(), vlc_http_auth_t::i_nonce, msg_Err, msg_Warn, vlc_http_auth_t::psz_cnonce, vlc_http_auth_t::psz_nonce, vlc_http_auth_t::psz_qop, VLC_EGENERIC, and VLC_SUCCESS.
| void vlc_http_auth_ParseWwwAuthenticateHeader | ( | vlc_object_t * | , | 
| vlc_http_auth_t * | , | ||
| const char * | |||
| ) | 
| void vlc_http_cookies_destroy | ( | vlc_http_cookie_jar_t * | p_jar | ) | 
References cookie_destroy(), vlc_http_cookie_jar_t::cookies, vlc_http_cookie_jar_t::lock, vlc_array_clear(), vlc_array_count(), vlc_array_item_at_index, and vlc_mutex_destroy().
Referenced by playlist_Destroy().
| char* vlc_http_cookies_fetch | ( | vlc_http_cookie_jar_t * | jar, | 
| bool | secure, | ||
| const char * | host, | ||
| const char * | path | ||
| ) | 
Returns a cookie value that match the given URL.
| p_jar | a cookie jar | 
| p_url | the URL for which the cookies are returned | 
References asprintf(), cookie_should_be_sent(), vlc_http_cookie_jar_t::cookies, vlc_http_cookie_jar_t::lock, http_cookie_t::psz_name, http_cookie_t::psz_value, vlc_array_count(), vlc_array_item_at_index, vlc_mutex_lock(), and vlc_mutex_unlock().
Referenced by vlc_http_msg_add_cookies().
| vlc_http_cookie_jar_t* vlc_http_cookies_new | ( | void | ) | 
References vlc_http_cookie_jar_t::cookies, vlc_http_cookie_jar_t::lock, unlikely, vlc_array_init(), and vlc_mutex_init().
Referenced by playlist_Create().
| bool vlc_http_cookies_store | ( | vlc_http_cookie_jar_t * | jar, | 
| const char * | cookie, | ||
| const char * | host, | ||
| const char * | path | ||
| ) | 
Parse a value of an incoming Set-Cookie header and append the cookie to the cookie jar if appropriate.
| jar | cookie jar object | 
| cookie | header field value of Set-Cookie | 
References cookie_destroy(), cookie_domain_matches(), cookie_parse(), vlc_http_cookie_jar_t::cookies, vlc_http_cookie_jar_t::lock, http_cookie_t::psz_domain, http_cookie_t::psz_name, http_cookie_t::psz_path, vlc_array_append(), vlc_array_count(), vlc_array_item_at_index, vlc_array_remove(), vlc_ascii_strcasecmp(), vlc_mutex_lock(), and vlc_mutex_unlock().
Referenced by vlc_http_msg_get_cookies().
 1.8.16
 1.8.16