From 2e66c4852ae70570ddebae70da0b26bab27acf56 Mon Sep 17 00:00:00 2001 From: Kevin Jones Date: Sun, 13 Oct 2024 13:37:41 -0400 Subject: [PATCH] No more UTF-8 BOM --- .editorconfig | 4 ++-- AzureSignTool.sln | 2 +- src/AzureSign.Core/AlgorithmTranslator.cs | 2 +- src/AzureSign.Core/AuthenticodeKeyVaultSigner.cs | 4 ++-- src/AzureSign.Core/AzureSign.Core.csproj | 2 +- src/AzureSign.Core/Interop/crypt32.cs | 4 ++-- src/AzureSign.Core/Interop/mssign32.cs | 2 +- src/AzureSign.Core/MemoryCertificateStore.cs | 2 +- src/AzureSign.Core/Properties.cs | 4 ++-- src/AzureSign.Core/TimeStampConfiguration.cs | 2 +- src/AzureSignTool/AccessTokenCredential.cs | 2 +- src/AzureSignTool/AzureKeyVaultMaterializedConfiguration.cs | 2 +- src/AzureSignTool/AzureKeyVaultSignConfigurationSet.cs | 2 +- src/AzureSignTool/AzureSignTool.csproj | 2 +- src/AzureSignTool/ErrorOr.cs | 2 +- src/AzureSignTool/HRESULT.cs | 2 +- src/AzureSignTool/KeyVaultConfigurationDiscoverer.cs | 2 +- src/AzureSignTool/Program.cs | 2 +- test/AzureSign.Core.Tests/AlgorithmTranslatorTests.cs | 4 ++-- test/AzureSign.Core.Tests/AuthenticodeKeyVaultSignerTests.cs | 2 +- test/AzureSign.Core.Tests/AzureSign.Core.Tests.csproj | 2 +- test/AzureSign.Core.Tests/SipExtensionFactoryTests.cs | 2 +- test/AzureSign.Core.Tests/testcerts/kevin_jones.cer | 2 +- 23 files changed, 28 insertions(+), 28 deletions(-) diff --git a/.editorconfig b/.editorconfig index 30de332..33d602c 100644 --- a/.editorconfig +++ b/.editorconfig @@ -9,7 +9,7 @@ indent_style = space [*.{cs,csx,vb,vbx}] indent_size = 4 insert_final_newline = true -charset = utf-8-bom +charset = utf-8 ############################### # .NET Coding Conventions # ############################### @@ -49,7 +49,7 @@ dotnet_style_prefer_conditional_expression_over_return = true:silent ############################### # Style Definitions dotnet_naming_style.pascal_case_style.capitalization = pascal_case -# Use PascalCase for constant fields +# Use PascalCase for constant fields dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = suggestion dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style diff --git a/AzureSignTool.sln b/AzureSignTool.sln index 6ee365c..e09aa23 100644 --- a/AzureSignTool.sln +++ b/AzureSignTool.sln @@ -1,4 +1,4 @@ - + Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 15 VisualStudioVersion = 15.0.26730.8 diff --git a/src/AzureSign.Core/AlgorithmTranslator.cs b/src/AzureSign.Core/AlgorithmTranslator.cs index f008e5c..3e240c6 100644 --- a/src/AzureSign.Core/AlgorithmTranslator.cs +++ b/src/AzureSign.Core/AlgorithmTranslator.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Security.Cryptography; namespace AzureSign.Core diff --git a/src/AzureSign.Core/AuthenticodeKeyVaultSigner.cs b/src/AzureSign.Core/AuthenticodeKeyVaultSigner.cs index 4ee24c9..7b2626e 100644 --- a/src/AzureSign.Core/AuthenticodeKeyVaultSigner.cs +++ b/src/AzureSign.Core/AuthenticodeKeyVaultSigner.cs @@ -1,4 +1,4 @@ -using AzureSign.Core.Interop; +using AzureSign.Core.Interop; using Microsoft.Extensions.Logging; using System; using System.Diagnostics; @@ -105,7 +105,7 @@ static char[] NullTerminate(ReadOnlySpan str) // E_INVALIDARG is expected from SignerSignEx3, no need to override this error, log warning for troubleshooting logger?.LogWarning("If you set the dwTimestampFlags parameter to SIGNER_TIMESTAMP_AUTHENTICODE, you cannot set the dwFlags parameter to SIG_APPEND."); } - + flags |= SignerSignEx3Flags.SIG_APPEND; } diff --git a/src/AzureSign.Core/AzureSign.Core.csproj b/src/AzureSign.Core/AzureSign.Core.csproj index 42c752a..367907d 100644 --- a/src/AzureSign.Core/AzureSign.Core.csproj +++ b/src/AzureSign.Core/AzureSign.Core.csproj @@ -1,4 +1,4 @@ - + netstandard2.0;net8.0 diff --git a/src/AzureSign.Core/Interop/crypt32.cs b/src/AzureSign.Core/Interop/crypt32.cs index d28a00b..77c57c6 100644 --- a/src/AzureSign.Core/Interop/crypt32.cs +++ b/src/AzureSign.Core/Interop/crypt32.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Runtime.InteropServices; namespace AzureSign.Core.Interop @@ -10,7 +10,7 @@ internal static class crypt32 public static extern bool CertCloseStore ( [In, MarshalAs(UnmanagedType.SysInt)] IntPtr hCertStore, - [In, MarshalAs(UnmanagedType.U4)] CertCloreStoreFlags dwFlags + [In, MarshalAs(UnmanagedType.U4)] CertCloreStoreFlags dwFlags ); [return: MarshalAs(UnmanagedType.SysInt)] diff --git a/src/AzureSign.Core/Interop/mssign32.cs b/src/AzureSign.Core/Interop/mssign32.cs index 196121e..1ee30d7 100644 --- a/src/AzureSign.Core/Interop/mssign32.cs +++ b/src/AzureSign.Core/Interop/mssign32.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Runtime.InteropServices; namespace AzureSign.Core.Interop diff --git a/src/AzureSign.Core/MemoryCertificateStore.cs b/src/AzureSign.Core/MemoryCertificateStore.cs index d7330dc..2111abb 100644 --- a/src/AzureSign.Core/MemoryCertificateStore.cs +++ b/src/AzureSign.Core/MemoryCertificateStore.cs @@ -1,4 +1,4 @@ -using AzureSign.Core.Interop; +using AzureSign.Core.Interop; using System; using System.Diagnostics; using System.Security.Cryptography.X509Certificates; diff --git a/src/AzureSign.Core/Properties.cs b/src/AzureSign.Core/Properties.cs index 3a4f570..993f8c4 100644 --- a/src/AzureSign.Core/Properties.cs +++ b/src/AzureSign.Core/Properties.cs @@ -1,2 +1,2 @@ -using System.Runtime.CompilerServices; -[assembly: InternalsVisibleTo("AzureSign.Core.Tests")] \ No newline at end of file +using System.Runtime.CompilerServices; +[assembly: InternalsVisibleTo("AzureSign.Core.Tests")] diff --git a/src/AzureSign.Core/TimeStampConfiguration.cs b/src/AzureSign.Core/TimeStampConfiguration.cs index 572f199..086a8c7 100644 --- a/src/AzureSign.Core/TimeStampConfiguration.cs +++ b/src/AzureSign.Core/TimeStampConfiguration.cs @@ -1,4 +1,4 @@ -using System.Security.Cryptography; +using System.Security.Cryptography; namespace AzureSign.Core { diff --git a/src/AzureSignTool/AccessTokenCredential.cs b/src/AzureSignTool/AccessTokenCredential.cs index a5250d0..b0e5282 100644 --- a/src/AzureSignTool/AccessTokenCredential.cs +++ b/src/AzureSignTool/AccessTokenCredential.cs @@ -1,4 +1,4 @@ -using Azure.Core; +using Azure.Core; using System; using System.Threading; diff --git a/src/AzureSignTool/AzureKeyVaultMaterializedConfiguration.cs b/src/AzureSignTool/AzureKeyVaultMaterializedConfiguration.cs index 0cfc3de..ed411dd 100644 --- a/src/AzureSignTool/AzureKeyVaultMaterializedConfiguration.cs +++ b/src/AzureSignTool/AzureKeyVaultMaterializedConfiguration.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Security.Cryptography.X509Certificates; using Azure.Core; diff --git a/src/AzureSignTool/AzureKeyVaultSignConfigurationSet.cs b/src/AzureSignTool/AzureKeyVaultSignConfigurationSet.cs index 18e2709..b38d869 100644 --- a/src/AzureSignTool/AzureKeyVaultSignConfigurationSet.cs +++ b/src/AzureSignTool/AzureKeyVaultSignConfigurationSet.cs @@ -1,4 +1,4 @@ -using System; +using System; namespace AzureSignTool { diff --git a/src/AzureSignTool/AzureSignTool.csproj b/src/AzureSignTool/AzureSignTool.csproj index d4c3bcd..8ebec7f 100644 --- a/src/AzureSignTool/AzureSignTool.csproj +++ b/src/AzureSignTool/AzureSignTool.csproj @@ -1,4 +1,4 @@ - + Exe diff --git a/src/AzureSignTool/ErrorOr.cs b/src/AzureSignTool/ErrorOr.cs index df05c5a..82dbe2e 100644 --- a/src/AzureSignTool/ErrorOr.cs +++ b/src/AzureSignTool/ErrorOr.cs @@ -1,4 +1,4 @@ -using System; +using System; namespace AzureSignTool { diff --git a/src/AzureSignTool/HRESULT.cs b/src/AzureSignTool/HRESULT.cs index 3f2adb3..3e6d289 100644 --- a/src/AzureSignTool/HRESULT.cs +++ b/src/AzureSignTool/HRESULT.cs @@ -1,4 +1,4 @@ -namespace AzureSignTool +namespace AzureSignTool { internal static class HRESULT { diff --git a/src/AzureSignTool/KeyVaultConfigurationDiscoverer.cs b/src/AzureSignTool/KeyVaultConfigurationDiscoverer.cs index ad95e62..4f0939b 100644 --- a/src/AzureSignTool/KeyVaultConfigurationDiscoverer.cs +++ b/src/AzureSignTool/KeyVaultConfigurationDiscoverer.cs @@ -1,4 +1,4 @@ -using Azure.Core; +using Azure.Core; using Azure.Identity; using Azure.Security.KeyVault.Certificates; diff --git a/src/AzureSignTool/Program.cs b/src/AzureSignTool/Program.cs index ec16b06..7d5f587 100644 --- a/src/AzureSignTool/Program.cs +++ b/src/AzureSignTool/Program.cs @@ -1,4 +1,4 @@ -#nullable enable +#nullable enable using System; using System.Collections.Generic; using System.IO; diff --git a/test/AzureSign.Core.Tests/AlgorithmTranslatorTests.cs b/test/AzureSign.Core.Tests/AlgorithmTranslatorTests.cs index 67bd81e..2aaaf18 100644 --- a/test/AzureSign.Core.Tests/AlgorithmTranslatorTests.cs +++ b/test/AzureSign.Core.Tests/AlgorithmTranslatorTests.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Security.Cryptography; using System.Text; @@ -63,6 +63,6 @@ public static IEnumerable NameToAlgIdData yield return new object[] { HashAlgorithmName.SHA512, 0x0000800e }; } } - + } } diff --git a/test/AzureSign.Core.Tests/AuthenticodeKeyVaultSignerTests.cs b/test/AzureSign.Core.Tests/AuthenticodeKeyVaultSignerTests.cs index b25ae07..07422ff 100644 --- a/test/AzureSign.Core.Tests/AuthenticodeKeyVaultSignerTests.cs +++ b/test/AzureSign.Core.Tests/AuthenticodeKeyVaultSignerTests.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.IO; using System.Security.Cryptography; diff --git a/test/AzureSign.Core.Tests/AzureSign.Core.Tests.csproj b/test/AzureSign.Core.Tests/AzureSign.Core.Tests.csproj index 8fe613e..5a213e1 100644 --- a/test/AzureSign.Core.Tests/AzureSign.Core.Tests.csproj +++ b/test/AzureSign.Core.Tests/AzureSign.Core.Tests.csproj @@ -1,4 +1,4 @@ - + net8.0 diff --git a/test/AzureSign.Core.Tests/SipExtensionFactoryTests.cs b/test/AzureSign.Core.Tests/SipExtensionFactoryTests.cs index bc68944..aff26f4 100644 --- a/test/AzureSign.Core.Tests/SipExtensionFactoryTests.cs +++ b/test/AzureSign.Core.Tests/SipExtensionFactoryTests.cs @@ -1,4 +1,4 @@ -using Xunit; +using Xunit; namespace AzureSign.Core.Tests { diff --git a/test/AzureSign.Core.Tests/testcerts/kevin_jones.cer b/test/AzureSign.Core.Tests/testcerts/kevin_jones.cer index 4540140..138ee34 100644 --- a/test/AzureSign.Core.Tests/testcerts/kevin_jones.cer +++ b/test/AzureSign.Core.Tests/testcerts/kevin_jones.cer @@ -1,4 +1,4 @@ ------BEGIN CERTIFICATE----- +-----BEGIN CERTIFICATE----- MIIFHjCCBAagAwIBAgIQB6D3F+HHUDhB9AL42AtX1zANBgkqhkiG9w0BAQsFADBy MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3 d3cuZGlnaWNlcnQuY29tMTEwLwYDVQQDEyhEaWdpQ2VydCBTSEEyIEFzc3VyZWQg