]> git.saurik.com Git - apple/security.git/blobdiff - OSX/libsecurity_ssl/lib/sslContext.c
Security-59754.80.3.tar.gz
[apple/security.git] / OSX / libsecurity_ssl / lib / sslContext.c
index fc1826feb498ef885f4980884d2c4e133d3f3cb4..26e01a85e2aa9a1f934bcf46422061730a1231e9 100644 (file)
@@ -2246,21 +2246,23 @@ SSLCopyPeerTrust(
     SSLContextRef              ctx,
     SecTrustRef        *trust) /* RETURNED */
 {
     SSLContextRef              ctx,
     SecTrustRef        *trust) /* RETURNED */
 {
-       OSStatus status = errSecSuccess;
-       if (ctx == NULL || trust == NULL)
-               return errSecParam;
+    OSStatus status = errSecSuccess;
+    if (ctx == NULL || trust == NULL) {
+        return errSecParam;
+    }
 
 
-       /* Create a SecTrustRef if this was a resumed session and we
-          didn't have one yet. */
-       if (!ctx->peerSecTrust) {
-               status = sslCreateSecTrust(ctx, &ctx->peerSecTrust);
+    /* Create a SecTrustRef if this was a resumed session and we
+     didn't have one yet. */
+    if (!ctx->peerSecTrust) {
+        status = sslCreateSecTrust(ctx, &ctx->peerSecTrust);
     }
 
     }
 
-       *trust = ctx->peerSecTrust;
-    if (ctx->peerSecTrust)
+    *trust = ctx->peerSecTrust;
+    if (ctx->peerSecTrust) {
         CFRetain(ctx->peerSecTrust);
         CFRetain(ctx->peerSecTrust);
+    }
 
 
-       return status;
+    return status;
 }
 
 OSStatus SSLGetPeerSecTrust(
 }
 
 OSStatus SSLGetPeerSecTrust(