mirror of
https://github.com/wismna/ModernKeePassLib.git
synced 2025-10-03 15:40:20 -04:00
Downgrade to net standard 1.2
This commit is contained in:
@@ -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
|
||||
|
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@@ -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;
|
||||
|
7
ModernKeePassLib/Native/SimpleStat.Standard.cs
Normal file
7
ModernKeePassLib/Native/SimpleStat.Standard.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace ModernKeePassLib.Native
|
||||
{
|
||||
internal sealed class SimpleStat
|
||||
{
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user