Renamed property
This commit is contained in:
parent
9033065e39
commit
f5d607120a
@ -69,10 +69,6 @@ namespace DerpingDrivers
|
||||
{
|
||||
get
|
||||
{
|
||||
BcdHelper.DisableTestSigning();
|
||||
|
||||
var t = BcdHelper.IsTestSignEnabled;
|
||||
|
||||
#region TESTSIGNING mode
|
||||
|
||||
if (CodeIntegrityHelper.IsTestSignEnabled)
|
||||
|
@ -6,7 +6,10 @@ namespace DerpingDrivers.Util
|
||||
{
|
||||
public static class BcdHelper
|
||||
{
|
||||
public static bool IsTestSignEnabled
|
||||
/// <summary>
|
||||
/// Gets or sets the current value if BCDE_LIBRARY_TYPE_ALLOW_PRERELEASE_SIGNATURES from the default boot entry.
|
||||
/// </summary>
|
||||
public static bool AllowPrereleaseSignatures
|
||||
{
|
||||
get
|
||||
{
|
||||
@ -20,9 +23,10 @@ namespace DerpingDrivers.Util
|
||||
|
||||
return allowPrereleaseSignatures != null && int.Parse(allowPrereleaseSignatures[0].ToString()) > 0;
|
||||
}
|
||||
}
|
||||
|
||||
public static void EnableTestSigning()
|
||||
set
|
||||
{
|
||||
if (value)
|
||||
{
|
||||
// NOTE: haven't found an API for this (yet), so system() we go!
|
||||
var cmd = new Process
|
||||
@ -42,8 +46,7 @@ namespace DerpingDrivers.Util
|
||||
if (cmd.ExitCode != 0)
|
||||
throw new BcdAlterAllowPrereleaseSignaturesFailedException("Couldn't enable TESTSIGNING");
|
||||
}
|
||||
|
||||
public static void DisableTestSigning()
|
||||
else
|
||||
{
|
||||
// NOTE: haven't found an API for this (yet), so system() we go!
|
||||
var cmd = new Process
|
||||
@ -64,4 +67,6 @@ namespace DerpingDrivers.Util
|
||||
throw new BcdAlterAllowPrereleaseSignaturesFailedException("Couldn't disable TESTSIGNING");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user