[mod_sofia] Add TLS v1.3 support.
This commit is contained in:
parent
01b92f00bb
commit
ec7ec190b0
|
@ -461,6 +461,7 @@ typedef enum {
|
|||
SOFIA_TLS_VERSION_TLSv1 = (1 << 2),
|
||||
SOFIA_TLS_VERSION_TLSv1_1 = (1 << 3),
|
||||
SOFIA_TLS_VERSION_TLSv1_2 = (1 << 4),
|
||||
SOFIA_TLS_VERSION_TLSv1_3 = (1 << 5),
|
||||
} sofia_tls_version_t;
|
||||
|
||||
typedef enum {
|
||||
|
|
|
@ -4633,6 +4633,7 @@ switch_status_t config_sofia(sofia_config_t reload, char *profile_name)
|
|||
profile->tls_version = SOFIA_TLS_VERSION_TLSv1;
|
||||
profile->tls_version |= SOFIA_TLS_VERSION_TLSv1_1;
|
||||
profile->tls_version |= SOFIA_TLS_VERSION_TLSv1_2;
|
||||
profile->tls_version |= SOFIA_TLS_VERSION_TLSv1_3;
|
||||
profile->tls_timeout = 300;
|
||||
profile->mflags = MFLAG_REFER | MFLAG_REGISTER;
|
||||
profile->server_rport_level = 1;
|
||||
|
@ -5878,6 +5879,8 @@ switch_status_t config_sofia(sofia_config_t reload, char *profile_name)
|
|||
profile->tls_version |= SOFIA_TLS_VERSION_TLSv1_1;
|
||||
if (n==7 && !strncasecmp(ps, "tlsv1.2", n))
|
||||
profile->tls_version |= SOFIA_TLS_VERSION_TLSv1_2;
|
||||
if (n==7 && !strncasecmp(ps, "tlsv1.3", n))
|
||||
profile->tls_version |= SOFIA_TLS_VERSION_TLSv1_3;
|
||||
ps=pe+1;
|
||||
}
|
||||
} else if (!strcasecmp(var, "tls-timeout") && !zstr(val)) {
|
||||
|
|
Loading…
Reference in New Issue