version 1.133, 2020/09/06 09:00:37 |
version 1.134, 2020/09/06 09:03:13 |
|
|
process_ssl_options(char *cp) |
process_ssl_options(char *cp) |
{ |
{ |
const char *errstr; |
const char *errstr; |
long long depth; |
|
char *str; |
char *str; |
|
int depth; |
uint32_t protocols; |
uint32_t protocols; |
|
|
while (*cp) { |
while (*cp) { |
|
|
if (errstr) |
if (errstr) |
errx(1, "certificate validation depth is %s", |
errx(1, "certificate validation depth is %s", |
errstr); |
errstr); |
tls_config_set_verify_depth(tls_config, (int)depth); |
tls_config_set_verify_depth(tls_config, depth); |
break; |
break; |
case SSL_MUSTSTAPLE: |
case SSL_MUSTSTAPLE: |
tls_config_ocsp_require_stapling(tls_config); |
tls_config_ocsp_require_stapling(tls_config); |