]> git.saurik.com Git - apple/libsecurity_codesigning.git/blobdiff - lib/reqreader.cpp
libsecurity_codesigning-55032.tar.gz
[apple/libsecurity_codesigning.git] / lib / reqreader.cpp
index 066517f78c00af28c6e1d46748fdad89db39a42e..8c79912b186ef2af05a312eaae81c78da082cc07 100644 (file)
@@ -40,6 +40,9 @@ namespace CodeSigning {
 Requirement::Reader::Reader(const Requirement *req)
        : mReq(req), mPC(sizeof(Requirement))
 {
+       assert(req);
+       if (req->kind() != exprForm)
+               MacOSError::throwMe(errSecCSReqUnsupported);
 }