Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
4ec3d936
Commit
4ec3d936
authored
Dec 29, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GnuTLS: use vlc_strerror_c()
parent
d7a9267c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
modules/misc/gnutls.c
modules/misc/gnutls.c
+8
-4
No files found.
modules/misc/gnutls.c
View file @
4ec3d936
...
...
@@ -566,7 +566,8 @@ static int gnutls_AddCA (vlc_tls_creds_t *crd, const char *path)
block_t
*
block
=
block_FilePath
(
path
);
if
(
block
==
NULL
)
{
msg_Err
(
crd
,
"cannot read trusted CA from %s: %m"
,
path
);
msg_Err
(
crd
,
"cannot read trusted CA from %s: %s"
,
path
,
vlc_strerror_c
(
errno
));
return
VLC_EGENERIC
;
}
...
...
@@ -605,7 +606,8 @@ static int gnutls_AddCRL (vlc_tls_creds_t *crd, const char *path)
block_t
*
block
=
block_FilePath
(
path
);
if
(
block
==
NULL
)
{
msg_Err
(
crd
,
"cannot read CRL from %s: %m"
,
path
);
msg_Err
(
crd
,
"cannot read CRL from %s: %s"
,
path
,
vlc_strerror_c
(
errno
));
return
VLC_EGENERIC
;
}
...
...
@@ -661,14 +663,16 @@ static int OpenServer (vlc_tls_creds_t *crd, const char *cert, const char *key)
block_t
*
certblock
=
block_FilePath
(
cert
);
if
(
certblock
==
NULL
)
{
msg_Err
(
crd
,
"cannot read certificate chain from %s: %m"
,
cert
);
msg_Err
(
crd
,
"cannot read certificate chain from %s: %s"
,
cert
,
vlc_strerror_c
(
errno
));
return
VLC_EGENERIC
;
}
block_t
*
keyblock
=
block_FilePath
(
key
);
if
(
keyblock
==
NULL
)
{
msg_Err
(
crd
,
"cannot read private key from %s: %m"
,
key
);
msg_Err
(
crd
,
"cannot read private key from %s: %s"
,
key
,
vlc_strerror_c
(
errno
));
block_Release
(
certblock
);
return
VLC_EGENERIC
;
}
...
...
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