[Security] Add Xcode 13 beta 4 support. (#12365)

This commit is contained in:
Manuel de la Pena 2021-08-09 21:30:14 -04:00 коммит произвёл GitHub
Родитель 9307052231
Коммит ae77aed7e8
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
9 изменённых файлов: 509 добавлений и 245 удалений

Просмотреть файл

@ -25,14 +25,23 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// //
#if MONOMAC #if MONOMAC || __MACCATALYST__
using ObjCRuntime; using ObjCRuntime;
using Foundation; using Foundation;
using System; using System;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
#if NET
using System.Runtime.Versioning;
#endif
namespace Security { namespace Security {
#if NET
[SupportedOSPlatform ("maccatalyst15.0")]
#else
[MacCatalyst (15,0)]
#endif
// Untyped enum in ObjC // Untyped enum in ObjC
public enum AuthorizationStatus { public enum AuthorizationStatus {
Success = 0, Success = 0,
@ -52,6 +61,11 @@ namespace Security {
BadAddress = -60033, BadAddress = -60033,
} }
#if NET
[SupportedOSPlatform ("maccatalyst15.0")]
#else
[MacCatalyst (15,0)]
#endif
// typedef UInt32 AuthorizationFlags; // typedef UInt32 AuthorizationFlags;
[Flags] [Flags]
public enum AuthorizationFlags : int { public enum AuthorizationFlags : int {
@ -68,18 +82,33 @@ namespace Security {
// For ease of use, we let the user pass the AuthorizationParameters, and we // For ease of use, we let the user pass the AuthorizationParameters, and we
// create the structure for them with the proper data // create the structure for them with the proper data
// //
#if NET
[SupportedOSPlatform ("maccatalyst15.0")]
#else
[MacCatalyst (15,0)]
#endif
public class AuthorizationParameters { public class AuthorizationParameters {
public string PathToSystemPrivilegeTool; public string PathToSystemPrivilegeTool;
public string Prompt; public string Prompt;
public string IconPath; public string IconPath;
} }
#if NET
[SupportedOSPlatform ("maccatalyst15.0")]
#else
[MacCatalyst (15,0)]
#endif
public class AuthorizationEnvironment { public class AuthorizationEnvironment {
public string Username; public string Username;
public string Password; public string Password;
public bool AddToSharedCredentialPool; public bool AddToSharedCredentialPool;
} }
#if NET
[SupportedOSPlatform ("maccatalyst15.0")]
#else
[MacCatalyst (15,0)]
#endif
[StructLayout (LayoutKind.Sequential)] [StructLayout (LayoutKind.Sequential)]
struct AuthorizationItem { struct AuthorizationItem {
public IntPtr /* AuthorizationString = const char * */ name; public IntPtr /* AuthorizationString = const char * */ name;
@ -88,11 +117,21 @@ namespace Security {
public int /* UInt32 */ flags; // zero public int /* UInt32 */ flags; // zero
} }
#if NET
[SupportedOSPlatform ("maccatalyst15.0")]
#else
[MacCatalyst (15,0)]
#endif
unsafe struct AuthorizationItemSet { unsafe struct AuthorizationItemSet {
public int /* UInt32 */ count; public int /* UInt32 */ count;
public AuthorizationItem * /* AuthorizationItem* */ ptrToAuthorization; public AuthorizationItem * /* AuthorizationItem* */ ptrToAuthorization;
} }
#if NET
[SupportedOSPlatform ("maccatalyst15.0")]
#else
[MacCatalyst (15,0)]
#endif
public unsafe class Authorization : INativeObject, IDisposable { public unsafe class Authorization : INativeObject, IDisposable {
IntPtr handle; IntPtr handle;

Просмотреть файл

@ -30,6 +30,8 @@
#if !NET #if !NET
#define NATIVE_APPLE_CERTIFICATE #define NATIVE_APPLE_CERTIFICATE
#else
using System.Runtime.Versioning;
#endif #endif
using System; using System;
@ -551,11 +553,53 @@ namespace Security {
[DllImport (Constants.SecurityLibrary, EntryPoint="SecKeyGetTypeID")] [DllImport (Constants.SecurityLibrary, EntryPoint="SecKeyGetTypeID")]
public extern static nint GetTypeID (); public extern static nint GetTypeID ();
#if !NET
[Deprecated (PlatformName.MacOSX, 12, 0, message: "Use 'SecKeyCreateRandomKey' instead.")]
[Deprecated (PlatformName.iOS, 15, 0, message: "Use 'SecKeyCreateRandomKey' instead.")]
[Deprecated (PlatformName.MacCatalyst, 15, 0, message: "Use 'SecKeyCreateRandomKey' instead.")]
[Deprecated (PlatformName.TvOS, 15, 0, message: "Use 'SecKeyCreateRandomKey' instead.")]
[Deprecated (PlatformName.WatchOS, 8, 0, message: "Use 'SecKeyCreateRandomKey' instead.")]
#else
[UnsupportedOSPlatform ("macos12.0")]
[UnsupportedOSPlatform ("ios15.0")]
[UnsupportedOSPlatform ("tvos15.0")]
[UnsupportedOSPlatform ("maccatalyst15.0")]
#if __MACCATALYST__
[Obsolete ("Starting with maccatalyst15.0 use 'SecKeyCreateRandomKey' instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
#elif IOS
[Obsolete ("Starting with ios15.0 use 'SecKeyCreateRandomKey' instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
#elif TVOS
[Obsolete ("Starting with tvos15.0 use 'SecKeyCreateRandomKey' instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
#elif MONOMAC
[Obsolete ("Starting with macos12.0 use 'SecKeyCreateRandomKey' instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
#endif
#endif
[DllImport (Constants.SecurityLibrary)] [DllImport (Constants.SecurityLibrary)]
extern static SecStatusCode SecKeyGeneratePair (IntPtr dictHandle, out IntPtr pubKey, out IntPtr privKey); extern static SecStatusCode SecKeyGeneratePair (IntPtr dictHandle, out IntPtr pubKey, out IntPtr privKey);
// TODO: pull all the TypeRefs needed for the NSDictionary // TODO: pull all the TypeRefs needed for the NSDictionary
#if !NET
[Deprecated (PlatformName.MacOSX, 12, 0, message: "Use 'CreateRandomKey' instead.")]
[Deprecated (PlatformName.iOS, 15, 0, message: "Use 'CreateRandomKey' instead.")]
[Deprecated (PlatformName.MacCatalyst, 15, 0, message: "Use 'CreateRandomKey' instead.")]
[Deprecated (PlatformName.TvOS, 15, 0, message: "Use 'CreateRandomKey' instead.")]
[Deprecated (PlatformName.WatchOS, 8, 0, message: "Use 'CreateRandomKey' instead.")]
#else
[UnsupportedOSPlatform ("macos12.0")]
[UnsupportedOSPlatform ("ios15.0")]
[UnsupportedOSPlatform ("tvos15.0")]
[UnsupportedOSPlatform ("maccatalyst15.0")]
#if __MACCATALYST__
[Obsolete ("Starting with maccatalyst15.0 use 'CreateRandomKey' instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
#elif IOS
[Obsolete ("Starting with ios15.0 use 'CreateRandomKey' instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
#elif TVOS
[Obsolete ("Starting with tvos15.0 use 'CreateRandomKey' instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
#elif MONOMAC
[Obsolete ("Starting with macos12.0 use 'CreateRandomKey' instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
#endif
#endif
public static SecStatusCode GenerateKeyPair (NSDictionary parameters, out SecKey publicKey, out SecKey privateKey) public static SecStatusCode GenerateKeyPair (NSDictionary parameters, out SecKey publicKey, out SecKey privateKey)
{ {
if (parameters == null) if (parameters == null)
@ -625,9 +669,43 @@ namespace Security {
} }
} }
#if !NET
[Deprecated (PlatformName.iOS, 15, 0, message: "Use 'SecKeyCreateSignature' instead.")]
[Deprecated (PlatformName.MacCatalyst, 15, 0, message: "Use 'SecKeyCreateSignature' instead.")]
[Deprecated (PlatformName.TvOS, 15, 0, message: "Use 'SecKeyCreateSignature' instead.")]
[Deprecated (PlatformName.WatchOS, 8, 0, message: "Use 'SecKeyCreateSignature' instead.")]
#else
[UnsupportedOSPlatform ("ios15.0")]
[UnsupportedOSPlatform ("tvos15.0")]
[UnsupportedOSPlatform ("maccatalyst15.0")]
#if __MACCATALYST__
[Obsolete ("Starting with maccatalyst15.0 use 'SecKeyCreateSignature' instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
#elif IOS
[Obsolete ("Starting with ios15.0 use 'SecKeyCreateSignature' instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
#elif TVOS
[Obsolete ("Starting with tvos15.0 use 'SecKeyCreateSignature' instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
#endif
#endif
[DllImport (Constants.SecurityLibrary)] [DllImport (Constants.SecurityLibrary)]
extern static SecStatusCode SecKeyRawSign (IntPtr handle, SecPadding padding, IntPtr dataToSign, nint dataToSignLen, IntPtr sig, ref nint sigLen); extern static SecStatusCode SecKeyRawSign (IntPtr handle, SecPadding padding, IntPtr dataToSign, nint dataToSignLen, IntPtr sig, ref nint sigLen);
#if !NET
[Deprecated (PlatformName.iOS, 15, 0, message: "Use 'CreateSignature' instead.")]
[Deprecated (PlatformName.MacCatalyst, 15, 0, message: "Use 'CreateSignature' instead.")]
[Deprecated (PlatformName.TvOS, 15, 0, message: "Use 'CreateSignature' instead.")]
[Deprecated (PlatformName.WatchOS, 8, 0, message: "Use 'CreateSignature' instead.")]
#else
[UnsupportedOSPlatform ("ios15.0")]
[UnsupportedOSPlatform ("tvos15.0")]
[UnsupportedOSPlatform ("maccatalyst15.0")]
#if __MACCATALYST__
[Obsolete ("Starting with maccatalyst15.0 use 'CreateSignature' instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
#elif IOS
[Obsolete ("Starting with ios15.0 use 'CreateSignature' instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
#elif TVOS
[Obsolete ("Starting with tvos15.0 use 'CreateSignature' instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
#endif
#endif
public SecStatusCode RawSign (SecPadding padding, IntPtr dataToSign, int dataToSignLen, out byte [] result) public SecStatusCode RawSign (SecPadding padding, IntPtr dataToSign, int dataToSignLen, out byte [] result)
{ {
if (handle == IntPtr.Zero) if (handle == IntPtr.Zero)
@ -661,9 +739,43 @@ namespace Security {
return status; return status;
} }
#if !NET
[Deprecated (PlatformName.iOS, 15, 0, message: "Use 'SecKeyVerifySignature' instead.")]
[Deprecated (PlatformName.MacCatalyst, 15, 0, message: "Use 'SecKeyVerifySignature' instead.")]
[Deprecated (PlatformName.TvOS, 15, 0, message: "Use 'SecKeyVerifySignature' instead.")]
[Deprecated (PlatformName.WatchOS, 8, 0, message: "Use 'SecKeyVerifySignature' instead.")]
#else
[UnsupportedOSPlatform ("ios15.0")]
[UnsupportedOSPlatform ("tvos15.0")]
[UnsupportedOSPlatform ("maccatalyst15.0")]
#if __MACCATALYST__
[Obsolete ("Starting with maccatalyst15.0 use 'SecKeyVerifySignature' instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
#elif IOS
[Obsolete ("Starting with ios15.0 use 'SecKeyVerifySignature' instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
#elif TVOS
[Obsolete ("Starting with tvos15.0 use 'SecKeyVerifySignature' instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
#endif
#endif
[DllImport (Constants.SecurityLibrary)] [DllImport (Constants.SecurityLibrary)]
extern static SecStatusCode SecKeyRawVerify (IntPtr handle, SecPadding padding, IntPtr signedData, nint signedLen, IntPtr sign, nint signLen); extern static SecStatusCode SecKeyRawVerify (IntPtr handle, SecPadding padding, IntPtr signedData, nint signedLen, IntPtr sign, nint signLen);
#if !NET
[Deprecated (PlatformName.iOS, 15, 0, message: "Use 'VerifySignature' instead.")]
[Deprecated (PlatformName.MacCatalyst, 15, 0, message: "Use 'VerifySignature' instead.")]
[Deprecated (PlatformName.TvOS, 15, 0, message: "Use 'VerifySignature' instead.")]
[Deprecated (PlatformName.WatchOS, 8, 0, message: "Use 'VerifySignature' instead.")]
#else
[UnsupportedOSPlatform ("ios15.0")]
[UnsupportedOSPlatform ("tvos15.0")]
[UnsupportedOSPlatform ("maccatalyst15.0")]
#if __MACCATALYST__
[Obsolete ("Starting with maccatalyst15.0 use 'VerifySignature' instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
#elif IOS
[Obsolete ("Starting with ios15.0 use 'VerifySignature' instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
#elif TVOS
[Obsolete ("Starting with tvos15.0 use 'VerifySignature' instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
#endif
#endif
public unsafe SecStatusCode RawVerify (SecPadding padding, IntPtr signedData, int signedDataLen, IntPtr signature, int signatureLen) public unsafe SecStatusCode RawVerify (SecPadding padding, IntPtr signedData, int signedDataLen, IntPtr signature, int signatureLen)
{ {
if (handle == IntPtr.Zero) if (handle == IntPtr.Zero)
@ -694,9 +806,43 @@ namespace Security {
} }
} }
#if !NET
[Deprecated (PlatformName.iOS, 15, 0, message: "Use 'SecKeyCreateEncryptedData' instead.")]
[Deprecated (PlatformName.TvOS, 15, 0, message: "Use 'SecKeyCreateEncryptedData' instead.")]
[Deprecated (PlatformName.MacCatalyst, 15, 0, message: "Use 'SecKeyCreateEncryptedData' instead.")]
[Deprecated (PlatformName.WatchOS, 8, 0, message: "Use 'SecKeyCreateEncryptedData' instead.")]
#else
[UnsupportedOSPlatform ("ios15.0")]
[UnsupportedOSPlatform ("tvos15.0")]
[UnsupportedOSPlatform ("maccatalyst15.0")]
#if __MACCATALYST__
[Obsolete ("Starting with maccatalyst15.0 use 'SecKeyCreateEncryptedData' instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
#elif IOS
[Obsolete ("Starting with ios15.0 use 'SecKeyCreateEncryptedData' instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
#elif TVOS
[Obsolete ("Starting with tvos15.0 use 'SecKeyCreateEncryptedData' instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
#endif
#endif
[DllImport (Constants.SecurityLibrary)] [DllImport (Constants.SecurityLibrary)]
extern static SecStatusCode SecKeyEncrypt (IntPtr handle, SecPadding padding, IntPtr plainText, nint plainTextLen, IntPtr cipherText, ref nint cipherTextLengh); extern static SecStatusCode SecKeyEncrypt (IntPtr handle, SecPadding padding, IntPtr plainText, nint plainTextLen, IntPtr cipherText, ref nint cipherTextLengh);
#if !NET
[Deprecated (PlatformName.iOS, 15, 0, message: "Use 'CreateEncryptedData' instead.")]
[Deprecated (PlatformName.TvOS, 15, 0, message: "Use 'CreateEncryptedData' instead.")]
[Deprecated (PlatformName.MacCatalyst, 15, 0, message: "Use 'CreateEncryptedData' instead.")]
[Deprecated (PlatformName.WatchOS, 8, 0, message: "Use 'CreateEncryptedData' instead.")]
#else
[UnsupportedOSPlatform ("ios15.0")]
[UnsupportedOSPlatform ("tvos15.0")]
[UnsupportedOSPlatform ("maccatalyst15.0")]
#if __MACCATALYST__
[Obsolete ("Starting with maccatalyst15.0 use 'CreateEncryptedData' instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
#elif IOS
[Obsolete ("Starting with ios15.0 use 'CreateEncryptedData' instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
#elif TVOS
[Obsolete ("Starting with tvos15.0 use 'CreateEncryptedData' instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
#endif
#endif
public unsafe SecStatusCode Encrypt (SecPadding padding, IntPtr plainText, nint plainTextLen, IntPtr cipherText, ref nint cipherTextLen) public unsafe SecStatusCode Encrypt (SecPadding padding, IntPtr plainText, nint plainTextLen, IntPtr cipherText, ref nint cipherTextLen)
{ {
if (handle == IntPtr.Zero) if (handle == IntPtr.Zero)
@ -729,9 +875,43 @@ namespace Security {
return Encrypt (padding, plainText, cipherText); return Encrypt (padding, plainText, cipherText);
} }
#if !NET
[Deprecated (PlatformName.iOS, 15, 0, message: "Use 'SecKeyCreateDecryptedData' instead.")]
[Deprecated (PlatformName.TvOS, 15, 0, message: "Use 'SecKeyCreateDecryptedData' instead.")]
[Deprecated (PlatformName.MacCatalyst, 15, 0, message: "Use 'SecKeyCreateDecryptedData' instead.")]
[Deprecated (PlatformName.WatchOS, 8, 0, message: "Use 'SecKeyCreateDecryptedData' instead.")]
#else
[UnsupportedOSPlatform ("ios15.0")]
[UnsupportedOSPlatform ("tvos15.0")]
[UnsupportedOSPlatform ("maccatalyst15.0")]
#if __MACCATALYST__
[Obsolete ("Starting with maccatalyst15.0 use 'SecKeyCreateDecryptedData' instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
#elif IOS
[Obsolete ("Starting with ios15.0 use 'SecKeyCreateDecryptedData' instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
#elif TVOS
[Obsolete ("Starting with tvos15.0 use 'SecKeyCreateDecryptedData' instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
#endif
#endif
[DllImport (Constants.SecurityLibrary)] [DllImport (Constants.SecurityLibrary)]
extern static SecStatusCode SecKeyDecrypt (IntPtr handle, SecPadding padding, IntPtr cipherTextLen, nint cipherLen, IntPtr plainText, ref nint plainTextLen); extern static SecStatusCode SecKeyDecrypt (IntPtr handle, SecPadding padding, IntPtr cipherTextLen, nint cipherLen, IntPtr plainText, ref nint plainTextLen);
#if !NET
[Deprecated (PlatformName.iOS, 15, 0, message: "Use 'CreateDecryptedData' instead.")]
[Deprecated (PlatformName.TvOS, 15, 0, message: "Use 'CreateDecryptedData' instead.")]
[Deprecated (PlatformName.MacCatalyst, 15, 0, message: "Use 'CreateDecryptedData' instead.")]
[Deprecated (PlatformName.WatchOS, 8, 0, message: "Use 'CreateDecryptedData' instead.")]
#else
[UnsupportedOSPlatform ("ios15.0")]
[UnsupportedOSPlatform ("tvos15.0")]
[UnsupportedOSPlatform ("maccatalyst15.0")]
#if __MACCATALYST__
[Obsolete ("Starting with maccatalyst15.0 use 'CreateDecryptedData' instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
#elif IOS
[Obsolete ("Starting with ios15.0 use 'CreateDecryptedData' instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
#elif TVOS
[Obsolete ("Starting with tvos15.0 use 'CreateDecryptedData' instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
#endif
#endif
public unsafe SecStatusCode Decrypt (SecPadding padding, IntPtr cipherText, nint cipherTextLen, IntPtr plainText, ref nint plainTextLen) public unsafe SecStatusCode Decrypt (SecPadding padding, IntPtr cipherText, nint cipherTextLen, IntPtr plainText, ref nint plainTextLen)
{ {
if (handle == IntPtr.Zero) if (handle == IntPtr.Zero)

Просмотреть файл

@ -34,6 +34,9 @@ using System.Security.Cryptography.X509Certificates;
using ObjCRuntime; using ObjCRuntime;
using CoreFoundation; using CoreFoundation;
using Foundation; using Foundation;
#if NET
using System.Runtime.Versioning;
#endif
namespace Security { namespace Security {
public partial class SecTrust : INativeObject, IDisposable { public partial class SecTrust : INativeObject, IDisposable {
@ -159,9 +162,52 @@ namespace Security {
} }
} }
#if !NET
[Deprecated (PlatformName.MacOSX, 12, 0)]
[Deprecated (PlatformName.iOS, 15, 0)]
[Deprecated (PlatformName.MacCatalyst, 15, 0)]
[Deprecated (PlatformName.WatchOS, 8, 0)]
[Deprecated (PlatformName.TvOS, 15, 0)]
#else
[UnsupportedOSPlatform ("macos12.0")]
[UnsupportedOSPlatform ("ios15.0")]
[UnsupportedOSPlatform ("tvos15.0")]
[UnsupportedOSPlatform ("maccatalyst15.0")]
#if __MACCATALYST__
[Obsolete ("Starting with maccatalyst15.0 API removed, please do not use.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
#elif IOS
[Obsolete ("Starting with ios15.0 API removed, please do not use.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
#elif TVOS
[Obsolete ("Starting with tvos15.0 API removed, please do not use.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
#elif MONOMAC
[Obsolete ("Starting with macos12.0 API removed, please do not use.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
#endif
#endif
[DllImport (Constants.SecurityLibrary)] [DllImport (Constants.SecurityLibrary)]
extern static IntPtr /* SecCertificateRef */ SecTrustGetCertificateAtIndex (IntPtr /* SecTrustRef */ trust, nint /* CFIndex */ ix); extern static IntPtr /* SecCertificateRef */ SecTrustGetCertificateAtIndex (IntPtr /* SecTrustRef */ trust, nint /* CFIndex */ ix);
#if !NET
[Deprecated (PlatformName.MacOSX, 12, 0, message: "Use the 'GetCertificateChain' method instead.")]
[Deprecated (PlatformName.iOS, 15, 0, message: "Use the 'GetCertificateChain' method instead.")]
[Deprecated (PlatformName.MacCatalyst, 15, 0, message: "Use the 'GetCertificateChain' method instead.")]
[Deprecated (PlatformName.WatchOS, 8, 0, message: "Use the 'GetCertificateChain' method instead.")]
[Deprecated (PlatformName.TvOS, 15, 0, message: "Use the 'GetCertificateChain' method instead.")]
#else
[UnsupportedOSPlatform ("macos12.0")]
[UnsupportedOSPlatform ("ios15.0")]
[UnsupportedOSPlatform ("tvos15.0")]
[UnsupportedOSPlatform ("maccatalyst15.0")]
#if __MACCATALYST__
[Obsolete ("Starting with maccatalyst15.0 use 'GetCertificateChain' method instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
#elif IOS
[Obsolete ("Starting with ios15.0 please use 'GetCertificateChain' method instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
#elif TVOS
[Obsolete ("Starting with tvos15.0 please use 'GetCertificateChain' method instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
#elif MONOMAC
[Obsolete ("Starting with macos12.0 please use 'GetCertificateChain' method instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
#endif
#endif
public SecCertificate this [nint index] { public SecCertificate this [nint index] {
get { get {
if (handle == IntPtr.Zero) if (handle == IntPtr.Zero)
@ -173,6 +219,28 @@ namespace Security {
} }
} }
#if NET
[SupportedOSPlatform ("ios15.0")]
[SupportedOSPlatform ("tvos15.0")]
[SupportedOSPlatform ("maccatalyst15.0")]
[SupportedOSPlatform ("macos12.0")]
#else
[Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)]
#endif
[DllImport (Constants.SecurityLibrary)]
static extern /* CFArrayRef */ IntPtr SecTrustCopyCertificateChain (/* SecTrustRef */ IntPtr trust);
#if NET
[SupportedOSPlatform ("ios15.0")]
[SupportedOSPlatform ("tvos15.0")]
[SupportedOSPlatform ("maccatalyst15.0")]
[SupportedOSPlatform ("macos12.0")]
#else
[Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)]
#endif
public SecCertificate[] GetCertificateChain ()
=> NSArray.ArrayFromHandle<SecCertificate> (SecTrustCopyCertificateChain (handle));
[Deprecated (PlatformName.iOS, 14,0)] [Deprecated (PlatformName.iOS, 14,0)]
[Deprecated (PlatformName.MacOSX, 11,0)] [Deprecated (PlatformName.MacOSX, 11,0)]
[Deprecated (PlatformName.TvOS, 14,0)] [Deprecated (PlatformName.TvOS, 14,0)]

Просмотреть файл

@ -1,2 +1,223 @@
# deprecated # deprecated
!missing-pinvoke! SecCertificateCopyPublicKey is not bound !missing-pinvoke! SecCertificateCopyPublicKey is not bound
# follow the macOS pattern that ignores all of the following ones
!missing-enum! AuthorizationContextFlags not bound
!missing-enum! AuthorizationResult not bound
!missing-enum! SecCSDigestAlgorithm not bound
!missing-enum! SecCSFlags not bound
!missing-enum! SecCodeSignatureFlags not bound
!missing-enum! SecCodeStatus not bound
!missing-enum! SecRequirementType not bound
!missing-enum! SessionAttributeBits not bound
!missing-enum! SessionCreationFlags not bound
!missing-enum! _SecureDownloadTrustCallbackResult not bound
!missing-field! kSecAsn1AnyTemplate not bound
!missing-field! kSecAsn1BMPStringTemplate not bound
!missing-field! kSecAsn1BitStringTemplate not bound
!missing-field! kSecAsn1BooleanTemplate not bound
!missing-field! kSecAsn1EnumeratedTemplate not bound
!missing-field! kSecAsn1GeneralizedTimeTemplate not bound
!missing-field! kSecAsn1IA5StringTemplate not bound
!missing-field! kSecAsn1IntegerTemplate not bound
!missing-field! kSecAsn1NullTemplate not bound
!missing-field! kSecAsn1ObjectIDTemplate not bound
!missing-field! kSecAsn1OctetStringTemplate not bound
!missing-field! kSecAsn1PointerToAnyTemplate not bound
!missing-field! kSecAsn1PointerToBMPStringTemplate not bound
!missing-field! kSecAsn1PointerToBitStringTemplate not bound
!missing-field! kSecAsn1PointerToBooleanTemplate not bound
!missing-field! kSecAsn1PointerToEnumeratedTemplate not bound
!missing-field! kSecAsn1PointerToGeneralizedTimeTemplate not bound
!missing-field! kSecAsn1PointerToIA5StringTemplate not bound
!missing-field! kSecAsn1PointerToIntegerTemplate not bound
!missing-field! kSecAsn1PointerToNullTemplate not bound
!missing-field! kSecAsn1PointerToObjectIDTemplate not bound
!missing-field! kSecAsn1PointerToOctetStringTemplate not bound
!missing-field! kSecAsn1PointerToPrintableStringTemplate not bound
!missing-field! kSecAsn1PointerToT61StringTemplate not bound
!missing-field! kSecAsn1PointerToTeletexStringTemplate not bound
!missing-field! kSecAsn1PointerToUTCTimeTemplate not bound
!missing-field! kSecAsn1PointerToUTF8StringTemplate not bound
!missing-field! kSecAsn1PointerToUniversalStringTemplate not bound
!missing-field! kSecAsn1PointerToVisibleStringTemplate not bound
!missing-field! kSecAsn1PrintableStringTemplate not bound
!missing-field! kSecAsn1SequenceOfAnyTemplate not bound
!missing-field! kSecAsn1SequenceOfBMPStringTemplate not bound
!missing-field! kSecAsn1SequenceOfBitStringTemplate not bound
!missing-field! kSecAsn1SequenceOfBooleanTemplate not bound
!missing-field! kSecAsn1SequenceOfEnumeratedTemplate not bound
!missing-field! kSecAsn1SequenceOfGeneralizedTimeTemplate not bound
!missing-field! kSecAsn1SequenceOfIA5StringTemplate not bound
!missing-field! kSecAsn1SequenceOfIntegerTemplate not bound
!missing-field! kSecAsn1SequenceOfNullTemplate not bound
!missing-field! kSecAsn1SequenceOfObjectIDTemplate not bound
!missing-field! kSecAsn1SequenceOfOctetStringTemplate not bound
!missing-field! kSecAsn1SequenceOfPrintableStringTemplate not bound
!missing-field! kSecAsn1SequenceOfT61StringTemplate not bound
!missing-field! kSecAsn1SequenceOfTeletexStringTemplate not bound
!missing-field! kSecAsn1SequenceOfUTCTimeTemplate not bound
!missing-field! kSecAsn1SequenceOfUTF8StringTemplate not bound
!missing-field! kSecAsn1SequenceOfUniversalStringTemplate not bound
!missing-field! kSecAsn1SequenceOfVisibleStringTemplate not bound
!missing-field! kSecAsn1SetOfAnyTemplate not bound
!missing-field! kSecAsn1SetOfBMPStringTemplate not bound
!missing-field! kSecAsn1SetOfBitStringTemplate not bound
!missing-field! kSecAsn1SetOfBooleanTemplate not bound
!missing-field! kSecAsn1SetOfEnumeratedTemplate not bound
!missing-field! kSecAsn1SetOfGeneralizedTimeTemplate not bound
!missing-field! kSecAsn1SetOfIA5StringTemplate not bound
!missing-field! kSecAsn1SetOfIntegerTemplate not bound
!missing-field! kSecAsn1SetOfNullTemplate not bound
!missing-field! kSecAsn1SetOfObjectIDTemplate not bound
!missing-field! kSecAsn1SetOfOctetStringTemplate not bound
!missing-field! kSecAsn1SetOfPrintableStringTemplate not bound
!missing-field! kSecAsn1SetOfT61StringTemplate not bound
!missing-field! kSecAsn1SetOfTeletexStringTemplate not bound
!missing-field! kSecAsn1SetOfUTCTimeTemplate not bound
!missing-field! kSecAsn1SetOfUTF8StringTemplate not bound
!missing-field! kSecAsn1SetOfUniversalStringTemplate not bound
!missing-field! kSecAsn1SetOfVisibleStringTemplate not bound
!missing-field! kSecAsn1SkipTemplate not bound
!missing-field! kSecAsn1T61StringTemplate not bound
!missing-field! kSecAsn1TeletexStringTemplate not bound
!missing-field! kSecAsn1UTCTimeTemplate not bound
!missing-field! kSecAsn1UTF8StringTemplate not bound
!missing-field! kSecAsn1UniversalStringTemplate not bound
!missing-field! kSecAsn1UnsignedIntegerTemplate not bound
!missing-field! kSecAsn1VisibleStringTemplate not bound
!missing-field! kSecAttrAccess not bound
!missing-field! kSecAttrKeyType3DES not bound
!missing-field! kSecAttrKeyTypeAES not bound
!missing-field! kSecAttrKeyTypeCAST not bound
!missing-field! kSecAttrKeyTypeDES not bound
!missing-field! kSecAttrKeyTypeDSA not bound
!missing-field! kSecAttrKeyTypeECDSA not bound
!missing-field! kSecAttrKeyTypeRC2 not bound
!missing-field! kSecAttrKeyTypeRC4 not bound
!missing-field! kSecAttrPRF not bound
!missing-field! kSecAttrPRFHmacAlgSHA1 not bound
!missing-field! kSecAttrPRFHmacAlgSHA224 not bound
!missing-field! kSecAttrPRFHmacAlgSHA256 not bound
!missing-field! kSecAttrPRFHmacAlgSHA384 not bound
!missing-field! kSecAttrPRFHmacAlgSHA512 not bound
!missing-field! kSecAttrRounds not bound
!missing-field! kSecAttrSalt not bound
!missing-field! kSecCFErrorArchitecture not bound
!missing-field! kSecCFErrorGuestAttributes not bound
!missing-field! kSecCFErrorInfoPlist not bound
!missing-field! kSecCFErrorPath not bound
!missing-field! kSecCFErrorPattern not bound
!missing-field! kSecCFErrorRequirementSyntax not bound
!missing-field! kSecCFErrorResourceAdded not bound
!missing-field! kSecCFErrorResourceAltered not bound
!missing-field! kSecCFErrorResourceMissing not bound
!missing-field! kSecCFErrorResourceSeal not bound
!missing-field! kSecCFErrorResourceSideband not bound
!missing-field! kSecCodeAttributeArchitecture not bound
!missing-field! kSecCodeAttributeBundleVersion not bound
!missing-field! kSecCodeAttributeSubarchitecture not bound
!missing-field! kSecCodeAttributeUniversalFileOffset not bound
!missing-field! kSecCodeInfoCMS not bound
!missing-field! kSecCodeInfoCdHashes not bound
!missing-field! kSecCodeInfoCertificates not bound
!missing-field! kSecCodeInfoChangedFiles not bound
!missing-field! kSecCodeInfoDesignatedRequirement not bound
!missing-field! kSecCodeInfoDigestAlgorithm not bound
!missing-field! kSecCodeInfoDigestAlgorithms not bound
!missing-field! kSecCodeInfoEntitlements not bound
!missing-field! kSecCodeInfoEntitlementsDict not bound
!missing-field! kSecCodeInfoFlags not bound
!missing-field! kSecCodeInfoFormat not bound
!missing-field! kSecCodeInfoIdentifier not bound
!missing-field! kSecCodeInfoImplicitDesignatedRequirement not bound
!missing-field! kSecCodeInfoMainExecutable not bound
!missing-field! kSecCodeInfoPList not bound
!missing-field! kSecCodeInfoPlatformIdentifier not bound
!missing-field! kSecCodeInfoRequirementData not bound
!missing-field! kSecCodeInfoRequirements not bound
!missing-field! kSecCodeInfoRuntimeVersion not bound
!missing-field! kSecCodeInfoSource not bound
!missing-field! kSecCodeInfoStatus not bound
!missing-field! kSecCodeInfoTeamIdentifier not bound
!missing-field! kSecCodeInfoTime not bound
!missing-field! kSecCodeInfoTimestamp not bound
!missing-field! kSecCodeInfoTrust not bound
!missing-field! kSecCodeInfoUnique not bound
!missing-field! kSecGuestAttributeArchitecture not bound
!missing-field! kSecGuestAttributeAudit not bound
!missing-field! kSecGuestAttributeCanonical not bound
!missing-field! kSecGuestAttributeDynamicCode not bound
!missing-field! kSecGuestAttributeDynamicCodeInfoPlist not bound
!missing-field! kSecGuestAttributeHash not bound
!missing-field! kSecGuestAttributeMachPort not bound
!missing-field! kSecGuestAttributePid not bound
!missing-field! kSecGuestAttributeSubarchitecture not bound
!missing-field! kSecImportExportAccess not bound
!missing-field! kSecImportExportKeychain not bound
!missing-field! kSecMatchDiacriticInsensitive not bound
!missing-field! kSecMatchSubjectEndsWith not bound
!missing-field! kSecMatchSubjectStartsWith not bound
!missing-field! kSecMatchSubjectWholeString not bound
!missing-field! kSecMatchWidthInsensitive not bound
!missing-field! kSecPolicyApplePKINITClient not bound
!missing-field! kSecPolicyApplePKINITServer not bound
!missing-field! kSecUseKeychain not bound
!missing-pinvoke! AuthorizationCopyInfo is not bound
!missing-pinvoke! AuthorizationCopyPrivilegedReference is not bound
!missing-pinvoke! AuthorizationCopyRights is not bound
!missing-pinvoke! AuthorizationCopyRightsAsync is not bound
!missing-pinvoke! AuthorizationCreateFromExternalForm is not bound
!missing-pinvoke! AuthorizationFreeItemSet is not bound
!missing-pinvoke! AuthorizationMakeExternalForm is not bound
!missing-pinvoke! AuthorizationPluginCreate is not bound
!missing-pinvoke! SecAsn1AllocCopy is not bound
!missing-pinvoke! SecAsn1AllocCopyItem is not bound
!missing-pinvoke! SecAsn1AllocItem is not bound
!missing-pinvoke! SecAsn1CoderCreate is not bound
!missing-pinvoke! SecAsn1CoderRelease is not bound
!missing-pinvoke! SecAsn1Decode is not bound
!missing-pinvoke! SecAsn1DecodeData is not bound
!missing-pinvoke! SecAsn1EncodeItem is not bound
!missing-pinvoke! SecAsn1Malloc is not bound
!missing-pinvoke! SecAsn1OidCompare is not bound
!missing-pinvoke! SecCodeCheckValidity is not bound
!missing-pinvoke! SecCodeCheckValidityWithErrors is not bound
!missing-pinvoke! SecCodeCopyDesignatedRequirement is not bound
!missing-pinvoke! SecCodeCopyHost is not bound
!missing-pinvoke! SecCodeCopyPath is not bound
!missing-pinvoke! SecCodeCopySelf is not bound
!missing-pinvoke! SecCodeCopySigningInformation is not bound
!missing-pinvoke! SecCodeCopyStaticCode is not bound
!missing-pinvoke! SecCodeGetTypeID is not bound
!missing-pinvoke! SecCodeMapMemory is not bound
!missing-pinvoke! SecRequirementCopyData is not bound
!missing-pinvoke! SecRequirementCopyString is not bound
!missing-pinvoke! SecRequirementCreateWithData is not bound
!missing-pinvoke! SecRequirementCreateWithString is not bound
!missing-pinvoke! SecRequirementCreateWithStringAndErrors is not bound
!missing-pinvoke! SecRequirementGetTypeID is not bound
!missing-pinvoke! SecStaticCodeCheckValidity is not bound
!missing-pinvoke! SecStaticCodeCheckValidityWithErrors is not bound
!missing-pinvoke! SecStaticCodeCreateWithPath is not bound
!missing-pinvoke! SecStaticCodeCreateWithPathAndAttributes is not bound
!missing-pinvoke! SecStaticCodeGetTypeID is not bound
!missing-pinvoke! SecureDownloadCopyCreationDate is not bound
!missing-pinvoke! SecureDownloadCopyName is not bound
!missing-pinvoke! SecureDownloadCopyTicketLocation is not bound
!missing-pinvoke! SecureDownloadCopyURLs is not bound
!missing-pinvoke! SecureDownloadCreateWithTicket is not bound
!missing-pinvoke! SecureDownloadFinished is not bound
!missing-pinvoke! SecureDownloadGetDownloadSize is not bound
!missing-pinvoke! SecureDownloadRelease is not bound
!missing-pinvoke! SecureDownloadUpdateWithData is not bound
!missing-pinvoke! SessionCreate is not bound
!missing-pinvoke! SessionGetInfo is not bound
# Only shown MacCatalyst and there is not public documentation about them.
!missing-pinvoke! sec_protocol_options_get_enable_encrypted_client_hello is not bound
!missing-pinvoke! sec_protocol_options_get_quic_use_legacy_codepoint is not bound
!missing-pinvoke! sec_protocol_options_set_enable_encrypted_client_hello is not bound
!missing-pinvoke! sec_protocol_options_set_peer_authentication_optional is not bound
!missing-pinvoke! sec_protocol_options_set_quic_use_legacy_codepoint is not bound

Просмотреть файл

@ -1,222 +0,0 @@
!missing-enum! _SecureDownloadTrustCallbackResult not bound
!missing-enum! AuthorizationContextFlags not bound
!missing-enum! AuthorizationFlags not bound
!missing-enum! AuthorizationResult not bound
!missing-enum! SecCodeSignatureFlags not bound
!missing-enum! SecCodeStatus not bound
!missing-enum! SecCSDigestAlgorithm not bound
!missing-enum! SecCSFlags not bound
!missing-enum! SecRequirementType not bound
!missing-enum! SessionAttributeBits not bound
!missing-enum! SessionCreationFlags not bound
!missing-field! kSecAsn1AnyTemplate not bound
!missing-field! kSecAsn1BitStringTemplate not bound
!missing-field! kSecAsn1BMPStringTemplate not bound
!missing-field! kSecAsn1BooleanTemplate not bound
!missing-field! kSecAsn1EnumeratedTemplate not bound
!missing-field! kSecAsn1GeneralizedTimeTemplate not bound
!missing-field! kSecAsn1IA5StringTemplate not bound
!missing-field! kSecAsn1IntegerTemplate not bound
!missing-field! kSecAsn1NullTemplate not bound
!missing-field! kSecAsn1ObjectIDTemplate not bound
!missing-field! kSecAsn1OctetStringTemplate not bound
!missing-field! kSecAsn1PointerToAnyTemplate not bound
!missing-field! kSecAsn1PointerToBitStringTemplate not bound
!missing-field! kSecAsn1PointerToBMPStringTemplate not bound
!missing-field! kSecAsn1PointerToBooleanTemplate not bound
!missing-field! kSecAsn1PointerToEnumeratedTemplate not bound
!missing-field! kSecAsn1PointerToGeneralizedTimeTemplate not bound
!missing-field! kSecAsn1PointerToIA5StringTemplate not bound
!missing-field! kSecAsn1PointerToIntegerTemplate not bound
!missing-field! kSecAsn1PointerToNullTemplate not bound
!missing-field! kSecAsn1PointerToObjectIDTemplate not bound
!missing-field! kSecAsn1PointerToOctetStringTemplate not bound
!missing-field! kSecAsn1PointerToPrintableStringTemplate not bound
!missing-field! kSecAsn1PointerToT61StringTemplate not bound
!missing-field! kSecAsn1PointerToTeletexStringTemplate not bound
!missing-field! kSecAsn1PointerToUniversalStringTemplate not bound
!missing-field! kSecAsn1PointerToUTCTimeTemplate not bound
!missing-field! kSecAsn1PointerToUTF8StringTemplate not bound
!missing-field! kSecAsn1PointerToVisibleStringTemplate not bound
!missing-field! kSecAsn1PrintableStringTemplate not bound
!missing-field! kSecAsn1SequenceOfAnyTemplate not bound
!missing-field! kSecAsn1SequenceOfBitStringTemplate not bound
!missing-field! kSecAsn1SequenceOfBMPStringTemplate not bound
!missing-field! kSecAsn1SequenceOfBooleanTemplate not bound
!missing-field! kSecAsn1SequenceOfEnumeratedTemplate not bound
!missing-field! kSecAsn1SequenceOfGeneralizedTimeTemplate not bound
!missing-field! kSecAsn1SequenceOfIA5StringTemplate not bound
!missing-field! kSecAsn1SequenceOfIntegerTemplate not bound
!missing-field! kSecAsn1SequenceOfNullTemplate not bound
!missing-field! kSecAsn1SequenceOfObjectIDTemplate not bound
!missing-field! kSecAsn1SequenceOfOctetStringTemplate not bound
!missing-field! kSecAsn1SequenceOfPrintableStringTemplate not bound
!missing-field! kSecAsn1SequenceOfT61StringTemplate not bound
!missing-field! kSecAsn1SequenceOfTeletexStringTemplate not bound
!missing-field! kSecAsn1SequenceOfUniversalStringTemplate not bound
!missing-field! kSecAsn1SequenceOfUTCTimeTemplate not bound
!missing-field! kSecAsn1SequenceOfUTF8StringTemplate not bound
!missing-field! kSecAsn1SequenceOfVisibleStringTemplate not bound
!missing-field! kSecAsn1SetOfAnyTemplate not bound
!missing-field! kSecAsn1SetOfBitStringTemplate not bound
!missing-field! kSecAsn1SetOfBMPStringTemplate not bound
!missing-field! kSecAsn1SetOfBooleanTemplate not bound
!missing-field! kSecAsn1SetOfEnumeratedTemplate not bound
!missing-field! kSecAsn1SetOfGeneralizedTimeTemplate not bound
!missing-field! kSecAsn1SetOfIA5StringTemplate not bound
!missing-field! kSecAsn1SetOfIntegerTemplate not bound
!missing-field! kSecAsn1SetOfNullTemplate not bound
!missing-field! kSecAsn1SetOfObjectIDTemplate not bound
!missing-field! kSecAsn1SetOfOctetStringTemplate not bound
!missing-field! kSecAsn1SetOfPrintableStringTemplate not bound
!missing-field! kSecAsn1SetOfT61StringTemplate not bound
!missing-field! kSecAsn1SetOfTeletexStringTemplate not bound
!missing-field! kSecAsn1SetOfUniversalStringTemplate not bound
!missing-field! kSecAsn1SetOfUTCTimeTemplate not bound
!missing-field! kSecAsn1SetOfUTF8StringTemplate not bound
!missing-field! kSecAsn1SetOfVisibleStringTemplate not bound
!missing-field! kSecAsn1SkipTemplate not bound
!missing-field! kSecAsn1T61StringTemplate not bound
!missing-field! kSecAsn1TeletexStringTemplate not bound
!missing-field! kSecAsn1UniversalStringTemplate not bound
!missing-field! kSecAsn1UnsignedIntegerTemplate not bound
!missing-field! kSecAsn1UTCTimeTemplate not bound
!missing-field! kSecAsn1UTF8StringTemplate not bound
!missing-field! kSecAsn1VisibleStringTemplate not bound
!missing-field! kSecAttrAccess not bound
!missing-field! kSecAttrKeyType3DES not bound
!missing-field! kSecAttrKeyTypeAES not bound
!missing-field! kSecAttrKeyTypeCAST not bound
!missing-field! kSecAttrKeyTypeDES not bound
!missing-field! kSecAttrKeyTypeDSA not bound
!missing-field! kSecAttrKeyTypeECDSA not bound
!missing-field! kSecAttrKeyTypeRC2 not bound
!missing-field! kSecAttrKeyTypeRC4 not bound
!missing-field! kSecAttrPRF not bound
!missing-field! kSecAttrPRFHmacAlgSHA1 not bound
!missing-field! kSecAttrPRFHmacAlgSHA224 not bound
!missing-field! kSecAttrPRFHmacAlgSHA256 not bound
!missing-field! kSecAttrPRFHmacAlgSHA384 not bound
!missing-field! kSecAttrPRFHmacAlgSHA512 not bound
!missing-field! kSecAttrRounds not bound
!missing-field! kSecAttrSalt not bound
!missing-field! kSecCFErrorArchitecture not bound
!missing-field! kSecCFErrorGuestAttributes not bound
!missing-field! kSecCFErrorInfoPlist not bound
!missing-field! kSecCFErrorPath not bound
!missing-field! kSecCFErrorPattern not bound
!missing-field! kSecCFErrorRequirementSyntax not bound
!missing-field! kSecCFErrorResourceAdded not bound
!missing-field! kSecCFErrorResourceAltered not bound
!missing-field! kSecCFErrorResourceMissing not bound
!missing-field! kSecCFErrorResourceSeal not bound
!missing-field! kSecCFErrorResourceSideband not bound
!missing-field! kSecCodeAttributeArchitecture not bound
!missing-field! kSecCodeAttributeBundleVersion not bound
!missing-field! kSecCodeAttributeSubarchitecture not bound
!missing-field! kSecCodeAttributeUniversalFileOffset not bound
!missing-field! kSecCodeInfoCdHashes not bound
!missing-field! kSecCodeInfoCertificates not bound
!missing-field! kSecCodeInfoChangedFiles not bound
!missing-field! kSecCodeInfoCMS not bound
!missing-field! kSecCodeInfoDesignatedRequirement not bound
!missing-field! kSecCodeInfoDigestAlgorithm not bound
!missing-field! kSecCodeInfoDigestAlgorithms not bound
!missing-field! kSecCodeInfoEntitlements not bound
!missing-field! kSecCodeInfoEntitlementsDict not bound
!missing-field! kSecCodeInfoFlags not bound
!missing-field! kSecCodeInfoFormat not bound
!missing-field! kSecCodeInfoIdentifier not bound
!missing-field! kSecCodeInfoImplicitDesignatedRequirement not bound
!missing-field! kSecCodeInfoMainExecutable not bound
!missing-field! kSecCodeInfoPlatformIdentifier not bound
!missing-field! kSecCodeInfoPList not bound
!missing-field! kSecCodeInfoRequirementData not bound
!missing-field! kSecCodeInfoRequirements not bound
!missing-field! kSecCodeInfoRuntimeVersion not bound
!missing-field! kSecCodeInfoSource not bound
!missing-field! kSecCodeInfoStatus not bound
!missing-field! kSecCodeInfoTeamIdentifier not bound
!missing-field! kSecCodeInfoTime not bound
!missing-field! kSecCodeInfoTimestamp not bound
!missing-field! kSecCodeInfoTrust not bound
!missing-field! kSecCodeInfoUnique not bound
!missing-field! kSecGuestAttributeArchitecture not bound
!missing-field! kSecGuestAttributeAudit not bound
!missing-field! kSecGuestAttributeCanonical not bound
!missing-field! kSecGuestAttributeDynamicCode not bound
!missing-field! kSecGuestAttributeDynamicCodeInfoPlist not bound
!missing-field! kSecGuestAttributeHash not bound
!missing-field! kSecGuestAttributeMachPort not bound
!missing-field! kSecGuestAttributePid not bound
!missing-field! kSecGuestAttributeSubarchitecture not bound
!missing-field! kSecImportExportAccess not bound
!missing-field! kSecImportExportKeychain not bound
!missing-field! kSecMatchDiacriticInsensitive not bound
!missing-field! kSecMatchSubjectEndsWith not bound
!missing-field! kSecMatchSubjectStartsWith not bound
!missing-field! kSecMatchSubjectWholeString not bound
!missing-field! kSecMatchWidthInsensitive not bound
!missing-field! kSecPolicyApplePKINITClient not bound
!missing-field! kSecPolicyApplePKINITServer not bound
!missing-field! kSecUseKeychain not bound
!missing-pinvoke! AuthorizationCopyInfo is not bound
!missing-pinvoke! AuthorizationCopyPrivilegedReference is not bound
!missing-pinvoke! AuthorizationCopyRights is not bound
!missing-pinvoke! AuthorizationCopyRightsAsync is not bound
!missing-pinvoke! AuthorizationCreate is not bound
!missing-pinvoke! AuthorizationCreateFromExternalForm is not bound
!missing-pinvoke! AuthorizationExecuteWithPrivileges is not bound
!missing-pinvoke! AuthorizationFree is not bound
!missing-pinvoke! AuthorizationFreeItemSet is not bound
!missing-pinvoke! AuthorizationMakeExternalForm is not bound
!missing-pinvoke! AuthorizationPluginCreate is not bound
!missing-pinvoke! sec_protocol_options_set_peer_authentication_optional is not bound
!missing-pinvoke! SecAsn1AllocCopy is not bound
!missing-pinvoke! SecAsn1AllocCopyItem is not bound
!missing-pinvoke! SecAsn1AllocItem is not bound
!missing-pinvoke! SecAsn1CoderCreate is not bound
!missing-pinvoke! SecAsn1CoderRelease is not bound
!missing-pinvoke! SecAsn1Decode is not bound
!missing-pinvoke! SecAsn1DecodeData is not bound
!missing-pinvoke! SecAsn1EncodeItem is not bound
!missing-pinvoke! SecAsn1Malloc is not bound
!missing-pinvoke! SecAsn1OidCompare is not bound
!missing-pinvoke! SecCodeCheckValidity is not bound
!missing-pinvoke! SecCodeCheckValidityWithErrors is not bound
!missing-pinvoke! SecCodeCopyDesignatedRequirement is not bound
!missing-pinvoke! SecCodeCopyHost is not bound
!missing-pinvoke! SecCodeCopyPath is not bound
!missing-pinvoke! SecCodeCopySelf is not bound
!missing-pinvoke! SecCodeCopySigningInformation is not bound
!missing-pinvoke! SecCodeCopyStaticCode is not bound
!missing-pinvoke! SecCodeGetTypeID is not bound
!missing-pinvoke! SecCodeMapMemory is not bound
!missing-pinvoke! SecRequirementCopyData is not bound
!missing-pinvoke! SecRequirementCopyString is not bound
!missing-pinvoke! SecRequirementCreateWithData is not bound
!missing-pinvoke! SecRequirementCreateWithString is not bound
!missing-pinvoke! SecRequirementCreateWithStringAndErrors is not bound
!missing-pinvoke! SecRequirementGetTypeID is not bound
!missing-pinvoke! SecStaticCodeCheckValidity is not bound
!missing-pinvoke! SecStaticCodeCheckValidityWithErrors is not bound
!missing-pinvoke! SecStaticCodeCreateWithPath is not bound
!missing-pinvoke! SecStaticCodeCreateWithPathAndAttributes is not bound
!missing-pinvoke! SecStaticCodeGetTypeID is not bound
!missing-pinvoke! SecureDownloadCopyCreationDate is not bound
!missing-pinvoke! SecureDownloadCopyName is not bound
!missing-pinvoke! SecureDownloadCopyTicketLocation is not bound
!missing-pinvoke! SecureDownloadCopyURLs is not bound
!missing-pinvoke! SecureDownloadCreateWithTicket is not bound
!missing-pinvoke! SecureDownloadFinished is not bound
!missing-pinvoke! SecureDownloadGetDownloadSize is not bound
!missing-pinvoke! SecureDownloadRelease is not bound
!missing-pinvoke! SecureDownloadUpdateWithData is not bound
!missing-pinvoke! SessionCreate is not bound
!missing-pinvoke! SessionGetInfo is not bound
!missing-pinvoke! sec_protocol_options_get_enable_encrypted_client_hello is not bound
!missing-pinvoke! sec_protocol_options_set_enable_encrypted_client_hello is not bound
## appended from unclassified file
!missing-pinvoke! sec_protocol_options_get_quic_use_legacy_codepoint is not bound
!missing-pinvoke! sec_protocol_options_set_quic_use_legacy_codepoint is not bound
!missing-pinvoke! SecTrustCopyCertificateChain is not bound

Просмотреть файл

@ -1,7 +0,0 @@
!deprecated-attribute-missing! SecKeyDecrypt missing a [Deprecated] attribute
!deprecated-attribute-missing! SecKeyEncrypt missing a [Deprecated] attribute
!deprecated-attribute-missing! SecKeyGeneratePair missing a [Deprecated] attribute
!deprecated-attribute-missing! SecKeyRawSign missing a [Deprecated] attribute
!deprecated-attribute-missing! SecKeyRawVerify missing a [Deprecated] attribute
!deprecated-attribute-missing! SecTrustGetCertificateAtIndex missing a [Deprecated] attribute
!missing-pinvoke! SecTrustCopyCertificateChain is not bound

Просмотреть файл

@ -1 +0,0 @@
!missing-pinvoke! SecTrustCopyCertificateChain is not bound

Просмотреть файл

@ -1,7 +0,0 @@
!deprecated-attribute-missing! SecKeyDecrypt missing a [Deprecated] attribute
!deprecated-attribute-missing! SecKeyEncrypt missing a [Deprecated] attribute
!deprecated-attribute-missing! SecKeyGeneratePair missing a [Deprecated] attribute
!deprecated-attribute-missing! SecKeyRawSign missing a [Deprecated] attribute
!deprecated-attribute-missing! SecKeyRawVerify missing a [Deprecated] attribute
!deprecated-attribute-missing! SecTrustGetCertificateAtIndex missing a [Deprecated] attribute
!missing-pinvoke! SecTrustCopyCertificateChain is not bound

Просмотреть файл

@ -1,7 +0,0 @@
!deprecated-attribute-missing! SecKeyDecrypt missing a [Deprecated] attribute
!deprecated-attribute-missing! SecKeyEncrypt missing a [Deprecated] attribute
!deprecated-attribute-missing! SecKeyGeneratePair missing a [Deprecated] attribute
!deprecated-attribute-missing! SecKeyRawSign missing a [Deprecated] attribute
!deprecated-attribute-missing! SecKeyRawVerify missing a [Deprecated] attribute
!deprecated-attribute-missing! SecTrustGetCertificateAtIndex missing a [Deprecated] attribute
!missing-pinvoke! SecTrustCopyCertificateChain is not bound