- struct oident ent;
- ent.proto = PROTO_Z3950;
- ent.oclass = CLASS_USERINFO;
- ent.value = (oid_value) VAL_COOKIE;
- assert (oid_ent_to_oid (&ent, oid));
-
- if (oid_ent_to_oid (&ent, oid) &&
+ const int *oid = yaz_string_to_oid(yaz_oid_std(),
+ CLASS_USERINFO, OID_STR_COOKIE);
+
+ if (oid &&