Downgrade to net standard 1.2

This commit is contained in:
Geoffroy BONNEVILLE
2020-03-23 18:35:00 +01:00
parent b8240d482f
commit 5067f81189
60 changed files with 1250 additions and 285 deletions

View File

@@ -1,6 +1,6 @@
/*
KeePass Password Safe - The Open-Source Password Manager
Copyright (C) 2003-2020 Dominik Reichl <dominik.reichl@t-online.de>
Copyright (C) 2003-2018 Dominik Reichl <dominik.reichl@t-online.de>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by

View File

@@ -13,31 +13,20 @@ namespace ModernKeePassLib.Native
return true;
}
public static bool TransformKey256(byte[] pbNative, byte[] pbSeed, ulong uRounds)
{
return false;
}
public static System.PlatformID GetPlatformID()
{
return Environment.OSVersion.Platform;
}
internal static string DecodeArgsToPath(string strApp)
{
if (!string.IsNullOrEmpty(strApp)) return strApp;
return string.Empty;
}
internal static string EncodeDataToArgs(string v)
{
throw new NotImplementedException();
}
public static string DecodeArgsToData(string strApp)
public static string EncodeDataToArgs(string data)
{
throw new NotImplementedException();
}
public static string DecodeArgsToData(string strArgs)
{
throw new NotImplementedException();
}
internal static int GetPlatformID()
{
return Environment.CurrentManagedThreadId;
}
}
internal static class NativeMethods
@@ -82,6 +71,12 @@ namespace ModernKeePassLib.Native
throw new NotImplementedException();
}
}
public enum DataProtectionScope
{
CurrentUser,
LocalMachine
}
internal enum MemoryProtectionScope
{
@@ -102,5 +97,4 @@ namespace ModernKeePassLib.Native
throw new NotImplementedException();
}
}
}
}

View File

@@ -28,10 +28,8 @@ using System.Text.RegularExpressions;
#if !KeePassUAP
using System.IO;
using System.Threading;
#if !ModernKeePassLib
using System.Windows.Forms;
#endif
#endif
using ModernKeePassLib.Utility;
@@ -288,7 +286,6 @@ namespace ModernKeePassLib.Native
return null;
};
#if !ModernKeePassLib
if((f & AppRunFlags.DoEvents) != AppRunFlags.None)
{
List<Form> lDisabledForms = new List<Form>();
@@ -318,7 +315,7 @@ namespace ModernKeePassLib.Native
return strRet;
}
#endif
return fnRun();
}
@@ -367,7 +364,7 @@ namespace ModernKeePassLib.Native
public static bool TransformKey256(byte[] pBuf256, byte[] pKey256,
ulong uRounds)
{
#if KeePassUAP || ModernKeePassLib
#if KeePassUAP
return false;
#else
if(!m_bAllowNative) return false;
@@ -398,7 +395,7 @@ namespace ModernKeePassLib.Native
{
puRounds = 0;
#if KeePassUAP || ModernKeePassLib
#if KeePassUAP
return false;
#else
if(!m_bAllowNative) return false;

View File

@@ -0,0 +1,7 @@
namespace ModernKeePassLib.Native
{
internal sealed class SimpleStat
{
}
}