mirror of
https://github.com/proxytunnel/proxytunnel.git
synced 2026-01-23 02:34:59 +00:00
Add option for local default OpenSSL 1.1 CA file
Provides non-empty default for Homebrew on macOS
This commit is contained in:
parent
6014edcc61
commit
e448313d68
1 changed files with 5 additions and 0 deletions
|
|
@ -263,8 +263,13 @@ int stream_enable_ssl(PTSTREAM *pts, const char *proxy_arg) {
|
|||
X509* cert = NULL;
|
||||
int status;
|
||||
struct stat st_buf;
|
||||
#ifndef LOCAL_OPENSSL11
|
||||
const char *ca_file = NULL;
|
||||
const char *ca_dir = "/etc/ssl/certs/"; /* Default cert directory if none given */
|
||||
#else
|
||||
const char *ca_file = "/usr/local/etc/openssl@1.1/cacert.pem";
|
||||
const char *ca_dir = NULL;
|
||||
#endif /* !LOCAL_OPENSSL11 */
|
||||
long vresult;
|
||||
char *peer_host = NULL;
|
||||
char proxy_arg_fmt[32];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue