X-Git-Url: https://git.saurik.com/apple/libsecurity_codesigning.git/blobdiff_plain/7d31e9289af373b98c8a36838bd41fab5ad01b44..62e4ed3d0d61a2fda33f692a7b54cddd91096187:/lib/reqmaker.cpp diff --git a/lib/reqmaker.cpp b/lib/reqmaker.cpp index e4cd628..31642a9 100644 --- a/lib/reqmaker.cpp +++ b/lib/reqmaker.cpp @@ -84,6 +84,11 @@ void Requirement::Maker::anchor() put(opAppleAnchor); } +void Requirement::Maker::anchorGeneric() +{ + put(opAppleGenericAnchor); +} + void Requirement::Maker::anchor(int slot, SHA1::Digest digest) { put(opAnchorHash); @@ -131,6 +136,16 @@ void Requirement::Maker::cdhash(SHA1::Digest digest) } + +void Requirement::Maker::copy(const Requirement *req) +{ + assert(req); + if (req->kind() != exprForm) // don't know how to embed this + MacOSError::throwMe(errSecCSReqUnsupported); + this->copy(req->at(sizeof(Requirement)), req->length() - sizeof(Requirement)); +} + + void *Requirement::Maker::insert(const Label &label, size_t length) { require(length);