mirror of
https://github.com/proxytunnel/proxytunnel.git
synced 2026-01-23 02:34:59 +00:00
Accept alt ca_file and ca_dir as compiler options
This commit is contained in:
parent
e448313d68
commit
a269b94ad8
1 changed files with 7 additions and 4 deletions
11
ptstream.c
11
ptstream.c
|
|
@ -263,13 +263,16 @@ int stream_enable_ssl(PTSTREAM *pts, const char *proxy_arg) {
|
|||
X509* cert = NULL;
|
||||
int status;
|
||||
struct stat st_buf;
|
||||
#ifndef LOCAL_OPENSSL11
|
||||
#ifndef DEFAULT_CA_FILE
|
||||
const char *ca_file = NULL;
|
||||
#else
|
||||
const char *ca_file = DEFAULT_CA_FILE; /* Default cert file from in Makefile */
|
||||
#endif /* !DEFAULT_CA_FILE */
|
||||
#ifndef DEFAULT_CA_DIR
|
||||
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 */
|
||||
const char *ca_dir = DEFAULT_CA_DIR; /* Default cert directory from Makefile */
|
||||
#endif /* !DEFAULT_CA_DIR */
|
||||
long vresult;
|
||||
char *peer_host = NULL;
|
||||
char proxy_arg_fmt[32];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue