Commit dd11c464 authored by Nikola Hardi's avatar Nikola Hardi
Browse files

Enable reading CA certs from X509_CERT_DIR

parent 5b0ec3c6
......@@ -1668,8 +1668,8 @@ int TJAlien::ws_service_callback(struct lws *wsi, enum lws_callback_reasons reas
//SSL_CTX_set_verify((SSL_CTX*)user, SSL_VERIFY_PEER, NULL);
//SSL_set_verify(wsi->ssl, SSL_VERIFY_PEER, NULL);
std::string location = homedir + ".j/trusts/";
std::string capath = std::getenv("JALIEN_CA_PATH") ? : location;
std::string location = homedir + "/.j/trusts/";
std::string capath = std::getenv("X509_CERT_DIR") ? : location;
size_t pos = 0;
std::string token;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment