Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AuthenticationServices] Updates for Xcode13 Beta3 #12203

Merged
33 changes: 33 additions & 0 deletions src/AuthenticationServices/PublicPrivateKeyAuthentication.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
//
// PublicPrivateKeyAuthentication.cs
//
// Authors:
// TJ Lambert <[email protected]>
//
// Copyright 2021 Microsoft Corporation
//

#if !TVOS && !WATCH

using System;
using System.Runtime.InteropServices;
using CoreGraphics;
using Foundation;
using ObjCRuntime;

#nullable enable

namespace AuthenticationServices {

[NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)]
public static class PublicPrivateKeyAuthentication {
[DllImport (Constants.AuthenticationServicesLibrary)]
static extern /* NSString[] */ IntPtr ASAuthorizationAllSupportedPublicKeyCredentialDescriptorTransports ();

public static /* ASAuthorizationSecurityKeyPublicKeyCredentialDescriptorTransport[] */ NSString[] GetAllSupportedPublicKeyCredentialDescriptorTransports () {
return NSArray.ArrayFromHandle<NSString> (ASAuthorizationAllSupportedPublicKeyCredentialDescriptorTransports ());
}
}
}

#endif
Loading