summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-03-04 09:09:18 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-03-04 09:09:18 +0200
commit2f6fd59952ce3d76b15a4b7b8f526e27edd39775 (patch)
tree484b67b8990ef36b7c25370b199e05b7ad803da3
parentd8203435d6dc8c44f5cf7b53a04eb5fdc21042cd (diff)
macOS: CA certificate default location
-rw-r--r--src/prefs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/prefs.c b/src/prefs.c
index e3b5d603..b4b3b32c 100644
--- a/src/prefs.c
+++ b/src/prefs.c
@@ -61,6 +61,9 @@ void init_Prefs(iPrefs *d) {
61 d->hoverLink = iFalse; 61 d->hoverLink = iFalse;
62#endif 62#endif
63 /* TODO: Add some platform-specific common locations? */ 63 /* TODO: Add some platform-specific common locations? */
64 if (fileExistsCStr_FileInfo("/etc/ssl/cert.pem")) { /* macOS */
65 setCStr_String(&d->caFile, "/etc/ssl/cert.pem");
66 }
64 if (fileExistsCStr_FileInfo("/etc/ssl/certs")) { 67 if (fileExistsCStr_FileInfo("/etc/ssl/certs")) {
65 setCStr_String(&d->caPath, "/etc/ssl/certs"); 68 setCStr_String(&d->caPath, "/etc/ssl/certs");
66 } 69 }