]> git.saurik.com Git - apple/libsecurity_codesigning.git/blobdiff - lib/reqmaker.cpp
libsecurity_codesigning-55032.tar.gz
[apple/libsecurity_codesigning.git] / lib / reqmaker.cpp
index e4cd62835bbc7cc654140fc40220570eeb0da008..31642a9429c066c457c3fb27c0d6ad3113d22d0a 100644 (file)
@@ -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<const void>(sizeof(Requirement)), req->length() - sizeof(Requirement));
+}
+
+
 void *Requirement::Maker::insert(const Label &label, size_t length)
 {
        require(length);