• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/Security-57031.1.35/Security/include/security_codesigning/

Lines Matching defs:DiskRep

47 // DiskRep is an abstract interface to code somewhere located by
52 class DiskRep : public RefCount {
59 DiskRep();
60 virtual ~DiskRep();
61 virtual DiskRep *base();
97 // optional information that might be used to create a suitable DiskRep. All optional
108 static DiskRep *bestGuess(const char *path, const Context *ctx = NULL); // canonical heuristic, any path
109 static DiskRep *bestFileGuess(const char *path, const Context *ctx = NULL); // ctx (if any) + fileOnly
110 static DiskRep *bestGuess(const char *path, size_t archOffset); // Mach-O at given file offset only
113 static DiskRep *bestGuess(const std::string &path, const Context *ctx = NULL)
115 static DiskRep *bestGuess(const std::string &path, size_t archOffset) { return bestGuess(path.c_str(), archOffset); }
116 static DiskRep *bestFileGuess(const std::string &path, const Context *ctx = NULL) { return bestFileGuess(path.c_str(), ctx); }
119 // see DiskRep::Writer docs for why this is here
143 // for the signing machinery to place data wherever it should go. Each DiskRep subclass
145 // a subclass of Writer and return an instance in the DiskRep::writer() method when asked.
149 // by DiskRep::writer, and it is unwise to assume so.
151 // Note that the methods that provide defaults for signing operations are in DiskRep rather
153 // of stored data, while DiskRep is virtual on the existing code object, which is where
156 class DiskRep::Writer : public RefCount {
187 // A prefix DiskRep that filters (only) signature-dependent behavior and passes
188 // all code-dependent behavior off to an underlying (different) DiskRep.
189 // FilterRep subclasses are typically "stacked" on top of their base DiskRep, and
192 class FilterRep : public DiskRep {
194 FilterRep(DiskRep *orig) : mOriginal(orig) { }
196 DiskRep *base() { return mOriginal; }
201 // the rest of the virtual behavior devolves on the original DiskRep
227 RefPointer<DiskRep> mOriginal; // underlying representation