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
0ac1b96b
Commit
0ac1b96b
authored
Dec 18, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tls: document vlc_tls_SessionDelete()
parent
55d00831
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
include/vlc_tls.h
include/vlc_tls.h
+10
-0
src/network/tls.c
src/network/tls.c
+4
-1
No files found.
include/vlc_tls.h
View file @
0ac1b96b
...
...
@@ -72,6 +72,16 @@ VLC_API vlc_tls_t *vlc_tls_ClientSessionCreate (vlc_tls_creds_t *, int fd,
vlc_tls_t
*
vlc_tls_SessionCreate
(
vlc_tls_creds_t
*
,
int
fd
,
const
char
*
host
,
const
char
*
const
*
alpn
);
/**
* Shuts a TLS session down.
*
* Shuts a TLS session down (if it was succesfully established) and releases
* all resources. The underlying connection is preserved. Use vlc_tls_Close()
* instead to shut it down at the same.
*
* This function is non-blocking and is not a cancellation point.
*/
VLC_API
void
vlc_tls_SessionDelete
(
vlc_tls_t
*
);
VLC_API
int
vlc_tls_Read
(
vlc_tls_t
*
,
void
*
buf
,
size_t
len
,
bool
waitall
);
...
...
src/network/tls.c
View file @
0ac1b96b
...
...
@@ -149,7 +149,10 @@ vlc_tls_t *vlc_tls_SessionCreate (vlc_tls_creds_t *crd, int fd,
void
vlc_tls_SessionDelete
(
vlc_tls_t
*
session
)
{
session
->
close
(
session
);
int
canc
=
vlc_savecancel
();
session
->
close
(
session
);
vlc_restorecancel
(
canc
);
free
(
session
);
}
...
...
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