[glib-networking/use-default-verify-paths] Add error
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking/use-default-verify-paths] Add error
- Date: Thu, 14 Feb 2019 10:57:45 +0000 (UTC)
commit ced634500b816fbac637c60e6202c76e5199ec30
Author: Ignacio Casal Quinteiro <qignacio amazon com>
Date: Thu Feb 14 11:57:17 2019 +0100
Add error
tls/openssl/gtlsdatabase-openssl.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/tls/openssl/gtlsdatabase-openssl.c b/tls/openssl/gtlsdatabase-openssl.c
index 79388a7..0dd3034 100644
--- a/tls/openssl/gtlsdatabase-openssl.c
+++ b/tls/openssl/gtlsdatabase-openssl.c
@@ -534,7 +534,13 @@ g_tls_database_openssl_populate_trust_list (GTlsDatabaseOpenssl *self,
X509_STORE *store,
GError **error)
{
- X509_STORE_set_default_paths (store);
+ if (!X509_STORE_set_default_paths (store))
+ {
+ g_set_error (error, G_TLS_ERROR, G_TLS_ERROR_MISC,
+ _("Failed to load system trust store: %s"),
+ ERR_error_string (ERR_get_error (), NULL));
+ return FALSE;
+ }
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]