version 1.166, 2016/11/03 15:54:39 |
version 1.167, 2016/11/04 05:13:13 |
|
|
#define TLS_NOVERIFY (1 << 2) |
#define TLS_NOVERIFY (1 << 2) |
#define TLS_NONAME (1 << 3) |
#define TLS_NONAME (1 << 3) |
#define TLS_CCERT (1 << 4) |
#define TLS_CCERT (1 << 4) |
|
#define TLS_MUSTSTAPLE (1 << 5) |
|
|
/* Command Line Options */ |
/* Command Line Options */ |
int dflag; /* detached, no stdin */ |
int dflag; /* detached, no stdin */ |
|
|
"together"); |
"together"); |
tls_config_insecure_noverifycert(tls_cfg); |
tls_config_insecure_noverifycert(tls_cfg); |
} |
} |
|
if (TLSopt & TLS_MUSTSTAPLE) |
|
tls_config_ocsp_require_stapling(tls_cfg); |
|
|
if (Pflag) { |
if (Pflag) { |
if (pledge("stdio inet dns tty", NULL) == -1) |
if (pledge("stdio inet dns tty", NULL) == -1) |
|
|
{ "noverify", TLS_NOVERIFY }, |
{ "noverify", TLS_NOVERIFY }, |
{ "noname", TLS_NONAME }, |
{ "noname", TLS_NONAME }, |
{ "clientcert", TLS_CCERT}, |
{ "clientcert", TLS_CCERT}, |
|
{ "muststaple", TLS_MUSTSTAPLE}, |
{ NULL, -1 }, |
{ NULL, -1 }, |
}; |
}; |
|
|