Skip to content

Security macOS xcode26.0 b1

Alex Soto edited this page Jun 9, 2025 · 2 revisions

#Security.framework

diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecBase.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecBase.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecBase.h	2025-04-21 00:30:49
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecBase.h	2025-05-30 23:01:57
@@ -70,6 +70,12 @@
 
 #define CSSM_DEPRECATED API_DEPRECATED("CSSM is not supported", macos(10.0, 10.7)) API_UNAVAILABLE(ios, watchos, tvos, macCatalyst)
 
+#if __has_attribute(swift_attr)
+#define SEC_SWIFT_SENDABLE __attribute__((swift_attr("@Sendable")))
+#else
+#define SEC_SWIFT_SENDABLE
+#endif
+
 __BEGIN_DECLS
 
 CF_ASSUME_NONNULL_BEGIN
@@ -82,7 +88,7 @@
     @abstract CFType representing a X.509 certificate.
     See SecCertificate.h for details.
 */
-typedef struct CF_BRIDGED_TYPE(id) __SecCertificate *SecCertificateRef;
+SEC_SWIFT_SENDABLE typedef struct CF_BRIDGED_TYPE(id) __SecCertificate *SecCertificateRef;
 
 #if TARGET_OS_OSX
 typedef struct __SecCertificate OpaqueSecCertificateRef;
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecCode.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecCode.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecCode.h	2025-04-19 00:58:08
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecCode.h	2025-05-30 22:38:15
@@ -381,7 +381,7 @@
 		contents making up the signed code on disk. It is not generally advisable to
 		make use of this information, but some utilities (such as software-update
 		tools) may find it useful.
-	
+ 
 	Dictionary keys:
 
 	@constant kSecCodeInfoCertificates A CFArray of SecCertificates identifying the
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecTask.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecTask.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecTask.h	2025-04-19 00:58:08
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework/Headers/SecTask.h	2025-05-30 22:38:16
@@ -69,7 +69,6 @@
     @abstract Create a SecTask object for the current task.
     @result The newly created SecTask object or NULL on error.  The caller must
     CFRelease the returned object.
-#ifndef LEFT
 */
 __nullable
 SecTaskRef SecTaskCreateFromSelf(CFAllocatorRef __nullable allocator);

Clone this wiki locally