mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-23 18:04:07 +00:00
[mod_sofia] Add TLS v1.3 support.
This commit is contained in:
parent
619bc8e8f1
commit
31372fa7c1
@ -461,6 +461,7 @@ typedef enum {
|
|||||||
SOFIA_TLS_VERSION_TLSv1 = (1 << 2),
|
SOFIA_TLS_VERSION_TLSv1 = (1 << 2),
|
||||||
SOFIA_TLS_VERSION_TLSv1_1 = (1 << 3),
|
SOFIA_TLS_VERSION_TLSv1_1 = (1 << 3),
|
||||||
SOFIA_TLS_VERSION_TLSv1_2 = (1 << 4),
|
SOFIA_TLS_VERSION_TLSv1_2 = (1 << 4),
|
||||||
|
SOFIA_TLS_VERSION_TLSv1_3 = (1 << 5),
|
||||||
} sofia_tls_version_t;
|
} sofia_tls_version_t;
|
||||||
|
|
||||||
typedef enum {
|
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;
|
||||||
profile->tls_version |= SOFIA_TLS_VERSION_TLSv1_1;
|
profile->tls_version |= SOFIA_TLS_VERSION_TLSv1_1;
|
||||||
profile->tls_version |= SOFIA_TLS_VERSION_TLSv1_2;
|
profile->tls_version |= SOFIA_TLS_VERSION_TLSv1_2;
|
||||||
|
profile->tls_version |= SOFIA_TLS_VERSION_TLSv1_3;
|
||||||
profile->tls_timeout = 300;
|
profile->tls_timeout = 300;
|
||||||
profile->mflags = MFLAG_REFER | MFLAG_REGISTER;
|
profile->mflags = MFLAG_REFER | MFLAG_REGISTER;
|
||||||
profile->server_rport_level = 1;
|
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;
|
profile->tls_version |= SOFIA_TLS_VERSION_TLSv1_1;
|
||||||
if (n==7 && !strncasecmp(ps, "tlsv1.2", n))
|
if (n==7 && !strncasecmp(ps, "tlsv1.2", n))
|
||||||
profile->tls_version |= SOFIA_TLS_VERSION_TLSv1_2;
|
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;
|
ps=pe+1;
|
||||||
}
|
}
|
||||||
} else if (!strcasecmp(var, "tls-timeout") && !zstr(val)) {
|
} else if (!strcasecmp(var, "tls-timeout") && !zstr(val)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user