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
b37d394d
Commit
b37d394d
authored
Mar 10, 2005
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Release certificate creds after terminating session
parent
e28940d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
modules/misc/gnutls.c
modules/misc/gnutls.c
+10
-6
No files found.
modules/misc/gnutls.c
View file @
b37d394d
...
...
@@ -313,9 +313,13 @@ static void
gnutls_ClientDelete
(
tls_session_t
*
p_session
)
{
/* On the client-side, credentials are re-allocated per session */
gnutls_certificate_free_credentials
(
((
tls_client_sys_t
*
)
(
p_session
->
p_sys
))
->
x509_cred
);
gnutls_certificate_credentials
x509_cred
=
((
tls_client_sys_t
*
)(
p_session
->
p_sys
))
->
x509_cred
;
gnutls_SessionClose
(
p_session
);
/* credentials must be free'd *after* gnutls_deinit() */
gnutls_certificate_free_credentials
(
x509_cred
);
}
...
...
@@ -631,17 +635,17 @@ static void
gnutls_ServerDelete
(
tls_server_t
*
p_server
)
{
tls_server_sys_t
*
p_sys
;
p_sys
=
(
tls_server_sys_t
*
)
p_server
->
p_sys
;
gnutls_certificate_free_credentials
(
p_sys
->
x509_cred
);
gnutls_dh_params_deinit
(
p_sys
->
dh_params
);
vlc_mutex_destroy
(
&
p_sys
->
cache_lock
);
free
(
p_sys
->
p_cache
);
vlc_object_detach
(
p_server
);
vlc_object_destroy
(
p_server
);
free
(
p_sys
->
p_cache
);
/* all sessions depending on the server are now deinitialized */
gnutls_certificate_free_credentials
(
p_sys
->
x509_cred
);
gnutls_dh_params_deinit
(
p_sys
->
dh_params
);
free
(
p_sys
);
}
...
...
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