Skip to content

Commit ebe5fb5

Browse files
Resolved #20: Incorrect DeletePlatformCredential signature
1 parent 0474752 commit ebe5fb5

File tree

4 files changed

+22
-12
lines changed

4 files changed

+22
-12
lines changed

Documentation/CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
44

5+
## [1.0.5] - 2024-11-14
6+
7+
### Fixed
8+
9+
- Resolved a bug which prevented the `DeletePlatformCredential()` method from working. (Thanks @aseigler for reporting it.)
10+
- Upgraded System.Text.Json to mitigate [CVE-2024-43485](https://msrc.microsoft.com/update-guide/vulnerability/CVE-2024-43485).
11+
512
## [1.0.4] - 2024-10-06
613

714
### Added
@@ -34,7 +41,8 @@ All notable changes to this project will be documented in this file. The format
3441

3542
- Initial version
3643

37-
[Unreleased]: https://github.com/MichaelGrafnetter/webauthn-interop/compare/v1.0.4...HEAD
44+
[Unreleased]: https://github.com/MichaelGrafnetter/webauthn-interop/compare/v1.0.5...HEAD
45+
[1.0.4]: https://github.com/MichaelGrafnetter/webauthn-interop/compare/v1.0.4...v1.0.5
3846
[1.0.4]: https://github.com/MichaelGrafnetter/webauthn-interop/compare/v1.0.3...v1.0.4
3947
[1.0.3]: https://github.com/MichaelGrafnetter/webauthn-interop/compare/v1.0.2...v1.0.3
4048
[1.0.2]: https://github.com/MichaelGrafnetter/webauthn-interop/compare/v1.0...v1.0.2

Src/DSInternals.Win32.WebAuthn.Adapter/DSInternals.Win32.WebAuthn.Adapter.csproj

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@
66
<PackageId>DSInternals.Win32.WebAuthn.Adapter</PackageId>
77
<Product>WebAuthn Interop Assembly Adapter</Product>
88
<Title>WebAuthn Interop Assembly Adapter</Title>
9-
<Version>1.0.4</Version>
10-
<AssemblyVersion>1.0.4</AssemblyVersion>
11-
<ProductVersion>1.0.4</ProductVersion>
12-
<FileVersion>1.0.4</FileVersion>
9+
<Version>1.0.5</Version>
10+
<AssemblyVersion>1.0.5</AssemblyVersion>
11+
<ProductVersion>1.0.5</ProductVersion>
12+
<FileVersion>1.0.5</FileVersion>
1313
<Description>Bridge between Fido2.Models and DSInternals.Win32.WebAuthn packages</Description>
14-
<PackageReleaseNotes>- Added EdDSA support.
14+
<PackageReleaseNotes>- Resolved a bug which prevented the DeletePlatformCredential() method from working.
15+
- Upgraded System.Text.Json to mitigate CVE-2024-43485.
1516
- Windows 10 1903 or newer is required.</PackageReleaseNotes>
1617
</PropertyGroup>
1718

Src/DSInternals.Win32.WebAuthn/DSInternals.Win32.WebAuthn.csproj

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@
88
<PackageId>DSInternals.Win32.WebAuthn</PackageId>
99
<Product>WebAuthn Interop Assembly</Product>
1010
<Title>WebAuthn Interop Assembly</Title>
11-
<Version>1.0.4</Version>
12-
<AssemblyVersion>1.0.4</AssemblyVersion>
13-
<ProductVersion>1.0.4</ProductVersion>
14-
<FileVersion>1.0.4</FileVersion>
11+
<Version>1.0.5</Version>
12+
<AssemblyVersion>1.0.5</AssemblyVersion>
13+
<ProductVersion>1.0.5</ProductVersion>
14+
<FileVersion>1.0.5</FileVersion>
1515
<Description>FIDO2 / W3C Web Authentication .NET Library for Windows Desktop and CLI Applications</Description>
16-
<PackageReleaseNotes>- Added EdDSA support.
16+
<PackageReleaseNotes>- Resolved a bug which prevented the DeletePlatformCredential() method from working.
17+
- Upgraded System.Text.Json to mitigate CVE-2024-43485.
1718
- Windows 10 1903 or newer is required.
1819
- A standalone package providing an adapter for data model defined in Fido2.Models is also available.</PackageReleaseNotes>
1920
</PropertyGroup>

Src/DSInternals.Win32.WebAuthn/Interop/NativeMethods.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ out AssertionSafeHandle assertion
152152
/// <returns>If the function succeeds, it returns S_OK. If the function fails, it returns an HRESULT value that indicates the error.</returns>
153153
[DllImport(WebAuthn, EntryPoint = "WebAuthNDeletePlatformCredential")]
154154
[DefaultDllImportSearchPaths(DllImportSearchPath.System32)]
155-
public static extern HResult DeletePlatformCredential(int credentialIdLength, in byte[] credentialId);
155+
public static extern HResult DeletePlatformCredential(int credentialIdLength, byte[] credentialId);
156156

157157

158158
/// <summary>

0 commit comments

Comments
 (0)