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 Jun 21, 2024
1 parent ed6bbe6 commit ec996f9
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 ec996f9

Please sign in to comment.