Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
64460798
Commit
64460798
authored
Feb 02, 2016
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
http: simplify vlc_http_auth cleanup
parent
7da227d4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
16 deletions
+14
-16
include/vlc_http.h
include/vlc_http.h
+1
-1
modules/access/http.c
modules/access/http.c
+2
-2
src/libvlccore.sym
src/libvlccore.sym
+1
-1
src/network/http_auth.c
src/network/http_auth.c
+10
-12
No files found.
include/vlc_http.h
View file @
64460798
...
...
@@ -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_
Rese
t
(
vlc_http_auth_t
*
);
VLC_API
void
vlc_http_auth_
Deini
t
(
vlc_http_auth_t
*
);
VLC_API
void
vlc_http_auth_ParseWwwAuthenticateHeader
(
vlc_object_t
*
,
vlc_http_auth_t
*
,
const
char
*
);
VLC_API
int
vlc_http_auth_ParseAuthenticationInfoHeader
...
...
modules/access/http.c
View file @
64460798
...
...
@@ -470,10 +470,10 @@ static void Close( vlc_object_t *p_this )
access_sys_t
*
p_sys
=
p_access
->
p_sys
;
vlc_UrlClean
(
&
p_sys
->
url
);
vlc_http_auth_
Rese
t
(
&
p_sys
->
auth
);
vlc_http_auth_
Deini
t
(
&
p_sys
->
auth
);
if
(
p_sys
->
b_proxy
)
vlc_UrlClean
(
&
p_sys
->
proxy
);
vlc_http_auth_
Rese
t
(
&
p_sys
->
proxy_auth
);
vlc_http_auth_
Deini
t
(
&
p_sys
->
proxy_auth
);
free
(
p_sys
->
psz_mime
);
free
(
p_sys
->
psz_location
);
...
...
src/libvlccore.sym
View file @
64460798
...
...
@@ -135,7 +135,7 @@ GetLang_1
GetLang_2B
GetLang_2T
vlc_http_auth_Init
vlc_http_auth_
Rese
t
vlc_http_auth_
Deini
t
vlc_http_auth_ParseWwwAuthenticateHeader
vlc_http_auth_ParseAuthenticationInfoHeader
vlc_http_auth_FormatAuthorizationHeader
...
...
src/network/http_auth.c
View file @
64460798
...
...
@@ -491,17 +491,15 @@ void vlc_http_auth_Init( vlc_http_auth_t *p_auth )
memset
(
p_auth
,
0
,
sizeof
(
*
p_auth
)
);
}
void
vlc_http_auth_
Rese
t
(
vlc_http_auth_t
*
p_auth
)
void
vlc_http_auth_
Deini
t
(
vlc_http_auth_t
*
p_auth
)
{
p_auth
->
i_nonce
=
0
;
FREENULL
(
p_auth
->
psz_realm
);
FREENULL
(
p_auth
->
psz_domain
);
FREENULL
(
p_auth
->
psz_nonce
);
FREENULL
(
p_auth
->
psz_opaque
);
FREENULL
(
p_auth
->
psz_stale
);
FREENULL
(
p_auth
->
psz_algorithm
);
FREENULL
(
p_auth
->
psz_qop
);
FREENULL
(
p_auth
->
psz_cnonce
);
FREENULL
(
p_auth
->
psz_HA1
);
free
(
p_auth
->
psz_realm
);
free
(
p_auth
->
psz_domain
);
free
(
p_auth
->
psz_nonce
);
free
(
p_auth
->
psz_opaque
);
free
(
p_auth
->
psz_stale
);
free
(
p_auth
->
psz_algorithm
);
free
(
p_auth
->
psz_qop
);
free
(
p_auth
->
psz_cnonce
);
free
(
p_auth
->
psz_HA1
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment