Fix build issue (2015 doesn't like this)

This commit is contained in:
Sean Kaim
2017-04-14 17:11:12 -04:00
parent 09789e163c
commit edac8f764b

View File

@@ -148,11 +148,14 @@ namespace mRemoteNG.Config.Serializers
{
if (_confVersion >= 2.6)
{
Enum.TryParse(connectionsRootElement?.Attributes["EncryptionEngine"].Value, out BlockCipherEngines engine);
BlockCipherEngines engine;
Enum.TryParse(connectionsRootElement?.Attributes["EncryptionEngine"].Value, out engine);
Enum.TryParse(connectionsRootElement?.Attributes["BlockCipherMode"].Value, out BlockCipherModes mode);
BlockCipherModes mode;
Enum.TryParse(connectionsRootElement?.Attributes["BlockCipherMode"].Value, out mode);
int.TryParse(connectionsRootElement?.Attributes["KdfIterations"].Value, out int keyDerivationIterations);
int keyDerivationIterations;
int.TryParse(connectionsRootElement?.Attributes["KdfIterations"].Value, out keyDerivationIterations);
_decryptor = new XmlConnectionsDecryptor(engine, mode, rootNodeInfo)
{