Bug 52505 - [Binding] xcode8.3 Security APIs
Summary: [Binding] xcode8.3 Security APIs
Status: RESOLVED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: XI 10.5.99 (Xcode 8.3 previews)
Hardware: PC Mac OS
: --- normal
Target Milestone: Xcode 8.3 (iOS 10.3)
Assignee: Sebastien Pouliot
URL:
Depends on:
Blocks:
 
Reported: 2017-02-14 15:27 UTC by Sebastien Pouliot
Modified: 2017-02-15 14:20 UTC (History)
4 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Sebastien Pouliot 2017-02-14 15:27:14 UTC
The shared API are bound (beta1) but there are blocks of

> #if SEC_OS_OSX_INCLUDES
> ...
> #endif // SEC_OS_OSX_INCLUDES

That seems to include new (or not so new, lot of noise in the diff) API that are specific to macOS.

I'll diff between xtro results (master vs xcode8.3) to see if those are really new (or even missing).
Comment 1 Sebastien Pouliot 2017-02-14 21:07:56 UTC
Interesting, it seems there's no new API in macOS. In fact the removal of the shuffling/noise by xtro seems to indicate that


1. a few (missing macOS API) are now available on iOS

common.unclassified diff
+!missing-pinvoke! SecCertificateCopyCommonName is not bound
+!missing-pinvoke! SecCertificateCopyEmailAddresses is not bound
+!missing-pinvoke! SecCertificateCopyNormalizedIssuerSequence is not bound
+!missing-pinvoke! SecCertificateCopyNormalizedSubjectSequence is not bound
+!missing-pinvoke! SecCertificateCopyPublicKey is not bound
+!missing-pinvoke! SecCertificateCopySerialNumber is not bound


2. while the number of previously missing macOS API was only reduced

osx.unclassified diff
 @@ -3124,8 +3250,6 @@
 !missing-field! kSecAsn1UnsignedIntegerTemplate not bound
 !missing-field! kSecAsn1VisibleStringTemplate not bound
 !missing-field! kSecAttrAccess not bound
-!missing-field! kSecAttrIsExtractable not bound
-!missing-field! kSecAttrIsSensitive not bound
 !missing-field! kSecAttrKeyType3DES not bound
 !missing-field! kSecAttrKeyTypeAES not bound
 !missing-field! kSecAttrKeyTypeCAST not bound
@@ -8024,17 +8148,11 @@
 !missing-pinvoke! SecAsn1Malloc is not bound
 !missing-pinvoke! SecAsn1OidCompare is not bound
 !missing-pinvoke! SecCertificateAddToKeychain is not bound
-!missing-pinvoke! SecCertificateCopyCommonName is not bound
-!missing-pinvoke! SecCertificateCopyEmailAddresses is not bound
 !missing-pinvoke! SecCertificateCopyLongDescription is not bound
 !missing-pinvoke! SecCertificateCopyNormalizedIssuerContent is not bound
-!missing-pinvoke! SecCertificateCopyNormalizedIssuerSequence is not bound
 !missing-pinvoke! SecCertificateCopyNormalizedSubjectContent is not bound
-!missing-pinvoke! SecCertificateCopyNormalizedSubjectSequence is not bound
 !missing-pinvoke! SecCertificateCopyPreference is not bound
 !missing-pinvoke! SecCertificateCopyPreferred is not bound
-!missing-pinvoke! SecCertificateCopyPublicKey is not bound
-!missing-pinvoke! SecCertificateCopySerialNumber is not bound
 !missing-pinvoke! SecCertificateCopyShortDescription is not bound
 !missing-pinvoke! SecCertificateCreateFromData is not bound
 !missing-pinvoke! SecCertificateGetAlgorithmID is not bound


I'll double check the headers (since it seems they confused me the first time) and move the bug to XI if this is right.

Note: there's still missing Sec* API for macOS but just not from xcode8.3
Comment 2 Sebastien Pouliot 2017-02-14 21:13:23 UTC
Yes, I was thrown off by the diff colours it seems :)
Comment 3 Sebastien Pouliot 2017-02-15 03:28:58 UTC
PR xcode8.3 https://github.com/xamarin/xamarin-macios/pull/1695