version 1.132, 2020/09/01 12:33:48 |
version 1.133, 2020/09/06 09:00:37 |
|
|
"noverifytime", |
"noverifytime", |
#define SSL_SESSION 8 |
#define SSL_SESSION 8 |
"session", |
"session", |
|
#define SSL_PROTOCOLS 9 |
|
"protocols", |
NULL |
NULL |
}; |
}; |
|
|
|
|
const char *errstr; |
const char *errstr; |
long long depth; |
long long depth; |
char *str; |
char *str; |
|
uint32_t protocols; |
|
|
while (*cp) { |
while (*cp) { |
switch (getsubopt(&cp, ssl_verify_opts, &str)) { |
switch (getsubopt(&cp, ssl_verify_opts, &str)) { |
|
|
tls_session_fd) == -1) |
tls_session_fd) == -1) |
errx(1, "failed to set session: %s", |
errx(1, "failed to set session: %s", |
tls_config_error(tls_config)); |
tls_config_error(tls_config)); |
|
break; |
|
case SSL_PROTOCOLS: |
|
if (str == NULL) |
|
errx(1, "missing protocol name"); |
|
if (tls_config_parse_protocols(&protocols, str) != 0) |
|
errx(1, "failed to parse TLS protocols"); |
|
if (tls_config_set_protocols(tls_config, protocols) != 0) |
|
errx(1, "failed to set TLS protocols"); |
break; |
break; |
default: |
default: |
errx(1, "unknown -S suboption `%s'", |
errx(1, "unknown -S suboption `%s'", |