#include "filediskrep.h"
#include "bundlediskrep.h"
#include "slcrep.h"
+#include "diskimagerep.h"
namespace Security {
AutoFileDesc fd(path, O_RDONLY);
if (MachORep::candidate(fd))
return new MachORep(path, ctx);
+ if (DiskImageRep::candidate(fd))
+ return new DiskImageRep(path);
if (DYLDCacheRep::candidate(fd))
return new DYLDCacheRep(path);
{
// do nothing
}
+
+void DiskRep::prepareForSigning(SigningContext &state)
+{
+ // do nothing
+}
Universal *DiskRep::mainExecutableImage()
{
}
-void DiskRep::strictValidate(const CodeDirectory*, const ToleratedErrors&)
+void DiskRep::strictValidate(const CodeDirectory*, const ToleratedErrors& tolerated, SecCSFlags flags)
{
- // do nothing
+ if (flags & kSecCSRestrictToAppLike)
+ if (tolerated.find(errSecCSNotAppLike) == tolerated.end())
+ MacOSError::throwMe(errSecCSNotAppLike);
}
CFArrayRef DiskRep::allowedResourceOmissions()