]> git.saurik.com Git - apple/security.git/blobdiff - sec/Security/SecFramework.h
Security-55471.14.18.tar.gz
[apple/security.git] / sec / Security / SecFramework.h
index bfba8ee9491bb5943d28299f3026290cd1311f79..6b1f6e0e333db519e16747b43c086733f885571e 100644 (file)
@@ -34,9 +34,7 @@
 #include <CoreFoundation/CFURL.h>
 #include <Security/SecAsn1Types.h>
 
-#if defined(__cplusplus)
-extern "C" {
-#endif
+__BEGIN_DECLS
 
 #define SecString(key, comment)  CFSTR(key)
 #define SecStringFromTable(key, tbl, comment)  CFSTR(key)
@@ -61,8 +59,9 @@ CFDataRef SecDigestCreate(CFAllocatorRef allocator,
     const SecAsn1Oid *algorithm, const SecAsn1Item *params,
        const UInt8 *data, CFIndex length);
 
-#if defined(__cplusplus)
-}
-#endif
+// Wrapper to provide a CFErrorRef for legacy API.
+OSStatus SecOSStatusWith(bool (^perform)(CFErrorRef *error));
+
+__END_DECLS
 
 #endif /* !_SECURITY_SECFRAMEWORK_H_ */