Fix ip address parser, domain name check and reconnect (#333)

* bug fix in cert parser: return normalized ipaddress string instead of hex byte array string
* connect with domain cert check,
* fix ip address compares,
* add dialog to connect anyway if cert domain check fails
* fix reconnect case when cert domain check fails
This commit is contained in:
Martin Regen
2018-01-25 08:55:26 -07:00
committed by GitHub
parent 7bf9c79ba6
commit dbef06aa82
8 changed files with 292 additions and 174 deletions
@@ -193,7 +193,7 @@ namespace Opc.Ua.Sample.Controls
}
catch (Exception exception)
{
GuiUtils.HandleException(this.Text, MethodBase.GetCurrentMethod(), exception);
GuiUtils.HandleException(this.Text, MethodBase.GetCurrentMethod(), exception);
e.UpdateControl = false;
}
}
@@ -206,7 +206,7 @@ namespace Opc.Ua.Sample.Controls
}
catch (Exception)
{
// GuiUtils.HandleException(this.Text, MethodBase.GetCurrentMethod(), exception);
// GuiUtils.HandleException(this.Text, MethodBase.GetCurrentMethod(), exception);
}
}
@@ -349,7 +349,7 @@ namespace Opc.Ua.Sample.Controls
}
catch (Exception exception)
{
GuiUtils.HandleException(this.Text, MethodBase.GetCurrentMethod(), exception);
GuiUtils.HandleException(this.Text, MethodBase.GetCurrentMethod(), exception);
}
}
@@ -387,7 +387,7 @@ namespace Opc.Ua.Sample.Controls
}
catch (Exception exception)
{
GuiUtils.HandleException(this.Text, MethodBase.GetCurrentMethod(), exception);
GuiUtils.HandleException(this.Text, MethodBase.GetCurrentMethod(), exception);
}
}
@@ -425,7 +425,7 @@ namespace Opc.Ua.Sample.Controls
}
catch (Exception exception)
{
GuiUtils.HandleException(this.Text, MethodBase.GetCurrentMethod(), exception);
GuiUtils.HandleException(this.Text, MethodBase.GetCurrentMethod(), exception);
}
}
@@ -440,7 +440,7 @@ namespace Opc.Ua.Sample.Controls
}
catch (Exception exception)
{
GuiUtils.HandleException(this.Text, MethodBase.GetCurrentMethod(), exception);
GuiUtils.HandleException(this.Text, MethodBase.GetCurrentMethod(), exception);
}
}
@@ -457,7 +457,7 @@ namespace Opc.Ua.Sample.Controls
}
catch (Exception exception)
{
Utils.Trace(exception, "Could not register with the LDS");
Utils.Trace(exception, "Could not register with the LDS");
}
}