From 7cc7d89c7f81869cc9c37f515c313ba8c575b13d Mon Sep 17 00:00:00 2001 From: Rans4ckeR Date: Fri, 23 Jun 2023 21:40:10 +0200 Subject: [PATCH] Update packages --- .../CipherPunk.CipherSuiteInfoApi.csproj | 2 +- CipherPunk.UI/CipherPunk.UI.csproj | 2 +- CipherPunk.sln | 1 + CipherPunk/CipherPunk.csproj | 2 +- CipherPunk/Services/CipherSuiteService.cs | 4 ++-- CipherPunk/Services/EllipticCurveService.cs | 2 +- NuGet.config | 7 ++++++- 7 files changed, 13 insertions(+), 7 deletions(-) diff --git a/CipherPunk.CipherSuiteInfoApi/CipherPunk.CipherSuiteInfoApi.csproj b/CipherPunk.CipherSuiteInfoApi/CipherPunk.CipherSuiteInfoApi.csproj index ab98c23..6569fe9 100644 --- a/CipherPunk.CipherSuiteInfoApi/CipherPunk.CipherSuiteInfoApi.csproj +++ b/CipherPunk.CipherSuiteInfoApi/CipherPunk.CipherSuiteInfoApi.csproj @@ -24,7 +24,7 @@ AnyCPU - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/CipherPunk.UI/CipherPunk.UI.csproj b/CipherPunk.UI/CipherPunk.UI.csproj index f396d38..8d6afc0 100644 --- a/CipherPunk.UI/CipherPunk.UI.csproj +++ b/CipherPunk.UI/CipherPunk.UI.csproj @@ -46,7 +46,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/CipherPunk.sln b/CipherPunk.sln index 10d780f..0f37758 100644 --- a/CipherPunk.sln +++ b/CipherPunk.sln @@ -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}" diff --git a/CipherPunk/CipherPunk.csproj b/CipherPunk/CipherPunk.csproj index ec3452b..304f18c 100644 --- a/CipherPunk/CipherPunk.csproj +++ b/CipherPunk/CipherPunk.csproj @@ -60,7 +60,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/CipherPunk/Services/CipherSuiteService.cs b/CipherPunk/Services/CipherSuiteService.cs index 34d9117..3f7ac07 100644 --- a/CipherPunk/Services/CipherSuiteService.cs +++ b/CipherPunk/Services/CipherSuiteService.cs @@ -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]; @@ -91,7 +91,7 @@ public List GetOperatingSystemActiveCipherSu var cipherSuiteConfigurations = new List(); CRYPT_CONTEXT_FUNCTIONS cryptContextFunctions = MemoryMarshal.CreateReadOnlySpan(ref Unsafe.AsRef(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)); diff --git a/CipherPunk/Services/EllipticCurveService.cs b/CipherPunk/Services/EllipticCurveService.cs index e4ff21b..05bc3a7 100644 --- a/CipherPunk/Services/EllipticCurveService.cs +++ b/CipherPunk/Services/EllipticCurveService.cs @@ -44,7 +44,7 @@ public List 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(ppProviderList + (i * sizeof(NCryptProviderName))), 1)[0]; string? pszName = nCryptProviderName.pszName.ToString(); diff --git a/NuGet.config b/NuGet.config index 320912b..d5a645d 100644 --- a/NuGet.config +++ b/NuGet.config @@ -2,6 +2,11 @@ - + + + + + + \ No newline at end of file