stupid mono5 doesn't know about Subject Alternative Name IPAddress
parent
117e6ec266
commit
a7db505caf
|
@ -180,6 +180,21 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||||
m_certNames.Add(parts[1]);
|
m_certNames.Add(parts[1]);
|
||||||
else if(entryName == "IPAddress")
|
else if(entryName == "IPAddress")
|
||||||
m_certIPs.Add(parts[1]);
|
m_certIPs.Add(parts[1]);
|
||||||
|
else if(entryName == "Unknown(135)") // stupid mono
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
if(parts[1].Length == 8)
|
||||||
|
{
|
||||||
|
long tmp = long.Parse(parts[1], NumberStyles.AllowHexSpecifier);
|
||||||
|
tmp = IPAddress.HostToNetworkOrder(tmp);
|
||||||
|
tmp = (long)((ulong) tmp >> 32);
|
||||||
|
IPAddress ia = new IPAddress(tmp);
|
||||||
|
m_certIPs.Add(ia.ToString());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch {}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
m_certCN = m_cert.GetNameInfo(X509NameType.SimpleName, false);
|
m_certCN = m_cert.GetNameInfo(X509NameType.SimpleName, false);
|
||||||
|
@ -2160,6 +2175,7 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
if(PollServiceRequestManager != null)
|
||||||
PollServiceRequestManager.Stop();
|
PollServiceRequestManager.Stop();
|
||||||
|
|
||||||
m_httpListener2.ExceptionThrown -= httpServerException;
|
m_httpListener2.ExceptionThrown -= httpServerException;
|
||||||
|
|
Loading…
Reference in New Issue