Skip to content

Commit

Permalink
Stop signing test proj
Browse files Browse the repository at this point in the history
  • Loading branch information
lemccomb committed May 14, 2024
1 parent 9c26842 commit a17740e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 12 deletions.
6 changes: 3 additions & 3 deletions CoseSignTool.tests/CoseSignTool.tests.csproj
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<PlatformTarget>x64</PlatformTarget>
<Platforms>x64</Platforms>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
<IsPublishable>false</IsPublishable>
<EnablePreviewFeatures>true</EnablePreviewFeatures>
<EnforceCodeStyleInBuild>True</EnforceCodeStyleInBuild>
<!--<EnforceCodeStyleInBuild>True</EnforceCodeStyleInBuild>
<SignAssembly>True</SignAssembly>
<DelaySign>True</DelaySign>
<AssemblyOriginatorKeyFile>..\StrongNameKeys\35MSSharedLib1024.snk</AssemblyOriginatorKeyFile>
<AssemblyOriginatorKeyFile>..\StrongNameKeys\35MSSharedLib1024.snk</AssemblyOriginatorKeyFile>-->
</PropertyGroup>

<PropertyGroup>
Expand Down
6 changes: 0 additions & 6 deletions CoseSignTool/CoseSignTool.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,6 @@
<NuspecProperties>VersionNgt=$(VersionNgt)</NuspecProperties>
</PropertyGroup>

<ItemGroup>
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleToAttribute">
<_Parameter1>CoseSignTool.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9</_Parameter1>
</AssemblyAttribute>
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Configuration.CommandLine" Version="7.0.0" />
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion CoseSignTool/GetCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ protected internal override void ApplyOptions(CommandLineConfigurationProvider p
}

// This is consumed by ValidateCommand.Run, which uses it in place of the call to CoseParser.Validate.
protected internal override ValidationResult RunCoseHandlerCommand(Stream signature, FileInfo? payloadFile, List<X509Certificate2>? rootCerts, X509RevocationMode revocationMode, string? commonName, bool allowUntrusted)
public override ValidationResult RunCoseHandlerCommand(Stream signature, FileInfo? payloadFile, List<X509Certificate2>? rootCerts, X509RevocationMode revocationMode, string? commonName, bool allowUntrusted)
{
// Get the embedded payload content.
string? content = CoseHandler.GetPayload(signature, out ValidationResult result, rootCerts, revocationMode, commonName);
Expand Down
4 changes: 2 additions & 2 deletions CoseSignTool/ValidateCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public class ValidateCommand : CoseCommand
/// <summary>
/// For test use only.
/// </summary>
internal ValidateCommand() { }
public ValidateCommand() { }

/// <summary>
/// Creates a ValidateCommand instance and sets its properties with a CommandLineConfigurationProvider.
Expand Down Expand Up @@ -164,7 +164,7 @@ public override ExitCode Run()
}

// A pass-through method to let derived classes modify the command and otherwise re-use the surrounding code.
protected internal virtual ValidationResult RunCoseHandlerCommand(
public virtual ValidationResult RunCoseHandlerCommand(
Stream signature,
FileInfo? payload,
List<X509Certificate2>? rootCerts,
Expand Down

0 comments on commit a17740e

Please sign in to comment.