Skip to content

Commit

Permalink
Fix return type marshalling on IsKeyStorePrivateKeyEntry (dotnet#103825)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonrozsival authored and rzikm committed Jun 24, 2024
1 parent 0b14e01 commit 7f21c54
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ internal static byte[] X509Encode(SafeX509Handle x)
return encoded;
}
[LibraryImport(Libraries.AndroidCryptoNative, EntryPoint = "AndroidCryptoNative_X509IsKeyStorePrivateKeyEntry")]
[return: MarshalAs(UnmanagedType.U1)]
[return: MarshalAs(UnmanagedType.Bool)]
internal static partial bool IsKeyStorePrivateKeyEntry(IntPtr handle);
[LibraryImport(Libraries.AndroidCryptoNative, EntryPoint = "AndroidCryptoNative_X509GetCertificateForPrivateKeyEntry")]
private static partial IntPtr GetPrivateKeyEntryCertificate(IntPtr privatKeyEntryHandle);
Expand Down

0 comments on commit 7f21c54

Please sign in to comment.