Skip to content

Commit

Permalink
[security/tls] Fix support for HTTPS server with virtual domains. Fix…
Browse files Browse the repository at this point in the history
…es #42796 and #44225 (#815)

PR 525 was never applied to master so it's not in cycle8.
https://github.com/xamarin/maccore/pull/525

references:
https://bugzilla.xamarin.com/show_bug.cgi?id=44225
https://bugzilla.xamarin.com/show_bug.cgi?id=42796
  • Loading branch information
spouliot authored and chamons committed Dec 14, 2016
1 parent 3141ee4 commit 9dc31de
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Security/Tls/AppleTlsContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,12 @@ void InitializeConnection ()

if (AskForClientCertificate)
SetClientSideAuthenticate (SslAuthenticate.Try);

IPAddress address;
if (!IsServer && !string.IsNullOrEmpty (TargetHost) &&
!IPAddress.TryParse (TargetHost, out address)) {
PeerDomainName = TargetHost;
}
}

void InitializeSession ()
Expand Down

0 comments on commit 9dc31de

Please sign in to comment.