Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
faad8867
Commit
faad8867
authored
Dec 26, 2004
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Generic client SSL/TLS support
parent
caf4b943
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
modules/misc/gnutls.c
modules/misc/gnutls.c
+1
-0
src/misc/tls.c
src/misc/tls.c
+8
-5
No files found.
modules/misc/gnutls.c
View file @
faad8867
...
...
@@ -305,6 +305,7 @@ gnutls_ClientCreate( tls_t *p_tls, const char *psz_ca_path )
p_session
->
sock
.
pf_send
=
gnutls_Send
;
p_session
->
sock
.
pf_recv
=
gnutls_Recv
;
p_session
->
pf_handshake
=
gnutls_SessionHandshake
;
p_session
->
pf_handshake2
=
gnutls_SessionContinueHandshake
;
p_session
->
pf_close
=
gnutls_SessionClose
;
return
p_session
;
...
...
src/misc/tls.c
View file @
faad8867
...
...
@@ -29,7 +29,6 @@
/*
* TODO:
* - client side stuff,
* - server-side client cert validation,
* - client-side server cert validation (?).
*/
...
...
@@ -97,7 +96,7 @@ tls_ServerDelete( tls_server_t *p_server )
* tls_ClientCreate:
*****************************************************************************
* Allocates a client's TLS credentials and shakes hands through the network.
* Returns NULL on error.
* Returns NULL on error.
This is a blocking network operation.
*****************************************************************************/
tls_session_t
*
tls_ClientCreate
(
vlc_object_t
*
p_this
,
const
char
*
psz_ca
,
int
fd
)
...
...
@@ -114,13 +113,17 @@ tls_ClientCreate( vlc_object_t *p_this, const char *psz_ca, int fd )
p_session
=
__tls_ClientCreate
(
p_tls
,
psz_ca
);
if
(
p_session
!=
NULL
)
{
if
(
tls_SessionHandshake
(
p_session
,
fd
)
)
int
i_val
;
for
(
i_val
=
tls_SessionHandshake
(
p_session
,
fd
);
i_val
>
0
;
i_val
=
tls_SessionContinueHandshake
(
p_session
)
);
if
(
i_val
==
0
)
{
msg_Dbg
(
p_this
,
"TLS/SSL provider initialized"
);
return
p_session
;
}
else
msg_Err
(
p_this
,
"TLS/SSL session handshake error"
);
msg_Err
(
p_this
,
"TLS/SSL session handshake error"
);
}
else
msg_Err
(
p_this
,
"TLS/SSL provider error"
);
...
...
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