Skip to content

Commit

Permalink
Update nuget
Browse files Browse the repository at this point in the history
  • Loading branch information
Oren Novotny committed Nov 15, 2018
1 parent ae0845e commit 919247a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<PackageReference Include="Microsoft.Extensions.Logging" Version="2.1.1" />
<PackageReference Include="Microsoft.Azure.KeyVault" Version="3.0.0" />
<PackageReference Include="Microsoft.IdentityModel.Clients.ActiveDirectory" Version="3.19.8" />
<PackageReference Include="NuGet.Packaging" Version="5.0.0-xprivate02.36848" />
<PackageReference Include="NuGet.Packaging" Version="5.0.0-xprivate.48840" />
<PackageReference Include="Portable.BouncyCastle" Version="1.8.3.37" />
<PackageReference Include="RSAKeyVaultProvider" Version="1.1.22" />
</ItemGroup>
Expand Down
11 changes: 8 additions & 3 deletions NuGetKeyVaultSignTool.Core/VerifyCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@ public async Task<bool> VerifyAsync(string file, StringBuilder buffer)
throw new ArgumentNullException(nameof(buffer));
}

var trustProviders = SignatureVerificationProviderFactory.GetSignatureVerificationProviders();

var trustProviders = new ISignatureVerificationProvider[]
{
new IntegrityVerificationProvider(),
new SignatureTrustAndValidityVerificationProvider()
};
var verifier = new PackageSignatureVerifier(trustProviders);
try
{
Expand All @@ -47,9 +52,9 @@ public async Task<bool> VerifyAsync(string file, StringBuilder buffer)
var verificationResult = await verifier.VerifySignaturesAsync(package, SignedPackageVerifierSettings.GetVerifyCommandDefaultPolicy(), CancellationToken.None);


if (verificationResult.Valid)
if (verificationResult.IsValid)
{
return verificationResult.Valid;
return verificationResult.IsValid;
}
else
{
Expand Down

0 comments on commit 919247a

Please sign in to comment.