[vlc-commits] GnuTLS: use vlc_strerror_c()
Rémi Denis-Courmont
git at videolan.org
Sun Dec 29 15:16:31 CET 2013
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Dec 29 15:55:39 2013 +0200| [4ec3d936eb1f6494a16be535f83218e35c440ace] | committer: Rémi Denis-Courmont
GnuTLS: use vlc_strerror_c()
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4ec3d936eb1f6494a16be535f83218e35c440ace
---
modules/misc/gnutls.c | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/modules/misc/gnutls.c b/modules/misc/gnutls.c
index 4a6056a..83d154f 100644
--- a/modules/misc/gnutls.c
+++ b/modules/misc/gnutls.c
@@ -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;
}
More information about the vlc-commits
mailing list