Skip to content

Commit

Permalink
Update packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Rans4ckeR committed Jun 23, 2023
1 parent fdfbc53 commit 7cc7d89
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<Platforms>AnyCPU</Platforms>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.435">
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.507">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
2 changes: 1 addition & 1 deletion CipherPunk.UI/CipherPunk.UI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.435">
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.507">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
1 change: 1 addition & 0 deletions CipherPunk.sln
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{C55E7711-A2C2-4E0B-A7E0-8D307A423F9F}"
ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig
.github\workflows\dotnet.yml = .github\workflows\dotnet.yml
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CipherPunk.CipherSuiteInfoApi", "CipherPunk.CipherSuiteInfoApi\CipherPunk.CipherSuiteInfoApi.csproj", "{BC7E189D-0AB8-4EE6-9FF8-EB29E5427B86}"
Expand Down
2 changes: 1 addition & 1 deletion CipherPunk/CipherPunk.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.435">
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.507">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
4 changes: 2 additions & 2 deletions CipherPunk/Services/CipherSuiteService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public string[] GetLocalCngConfigurationContextIdentifiers()

contexts = new string[cryptContexts.cContexts];

for (int i = 0; i < cryptContexts.cContexts; i++)
for (uint i = uint.MinValue; i < cryptContexts.cContexts; i++)
{
PWSTR pStr = cryptContexts.rgpszContexts[i];

Expand Down Expand Up @@ -91,7 +91,7 @@ public List<WindowsApiCipherSuiteConfiguration> GetOperatingSystemActiveCipherSu
var cipherSuiteConfigurations = new List<WindowsApiCipherSuiteConfiguration>();
CRYPT_CONTEXT_FUNCTIONS cryptContextFunctions = MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef<CRYPT_CONTEXT_FUNCTIONS>(ppBuffer), 1)[0];

for (int i = 0; i < cryptContextFunctions.cFunctions; i++)
for (uint i = uint.MinValue; i < cryptContextFunctions.cFunctions; i++)
{
string? function = cryptContextFunctions.rgpszFunctions[i].ToString();
WindowsApiCipherSuiteConfiguration? cipherSuite = defaultCipherSuiteConfigurations.SingleOrDefault(q => function.Equals(q.CipherSuiteName, StringComparison.OrdinalIgnoreCase));
Expand Down
2 changes: 1 addition & 1 deletion CipherPunk/Services/EllipticCurveService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public List<WindowsApiEllipticCurveConfiguration> GetOperatingSystemAvailableEll
if (sslEnumProtocolProvidersStatus.Failed)
throw Marshal.GetExceptionForHR(sslEnumProtocolProvidersStatus)!;

for (int i = 0; i < pdwProviderCount; i++)
for (uint i = uint.MinValue; i < pdwProviderCount; i++)
{
NCryptProviderName nCryptProviderName = MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef<NCryptProviderName>(ppProviderList + (i * sizeof(NCryptProviderName))), 1)[0];
string? pszName = nCryptProviderName.pszName.ToString();
Expand Down
7 changes: 6 additions & 1 deletion NuGet.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
<configuration>
<packageSources>
<clear/>
<add key="NuGet official package source" value="https://api.nuget.org/v3/index.json" />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
</packageSources>
<packageSourceMapping>
<packageSource key="nuget.org">
<package pattern="*" />
</packageSource>
</packageSourceMapping>
</configuration>

0 comments on commit 7cc7d89

Please sign in to comment.