Commit 6bbc0fad authored by Youness Alaoui's avatar Youness Alaoui Committed by Olivier Crête

Only use pseudossl for OC2007 if turn type is TLS

parent 9eaa6d5c
...@@ -1939,8 +1939,9 @@ priv_add_new_candidate_discovery_turn (NiceAgent *agent, ...@@ -1939,8 +1939,9 @@ priv_add_new_candidate_discovery_turn (NiceAgent *agent,
agent->compatibility == NICE_COMPATIBILITY_GOOGLE) { agent->compatibility == NICE_COMPATIBILITY_GOOGLE) {
nicesock = nice_pseudossl_socket_new (nicesock, nicesock = nice_pseudossl_socket_new (nicesock,
NICE_PSEUDOSSL_SOCKET_COMPATIBILITY_GOOGLE); NICE_PSEUDOSSL_SOCKET_COMPATIBILITY_GOOGLE);
} else if (agent->compatibility == NICE_COMPATIBILITY_OC2007 || } else if (turn->type == NICE_RELAY_TYPE_TURN_TLS &&
agent->compatibility == NICE_COMPATIBILITY_OC2007R2) { (agent->compatibility == NICE_COMPATIBILITY_OC2007 ||
agent->compatibility == NICE_COMPATIBILITY_OC2007R2)) {
nicesock = nice_pseudossl_socket_new (nicesock, nicesock = nice_pseudossl_socket_new (nicesock,
NICE_PSEUDOSSL_SOCKET_COMPATIBILITY_MSOC); NICE_PSEUDOSSL_SOCKET_COMPATIBILITY_MSOC);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment