Enable SNI in ssl adapter.
Bug: webrtc:6973 Change-Id: I13d28cf41c586880bd7fea523005233921794cdf Reviewed-on: https://chromium-review.googlesource.com/523024 Reviewed-by: Zeke Chin <tkchin@webrtc.org> Reviewed-by: Sami Kalliomäki <sakal@webrtc.org> Reviewed-by: Justin Uberti <juberti@chromium.org> Reviewed-by: Taylor Brandstetter <deadbeef@webrtc.org> Commit-Queue: Emad Omara <emadomara@google.com> Cr-Commit-Position: refs/heads/master@{#18640}
This commit is contained in:
@ -96,11 +96,20 @@ public class PeerConnection {
|
||||
|
||||
/** Java version of PeerConnectionInterface.IceServer. */
|
||||
public static class IceServer {
|
||||
// List of URIs associated with this server. Valid formats are described
|
||||
// in RFC7064 and RFC7065, and more may be added in the future. The "host"
|
||||
// part of the URI may contain either an IP address or a hostname.
|
||||
public final String uri;
|
||||
public final String username;
|
||||
public final String password;
|
||||
public final TlsCertPolicy tlsCertPolicy;
|
||||
|
||||
// If the URIs in |urls| only contain IP addresses, this field can be used
|
||||
// to indicate the hostname, which may be necessary for TLS (using the SNI
|
||||
// extension). If |urls| itself contains the hostname, this isn't
|
||||
// necessary.
|
||||
public final String hostname;
|
||||
|
||||
/** Convenience constructor for STUN servers. */
|
||||
public IceServer(String uri) {
|
||||
this(uri, "", "");
|
||||
@ -111,14 +120,21 @@ public class PeerConnection {
|
||||
}
|
||||
|
||||
public IceServer(String uri, String username, String password, TlsCertPolicy tlsCertPolicy) {
|
||||
this(uri, username, password, tlsCertPolicy, "");
|
||||
}
|
||||
|
||||
public IceServer(String uri, String username, String password, TlsCertPolicy tlsCertPolicy,
|
||||
String hostname) {
|
||||
this.uri = uri;
|
||||
this.username = username;
|
||||
this.password = password;
|
||||
this.tlsCertPolicy = tlsCertPolicy;
|
||||
this.hostname = hostname;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return uri + " [" + username + ":" + password + "] [" + tlsCertPolicy + "]";
|
||||
return uri + " [" + username + ":" + password + "] [" + tlsCertPolicy + "] [" + hostname
|
||||
+ "]";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user