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
8a0477a7
Commit
8a0477a7
authored
May 09, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tls: keep track of the underlying file descriptor
parent
7c5554a0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
include/vlc_tls.h
include/vlc_tls.h
+1
-0
src/network/tls.c
src/network/tls.c
+7
-4
No files found.
include/vlc_tls.h
View file @
8a0477a7
...
...
@@ -38,6 +38,7 @@ struct vlc_tls
VLC_COMMON_MEMBERS
void
*
sys
;
int
fd
;
struct
virtual_socket_t
sock
;
};
...
...
src/network/tls.c
View file @
8a0477a7
...
...
@@ -151,10 +151,13 @@ vlc_tls_t *vlc_tls_SessionCreate (vlc_tls_creds_t *crd, int fd,
vlc_tls_t
*
session
=
vlc_custom_create
(
crd
,
sizeof
(
*
session
),
"tls session"
);
int
val
=
crd
->
open
(
crd
,
session
,
fd
,
host
,
alpn
);
if
(
val
=
=
VLC_SUCCESS
)
return
session
;
if
(
val
!
=
VLC_SUCCESS
)
{
vlc_object_release
(
session
);
return
NULL
;
}
session
->
fd
=
fd
;
return
session
;
}
int
vlc_tls_SessionHandshake
(
vlc_tls_t
*
session
,
const
char
*
host
,
...
...
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