Modified: trunk/dports/security/certsync/files/compat.h (124891 => 124892)
--- trunk/dports/security/certsync/files/compat.h 2014-08-30 10:49:53 UTC (rev 124891)
+++ trunk/dports/security/certsync/files/compat.h 2014-08-30 10:50:41 UTC (rev 124892)
@@ -16,7 +16,7 @@
/*
* Weak Linking Note:
- *
+ *
* Correctly linking against weak symbols relies on actually having
* the symbol available at link time, such that dyld can create its two-level
* weak reference.
@@ -25,7 +25,7 @@
* are not available at all, we #define the functions to NULL (with appropriate
* function typedefs), allowing the standard approach of checking for
* symbol != NULL to succeed.
- */
+ */
/* Allow building with SDKs <= 10.4 */
#if MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_4
@@ -36,7 +36,7 @@
kSecTrustSettingsDomainSystem
};
typedef uint32_t SecTrustSettingsDomain;
-
+
enum {
kSecTrustSettingsResultInvalid = 0,
kSecTrustSettingsResultTrustRoot,
@@ -46,11 +46,11 @@
};
typedef uint32_t SecTrustSettingsResult;
#define kSecTrustSettingsResult CFSTR("kSecTrustSettingsResult")
-
+
/* SecCertificateCopyCommonName() was added in 10.5 */
extern OSStatus SecCertificateCopyCommonName (SecCertificateRef certificate, CFStringRef *commonName) __attribute__((weak_import));
#define SecCertificateCopyCommonName ((OSStatus(*)(SecCertificateRef, CFStringRef *)) NULL) /* We can't safely weak-link what we don't have */
-
+
/* SecTrustSettingsCopyCertificates() was added in 10.5 */
extern OSStatus SecTrustSettingsCopyCertificates (SecTrustSettingsDomain domain, CFArrayRef *certArray) __attribute__((weak_import));
#define SecTrustSettingsCopyCertificates ((OSStatus(*)(SecTrustSettingsDomain, CFArrayRef *)) NULL) /* We can't safely weak-link what we don't have */
@@ -61,10 +61,10 @@
extern CFStringRef SecCopyErrorMessageString (OSStatus status, void *reserved) __attribute__((weak_import));
#define SecCopyErrorMessageString ((CFStringRef(*)(OSStatus, void *)) NULL) /* We can't safely weak-link what we don't have */
-
+
/* CFError was added in 10.5 */
typedef CFTypeRef CFErrorRef;
-
+
/* errSecNoTrustSettings was added in 10.5 */
#define errSecNoTrustSettings -25263
#endif
@@ -77,7 +77,7 @@
/* NSDataWritingAtomic was not defined until 10.6, but it has an identical
* value as the now-deprecated NSDataWritingAtomic */
#define NSDataWritingAtomic NSAtomicWrite
-
+
/* SecCertificateCopySubjectSummary() was added in 10.6 */
extern CFStringRef SecCertificateCopySubjectSummary (SecCertificateRef certificate) __attribute__((weak_import));
#define SecCertificateCopySubjectSummary ((CFStringRef(*)(SecCertificateRef)) NULL) /* We can't safely weak-link what we don't have */
@@ -104,7 +104,7 @@
CFArrayRef keyUsage;
CFArrayRef keyAttributes;
} SecItemImportExportKeyParameters;
-
+
extern OSStatus SecItemExport (
CFTypeRef secItemOrArray,
SecExternalFormat outputFormat,