[136959] trunk/dports/security/certsync/files/certsync.m

cal at macports.org cal at macports.org
Sun May 31 10:40:48 PDT 2015


Revision: 136959
          https://trac.macports.org/changeset/136959
Author:   cal at macports.org
Date:     2015-05-31 10:40:48 -0700 (Sun, 31 May 2015)
Log Message:
-----------
certsync: unify whitespace, openmaintainer

Modified Paths:
--------------
    trunk/dports/security/certsync/files/certsync.m

Modified: trunk/dports/security/certsync/files/certsync.m
===================================================================
--- trunk/dports/security/certsync/files/certsync.m	2015-05-31 17:38:47 UTC (rev 136958)
+++ trunk/dports/security/certsync/files/certsync.m	2015-05-31 17:40:48 UTC (rev 136959)
@@ -156,33 +156,33 @@
 
     /* Create a new trust evaluation instance */
     SecTrustRef trust;
-	{
-		SecPolicyRef policy;
-		if (&SecPolicyCreateBasicX509 != NULL) /* >= 10.6 */ {
-			policy = SecPolicyCreateBasicX509();
-		} else /* < 10.6 */ {
-			SecPolicySearchRef searchRef = NULL;
-			const CSSM_OID *policyOID = &CSSMOID_APPLE_X509_BASIC;
+    {
+        SecPolicyRef policy;
+        if (&SecPolicyCreateBasicX509 != NULL) /* >= 10.6 */ {
+            policy = SecPolicyCreateBasicX509();
+        } else /* < 10.6 */ {
+            SecPolicySearchRef searchRef = NULL;
+            const CSSM_OID *policyOID = &CSSMOID_APPLE_X509_BASIC;
 
-			if ((err = SecPolicySearchCreate(CSSM_CERT_X_509v3, policyOID, NULL, &searchRef)) != errSecSuccess) {
-				cssmPerror("SecPolicySearchCreate", err);
-				return NO;
-			}
-			if ((err = SecPolicySearchCopyNext(searchRef, &policy))) {
-				cssmPerror("SecPolicySearchCopyNext", err);
-				return NO;
-			}
-		}
+            if ((err = SecPolicySearchCreate(CSSM_CERT_X_509v3, policyOID, NULL, &searchRef)) != errSecSuccess) {
+                cssmPerror("SecPolicySearchCreate", err);
+                return NO;
+            }
+            if ((err = SecPolicySearchCopyNext(searchRef, &policy))) {
+                cssmPerror("SecPolicySearchCopyNext", err);
+                return NO;
+            }
+        }
 
-		if ((err = SecTrustCreateWithCertificates((CFTypeRef) cert, policy, &trust)) != errSecSuccess) {
-			/* Shouldn't happen */
-			nsfprintf(stderr, @"Failed to create SecTrustRef: %d\n", err);
-			CFRelease(policy);
-			return NO;
-		}
+        if ((err = SecTrustCreateWithCertificates((CFTypeRef) cert, policy, &trust)) != errSecSuccess) {
+            /* Shouldn't happen */
+            nsfprintf(stderr, @"Failed to create SecTrustRef: %d\n", err);
+            CFRelease(policy);
+            return NO;
+        }
 
-		CFRelease(policy);
-	}
+        CFRelease(policy);
+    }
 
     /* Allow verifying root certificates (which would otherwise be an error).
      * Without this, intermediates added as roots aren't exported. */
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150531/17b8461e/attachment.html>


More information about the macports-changes mailing list