aboutsummaryrefslogtreecommitdiff
path: root/src/lpm.c
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2022-12-30 15:01:09 -0500
committerAdam Harrison <adamdharrison@gmail.com>2022-12-30 15:01:09 -0500
commiteec2fe103b82e3e76175aa7bcaacb85734602f75 (patch)
treea166aeaf9c17e7ec648ecefc8b0bf74bd3c2e403 /src/lpm.c
parent8d198d903cbfb52cffd74331e2c118c389e69757 (diff)
downloadlite-xl-plugin-manager-eec2fe103b82e3e76175aa7bcaacb85734602f75.tar.gz
lite-xl-plugin-manager-eec2fe103b82e3e76175aa7bcaacb85734602f75.zip
Routed through FS for mac.
Diffstat (limited to 'src/lpm.c')
-rw-r--r--src/lpm.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/lpm.c b/src/lpm.c
index 818a78a..8fe1a25 100644
--- a/src/lpm.c
+++ b/src/lpm.c
@@ -461,8 +461,8 @@ static int lpm_certs(lua_State* L) {
}
fclose(file);
CertCloseStore(hSystemStore, 0);
- #elseif __APPLE__ // https://developer.apple.com/forums/thread/691009
- CFStringRef keys[] = { kSecClass, kSecMatchLimit, kSecReturnRef };
+ #elif __APPLE__ // https://developer.apple.com/forums/thread/691009; also pulled from curl
+ /*CFStringRef keys[] = { kSecClass, kSecMatchLimit, kSecReturnRef };
CFTypeRef values[] = { kSecClassCertificate, kSecMatchLimitAll, kCFBooleanTrue };
CFDictionaryRef query = CFDictionaryCreate(
NULL,
@@ -476,9 +476,10 @@ static int lpm_certs(lua_State* L) {
OSStatus err = SecItemCopyMatching(query, &copyResult);
if (err == errSecSuccess) {
// Try and
- }
+ }*/
+ return luaL_error(L, "can't use system on mac yet");
#else
- return luaL_error(L, "can't use system certificates on windows or mac");
+ return luaL_error(L, "can't use system certificates except on windows or mac");
#endif
}
git_libgit2_opts(GIT_OPT_SET_SSL_CERT_LOCATIONS, path, NULL);