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
c2a6a1a9
Commit
c2a6a1a9
authored
Apr 23, 2006
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Doxygenization
parent
ddcfbcdf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
18 deletions
+27
-18
src/network/tls.c
src/network/tls.c
+27
-18
No files found.
src/network/tls.c
View file @
c2a6a1a9
...
@@ -21,6 +21,11 @@
...
@@ -21,6 +21,11 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
*****************************************************************************/
/**
* @file
* libvlc interface to the Transport Layer Security (TLS) plugins.
*/
#include <stdlib.h>
#include <stdlib.h>
#include <vlc/vlc.h>
#include <vlc/vlc.h>
...
@@ -90,12 +95,15 @@ tls_Deinit( tls_t *p_tls )
...
@@ -90,12 +95,15 @@ tls_Deinit( tls_t *p_tls )
}
}
}
}
/*****************************************************************************
/**
* tls_ServerCreate:
*****************************************************************************
* Allocates a whole server's TLS credentials.
* Allocates a whole server's TLS credentials.
* Returns NULL on error.
*
*****************************************************************************/
* @param psz_cert required (Unicode) path to an x509 certificate.
* @param psz_key required (Unicode) path to the PKCS private key for
* the certificate.
*
* @return NULL on error.
*/
tls_server_t
*
tls_server_t
*
tls_ServerCreate
(
vlc_object_t
*
p_this
,
const
char
*
psz_cert
,
tls_ServerCreate
(
vlc_object_t
*
p_this
,
const
char
*
psz_cert
,
const
char
*
psz_key
)
const
char
*
psz_key
)
...
@@ -124,11 +132,9 @@ tls_ServerCreate( vlc_object_t *p_this, const char *psz_cert,
...
@@ -124,11 +132,9 @@ tls_ServerCreate( vlc_object_t *p_this, const char *psz_cert,
}
}
/*****************************************************************************
/**
* tls_ServerDelete:
*****************************************************************************
* Releases data allocated with tls_ServerCreate.
* Releases data allocated with tls_ServerCreate.
*
****************************************************************************
/
*/
void
void
tls_ServerDelete
(
tls_server_t
*
p_server
)
tls_ServerDelete
(
tls_server_t
*
p_server
)
{
{
...
@@ -140,12 +146,16 @@ tls_ServerDelete( tls_server_t *p_server )
...
@@ -140,12 +146,16 @@ tls_ServerDelete( tls_server_t *p_server )
}
}
/*****************************************************************************
/**
* tls_ClientCreate:
*****************************************************************************
* Allocates a client's TLS credentials and shakes hands through the network.
* Allocates a client's TLS credentials and shakes hands through the network.
* Returns NULL on error. This is a blocking network operation.
* This is a blocking network operation.
*****************************************************************************/
*
* @param fd stream socket through which to establish the secure communication
* layer.
* @param psz_hostname Server Name Indication to pass to the server, or NULL.
*
* @return NULL on error.
**/
tls_session_t
*
tls_session_t
*
tls_ClientCreate
(
vlc_object_t
*
p_this
,
int
fd
,
const
char
*
psz_hostname
)
tls_ClientCreate
(
vlc_object_t
*
p_this
,
int
fd
,
const
char
*
psz_hostname
)
{
{
...
@@ -181,11 +191,10 @@ tls_ClientCreate( vlc_object_t *p_this, int fd, const char *psz_hostname )
...
@@ -181,11 +191,10 @@ tls_ClientCreate( vlc_object_t *p_this, int fd, const char *psz_hostname )
}
}
/*****************************************************************************
/**
* tls_ClientDelete:
*****************************************************************************
* Releases data allocated with tls_ClientCreate.
* Releases data allocated with tls_ClientCreate.
*****************************************************************************/
* It is your job to close the underlying socket.
*/
void
void
tls_ClientDelete
(
tls_session_t
*
p_session
)
tls_ClientDelete
(
tls_session_t
*
p_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