Lines Matching +defs:type +defs:prefix +defs:key
58 static const char *matchPrefix(const string &key, const char *prefix)
60 size_t pLength = strlen(prefix);
61 if (!key.compare(0, pLength, prefix, 0, pLength))
62 return key.c_str() + pLength;
67 void RequirementParser::certMatchOperation(Maker &maker, int32_t slot, string key)
69 if (matchPrefix(key, "subject.")) {
72 maker.put(key);
73 } else if (const char *oids = matchPrefix(key, "field.")) {
78 } else if (const char *oids = matchPrefix(key, "extension.")) {
83 } else if (const char *oids = matchPrefix(key, "policy.")) {
89 throw antlr::SemanticException(key + ": unrecognized certificate field");
211 uint32_t type = kSecInvalidRequirementType;
219 type = kSecGuestRequirementType;
225 type = kSecHostRequirementType;
231 type = kSecDesignatedRequirementType;
237 type = kSecLibraryRequirementType;
243 type = kSecPluginRequirementType;
250 type = (uint32_t)atol(stype->getText().c_str());
263 return type;
588 string key;
592 key=bracketKey();
593 maker.put(opInfoKeyField); maker.put(key);
605 string key;
609 key=bracketKey();
610 maker.put(opEntitlementField); maker.put(key);
801 string key;
820 key=bracketKey();
821 certMatchOperation(maker, slot, key);
884 string key;
888 key=stringvalue();
895 return key;