]> git.saurik.com Git - apple/security.git/blobdiff - libsecurity_codesigning/lib/sigblob.cpp
Security-55471.14.tar.gz
[apple/security.git] / libsecurity_codesigning / lib / sigblob.cpp
index 95ad32dccd6f24d7a2167189f2553fbf015c09e0..a82a65485300b6862a8f99f4ab82195e608c5c01 100644 (file)
@@ -34,13 +34,15 @@ namespace CodeSigning {
 
 CFDataRef EmbeddedSignatureBlob::component(CodeDirectory::SpecialSlot slot) const
 {
 
 CFDataRef EmbeddedSignatureBlob::component(CodeDirectory::SpecialSlot slot) const
 {
-       if (const BlobCore *blob = this->find(slot))
-               if (CodeDirectory::slotAttributes(slot) & cdComponentIsBlob)
+       if (const BlobCore *blob = this->find(slot)) {
+               if (CodeDirectory::slotAttributes(slot) & cdComponentIsBlob) {
                        return makeCFData(*blob);       // is a native Blob
                        return makeCFData(*blob);       // is a native Blob
-               else if (const BlobWrapper *wrap = BlobWrapper::specific(blob))
+               } else if (const BlobWrapper *wrap = BlobWrapper::specific(blob)) {
                        return makeCFData(*wrap);
                        return makeCFData(*wrap);
-               else
+               } else {
                        MacOSError::throwMe(errSecCSSignatureInvalid);
                        MacOSError::throwMe(errSecCSSignatureInvalid);
+               }
+       }
        return NULL;
 }
 
        return NULL;
 }