Commit 64460798 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

http: simplify vlc_http_auth cleanup

parent 7da227d4
...@@ -53,7 +53,7 @@ typedef struct vlc_http_auth_t ...@@ -53,7 +53,7 @@ typedef struct vlc_http_auth_t
VLC_API void vlc_http_auth_Init( vlc_http_auth_t * ); VLC_API void vlc_http_auth_Init( vlc_http_auth_t * );
VLC_API void vlc_http_auth_Reset( vlc_http_auth_t * ); VLC_API void vlc_http_auth_Deinit( vlc_http_auth_t * );
VLC_API void vlc_http_auth_ParseWwwAuthenticateHeader VLC_API void vlc_http_auth_ParseWwwAuthenticateHeader
( vlc_object_t *, vlc_http_auth_t * , const char * ); ( vlc_object_t *, vlc_http_auth_t * , const char * );
VLC_API int vlc_http_auth_ParseAuthenticationInfoHeader VLC_API int vlc_http_auth_ParseAuthenticationInfoHeader
......
...@@ -470,10 +470,10 @@ static void Close( vlc_object_t *p_this ) ...@@ -470,10 +470,10 @@ static void Close( vlc_object_t *p_this )
access_sys_t *p_sys = p_access->p_sys; access_sys_t *p_sys = p_access->p_sys;
vlc_UrlClean( &p_sys->url ); vlc_UrlClean( &p_sys->url );
vlc_http_auth_Reset( &p_sys->auth ); vlc_http_auth_Deinit( &p_sys->auth );
if( p_sys->b_proxy ) if( p_sys->b_proxy )
vlc_UrlClean( &p_sys->proxy ); vlc_UrlClean( &p_sys->proxy );
vlc_http_auth_Reset( &p_sys->proxy_auth ); vlc_http_auth_Deinit( &p_sys->proxy_auth );
free( p_sys->psz_mime ); free( p_sys->psz_mime );
free( p_sys->psz_location ); free( p_sys->psz_location );
......
...@@ -135,7 +135,7 @@ GetLang_1 ...@@ -135,7 +135,7 @@ GetLang_1
GetLang_2B GetLang_2B
GetLang_2T GetLang_2T
vlc_http_auth_Init vlc_http_auth_Init
vlc_http_auth_Reset vlc_http_auth_Deinit
vlc_http_auth_ParseWwwAuthenticateHeader vlc_http_auth_ParseWwwAuthenticateHeader
vlc_http_auth_ParseAuthenticationInfoHeader vlc_http_auth_ParseAuthenticationInfoHeader
vlc_http_auth_FormatAuthorizationHeader vlc_http_auth_FormatAuthorizationHeader
......
...@@ -491,17 +491,15 @@ void vlc_http_auth_Init( vlc_http_auth_t *p_auth ) ...@@ -491,17 +491,15 @@ void vlc_http_auth_Init( vlc_http_auth_t *p_auth )
memset( p_auth, 0, sizeof( *p_auth ) ); memset( p_auth, 0, sizeof( *p_auth ) );
} }
void vlc_http_auth_Reset( vlc_http_auth_t *p_auth ) void vlc_http_auth_Deinit( vlc_http_auth_t *p_auth )
{ {
p_auth->i_nonce = 0; free( p_auth->psz_realm );
free( p_auth->psz_domain );
FREENULL( p_auth->psz_realm ); free( p_auth->psz_nonce );
FREENULL( p_auth->psz_domain ); free( p_auth->psz_opaque );
FREENULL( p_auth->psz_nonce ); free( p_auth->psz_stale );
FREENULL( p_auth->psz_opaque ); free( p_auth->psz_algorithm );
FREENULL( p_auth->psz_stale ); free( p_auth->psz_qop );
FREENULL( p_auth->psz_algorithm ); free( p_auth->psz_cnonce );
FREENULL( p_auth->psz_qop ); free( p_auth->psz_HA1 );
FREENULL( p_auth->psz_cnonce );
FREENULL( p_auth->psz_HA1 );
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment