[glib-networking] Do not load certificates from default paths on MacOS



commit 7c4a2b9e6d74ae4feb59b1155de85da4af763fdf
Author: Francesco Conti <fconti amazon com>
Date:   Mon Nov 15 15:05:51 2021 +0100

    Do not load certificates from default paths on MacOS
    
    Since the root certificates are already loaded it is not
    necessary to load the certificates from the defualt paths

 tls/openssl/gtlsdatabase-openssl.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tls/openssl/gtlsdatabase-openssl.c b/tls/openssl/gtlsdatabase-openssl.c
index 7ba7b8c3..65709fc5 100644
--- a/tls/openssl/gtlsdatabase-openssl.c
+++ b/tls/openssl/gtlsdatabase-openssl.c
@@ -221,8 +221,7 @@ g_tls_database_openssl_populate_trust_list (GTlsDatabaseOpenssl  *self,
     }
 
   CFRelease (anchors);
-#endif
-
+#else
   if (!X509_STORE_set_default_paths (store))
     {
       char error_buffer[256];
@@ -232,6 +231,7 @@ g_tls_database_openssl_populate_trust_list (GTlsDatabaseOpenssl  *self,
                    error_buffer);
       return FALSE;
     }
+#endif
 
   return TRUE;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]