| /openbsd-src/usr.sbin/snmpd/ |
| H A D | application_internal.c | 38 struct ber_oid oid; member 99 struct ber_oid oid; in appl_internal_init() local 207 oid = obj->oid; in appl_internal_init() 208 oid.bo_id[oid.bo_n++] = 0; in appl_internal_init() 209 if (appl_register(NULL, 150, 1, &oid, in appl_internal_init() 236 appl_internal_region(struct ber_oid *oid) in appl_internal_region() argument 241 error = appl_register(NULL, 150, 1, oid, 0, 1, 0, 0, &appl_internal); in appl_internal_region() 247 fatalx("internal: Failed to register %s", mib_oid2string(oid, in appl_internal_region() 252 appl_internal_object(struct ber_oid *oid, in appl_internal_object() argument 261 obj->oid = *oid; in appl_internal_object() [all …]
|
| H A D | mib.y | 141 struct oid_resolved oid; member 274 struct oid_unresolved oid; member 316 %type <oid> objidcomponentlist objectidentifiervalue 1308 free(iso->oid.bo_id); in mib_clear() 1341 free(item->oid.bo_id); in mib_modulefree() 1399 mib_oid_append(struct oid_unresolved *oid, const struct objidcomponent *subid) in mib_oid_append() argument 1401 if (oid->bo_n == nitems(oid->bo_id)) { in mib_oid_append() 1406 switch (oid->bo_id[oid->bo_n].type = subid->type) { in mib_oid_append() 1408 strlcpy(oid->bo_id[oid->bo_n].name, subid->name, in mib_oid_append() 1409 sizeof(oid->bo_id[oid->bo_n].name)); in mib_oid_append() [all …]
|
| H A D | smi.c | 40 struct oid { struct 47 RB_ENTRY(oid) o_element; argument 48 RB_ENTRY(oid) o_keyword; 51 void smi_mibtree(struct oid *); 52 struct oid *smi_findkey(char *); 53 int smi_oid_cmp(struct oid *, struct oid *); 54 int smi_key_cmp(struct oid *, struct oid *); 56 RB_HEAD(oidtree, oid); 57 RB_PROTOTYPE(oidtree, oid, o_element, smi_oid_cmp); 59 static struct oid smi_objects[] = MIB_TREE; [all …]
|
| H A D | application.c | 243 appl_addagentcaps(const char *ctxname, struct ber_oid *oid, const char *descr, in appl_addagentcaps() argument 253 mib_oid2string(oid, oidbuf, sizeof(oidbuf), snmpd_env->sc_oidfmt); in appl_addagentcaps() 273 cap->aa_oid = *oid; in appl_addagentcaps() 291 appl_removeagentcaps(const char *ctxname, struct ber_oid *oid, in appl_removeagentcaps() argument 302 mib_oid2string(oid, oidbuf, sizeof(oidbuf), snmpd_env->sc_oidfmt); in appl_removeagentcaps() 316 ober_oid_cmp(oid, &(cap->aa_oid)) != 0) in appl_removeagentcaps() 339 appl_sysorlastchange(struct ber_oid *oid) in appl_sysorlastchange() argument 356 appl_sysortable(struct ber_oid *oid) in appl_sysortable() argument 362 if (oid->bo_n != SYSORIDX_POS + 1) in appl_sysortable() 367 if (cap->aa_index == oid->bo_id[SYSORIDX_POS]) in appl_sysortable() [all …]
|
| H A D | ax.c | 503 ax_open(struct ax *ax, uint8_t timeout, struct ax_oid *oid, in ax_open() argument 513 if (ax_pdu_add_oid(ax, oid) == -1) in ax_open() 902 ax_oid2string(struct ax_oid *oid) in ax_oid2string() argument 904 return ax_oidrange2string(oid, 0, 0); in ax_oid2string() 908 ax_oidrange2string(struct ax_oid *oid, uint8_t range_subid, in ax_oidrange2string() argument 918 for (i = 0; i < oid->aoi_idlen; i++) { in ax_oidrange2string() 920 ret = snprintf(p, rest, ".[%u-%u]", oid->aoi_id[i], in ax_oidrange2string() 923 ret = snprintf(p, rest, ".%u", oid->aoi_id[i]); in ax_oidrange2string() 1098 ax_oid_add(struct ax_oid *oid, uint32_t value) in ax_oid_add() argument 1100 if (oid->aoi_idlen == AX_OID_MAX_LEN) in ax_oid_add() [all …]
|
| H A D | traphandler.c | 143 struct ber_oid trapoid, enterprise, oid, snmpTrapAddressOid; in traphandler_v1translate() local 220 if (ober_get_oid(elm->be_sub, &oid) == -1) { in traphandler_v1translate() 225 if (ober_oid_cmp(&oid, &snmpTrapAddressOid) == 0) in traphandler_v1translate() 227 else if (ober_oid_cmp(&oid, &snmpTrapCommunityOid) == 0) in traphandler_v1translate() 229 else if (ober_oid_cmp(&oid, in traphandler_v1translate() 328 struct ber_oid oid; in trapcmd_exec() local 380 if (ober_scanf_elements(vb, "{oeS$}", &oid, &elm) == -1) in trapcmd_exec() 384 smi_oid2string(&oid, oidbuf, sizeof(oidbuf), 0); in trapcmd_exec() 425 trapcmd_lookup(struct ber_oid *oid) in trapcmd_lookup() argument 430 key.cmd_oid = *oid; in trapcmd_lookup()
|
| H A D | parse.y | 107 struct oid_sym oid; member 117 struct oid_sym oid; member 122 struct oid_sym oid; member 159 struct oid_sym oid; member 196 %type <v.oid> oid hostoid trapoid 361 trapcmds[ntrapcmds].oid = $3; 364 | BLOCKLIST oid { 862 | OBJECTID oid { 886 object : OBJECTID oid NAME STRING optwrite { 897 objects[nobjects - 1].oid = $2; [all …]
|
| H A D | trap.c | 44 trap_send(struct ber_oid *oid, struct ber_element *elm) in trap_send() argument 57 mib_oid2string(oid, ostr, sizeof(ostr), snmpd_env->sc_oidfmt); in trap_send() 65 &trapoid, oid); in trap_send() 72 r = ober_oid_cmp(oid, &tr->ta_oid); in trap_send()
|
| /openbsd-src/regress/lib/libcrypto/objects/ |
| H A D | objectstest.c | 60 const char *oid; member 70 .oid = NULL, 76 .oid = "2.5.4.10", 86 .oid = "2.5.4.8", 96 .oid = "2.23.43.1", 105 .oid = "1.3.6.1.4.1.11129.2.4.5", 116 .oid = "1.3.6.1.4.1", 126 .oid = "1.3.6.1.4.1.5454.1.70.6.11.2", 135 .oid = "1.3.6.1.4.1.890.1.5.8.60.102.2", 144 .oid = "1.3.6.1.4.1.173.7.3.4.1.1.26", [all …]
|
| /openbsd-src/usr.bin/ssh/ |
| H A D | gss-genr.c | 61 return (ctx != NULL && ctx->oid != GSS_C_NO_OID && in ssh_gssapi_check_oid() 62 ctx->oid->length == len && in ssh_gssapi_check_oid() 63 memcmp(ctx->oid->elements, data, len) == 0); in ssh_gssapi_check_oid() 70 if (ctx->oid != GSS_C_NO_OID) { in ssh_gssapi_set_oid_data() 71 free(ctx->oid->elements); in ssh_gssapi_set_oid_data() 72 free(ctx->oid); in ssh_gssapi_set_oid_data() 74 ctx->oid = xcalloc(1, sizeof(gss_OID_desc)); in ssh_gssapi_set_oid_data() 75 ctx->oid->length = len; in ssh_gssapi_set_oid_data() 76 ctx->oid->elements = xmalloc(len); in ssh_gssapi_set_oid_data() 77 memcpy(ctx->oid->elements, data, len); in ssh_gssapi_set_oid_data() [all …]
|
| H A D | gss-serv.c | 102 gss_add_oid_set_member(&status, ctx->oid, &oidset); in ssh_gssapi_acquire_cred() 130 ssh_gssapi_server_ctx(Gssctxt **ctx, gss_OID oid) in ssh_gssapi_server_ctx() argument 135 ssh_gssapi_set_oid(*ctx, oid); in ssh_gssapi_server_ctx() 153 &supported_mechs[i]->oid, supported, &present))) in ssh_gssapi_supported_oids() 157 &supported_mechs[i]->oid, oidset); in ssh_gssapi_supported_oids() 281 if (supported_mechs[i]->oid.length == ctx->oid->length && in ssh_gssapi_getclient() 282 (memcmp(supported_mechs[i]->oid.elements, in ssh_gssapi_getclient() 283 ctx->oid->elements, ctx->oid->length) == 0)) in ssh_gssapi_getclient()
|
| /openbsd-src/regress/lib/libcrypto/asn1/ |
| H A D | asn1object.c | 69 const char *oid; member 80 .oid = "2.5", 92 .oid = "2.5.4", 104 .oid = "2.5.4.10", 116 .oid = "2 5 4 10", 128 .oid = "2.5.0.0", 140 .oid = "0.0.0.0", 152 .oid = "1.3.6.1.4.1.11129.2.4.5", 166 .oid = "2.00005.0000000000004.10", 170 .oid = "2..5.4.10", [all …]
|
| H A D | x509_algor.c | 63 ASN1_OBJECT *oid; in x509_algor_set0_test() local 187 if ((oid = OBJ_nid2obj(NID_sha512_224)) == NULL) { in x509_algor_set0_test() 196 if ((ret = X509_ALGOR_set0(alg, oid, V_ASN1_INTEGER, aint)) != 1) { in x509_algor_set0_test() 203 if (alg->algorithm != oid) { in x509_algor_set0_test() 243 ASN1_OBJECT *oid; in x509_algor_get0_test() local 263 if ((oid = OBJ_nid2obj(NID_ED25519)) == NULL) in x509_algor_get0_test() 270 if ((ret = X509_ALGOR_set0(alg, oid, V_ASN1_INTEGER, aint)) != 1) { in x509_algor_get0_test() 279 if (aobj != oid) { in x509_algor_get0_test() 289 pval = oid; in x509_algor_get0_test() 298 pval = oid; in x509_algor_get0_test() [all …]
|
| /openbsd-src/usr.bin/snmp/ |
| H A D | smi.c | 44 int smi_oid_cmp(struct oid *, struct oid *); 45 int smi_key_cmp(struct oid *, struct oid *); 47 struct oid * smi_findkey(char *); 49 RB_HEAD(oidtree, oid); 50 RB_PROTOTYPE(oidtree, oid, o_element, smi_oid_cmp) 53 RB_HEAD(keytree, oid); 54 RB_PROTOTYPE(keytree, oid, o_keyword, smi_key_cmp) 243 smi_print_element(struct ber_oid *oid, struct ber_element *root, int print_hint, in smi_print_element() argument 247 struct oid okey; in smi_print_element() 248 struct oid *object = NULL; in smi_print_element() [all …]
|
| H A D | snmpc.c | 526 struct ber_oid *oid; in snmpc_get() local 548 oid = reallocarray(NULL, argc, sizeof(*oid)); in snmpc_get() 549 if (oid == NULL) in snmpc_get() 552 if (smi_string2oid(argv[i], &oid[i]) == -1) in snmpc_get() 556 if ((pdu = snmp_getnext(agent, oid, argc)) == NULL) in snmpc_get() 563 if ((pdu = snmp_getbulk(agent, oid, argc, non_repeaters, in snmpc_get() 567 if ((pdu = snmp_get(agent, oid, argc)) == NULL) in snmpc_get() 594 struct ber_oid oid, loid, noid; in snmpc_walk() local 618 if (smi_string2oid(oids, &oid) == -1) in snmpc_walk() 620 bcopy(&oid, &noid, sizeof(noid)); in snmpc_walk() [all …]
|
| H A D | smi.h | 57 struct oid { struct 66 RB_ENTRY(oid) o_element; argument 67 RB_ENTRY(oid) o_keyword; 87 void smi_mibtree(struct oid *); 89 struct oid *smi_foreach(struct oid *);
|
| /openbsd-src/usr.sbin/ldapd/ |
| H A D | schema.c | 35 return strcasecmp(a->oid, b->oid); in attr_oid_cmp() 41 return strcasecmp(a->oid, b->oid); in obj_oid_cmp() 80 lookup_attribute_by_oid(struct schema *schema, char *oid) in lookup_attribute_by_oid() argument 84 find.oid = oid; in lookup_attribute_by_oid() 97 lookup_object_by_oid(struct schema *schema, char *oid) in lookup_object_by_oid() argument 101 find.oid = oid; in lookup_object_by_oid() 139 char *colon, *oid; in lookup_symbolic_oid() local 157 return strdup(symoid->oid); in lookup_symbolic_oid() 160 sz = strlen(symoid->oid) + 1 + strlen(colon + 1) + 1; in lookup_symbolic_oid() 161 if ((oid = malloc(sz)) == NULL) { in lookup_symbolic_oid() [all …]
|
| H A D | schema.h | 23 (obj)->oid) 47 char *oid; member 55 char *oid; member 65 char *oid; member 103 char *oid; member 131 char *oid; member 164 struct attr_type *lookup_attribute_by_oid(struct schema *schema, char *oid); 167 struct object *lookup_object_by_oid(struct schema *schema, char *oid); 174 const struct syntax *syntax_lookup(const char *oid); 179 const struct match_rule *match_rule_lookup(const char *oid);
|
| /openbsd-src/usr.sbin/tcpdump/ |
| H A D | makemib | 67 oid["iso"]=1 132 if (oid[parent] == 0) { 138 if (oid[new] > 0 && oid[new] != value) { 140 parent, new, value, oid[new] 146 if (oid[sib] == value) { 154 oid[new]=value 181 item, item, oid[item], c, s
|
| /openbsd-src/usr.sbin/rpki-client/ |
| H A D | x509.c | 50 const char *oid; member 54 .oid = "1.3.6.1.5.5.7.14.2", 58 .oid = "1.3.6.1.5.5.7.48.5", 62 .oid = "1.3.6.1.5.5.7.48.10", 66 .oid = "1.3.6.1.5.5.7.48.11", 70 .oid = "1.3.6.1.5.5.7.48.13", 74 .oid = "1.2.840.113549.1.9.16.1.24", 78 .oid = "1.2.840.113549.1.9.16.1.26", 82 .oid = "1.2.840.113549.1.9.16.1.35", 86 .oid 572 ASN1_OBJECT *oid; x509_get_sia() local [all...] |
| H A D | cms.c | 93 size_t len, const ASN1_OBJECT *oid, BIO *bio, unsigned char **res, in cms_parse_validate_internal() argument 278 if (OBJ_cmp(obj, oid) != 0) { in cms_parse_validate_internal() 280 OBJ_obj2txt(obuf, sizeof(obuf), oid, 1); in cms_parse_validate_internal() 377 * The eContentType of the message must be an oid object. 382 size_t derlen, const ASN1_OBJECT *oid, size_t *rsz, time_t *st) in cms_parse_validate() 386 if (!cms_parse_validate_internal(xp, fn, der, derlen, oid, NULL, &res, in cms_parse_validate() 400 size_t derlen, const ASN1_OBJECT *oid, BIO *bio, time_t *st) in cms_parse_validate_detached() 402 return cms_parse_validate_internal(xp, fn, der, derlen, oid, bio, NULL, in cms_parse_validate_detached() 381 cms_parse_validate(X509 ** xp,const char * fn,const unsigned char * der,size_t derlen,const ASN1_OBJECT * oid,size_t * rsz,time_t * st) cms_parse_validate() argument 399 cms_parse_validate_detached(X509 ** xp,const char * fn,const unsigned char * der,size_t derlen,const ASN1_OBJECT * oid,BIO * bio,time_t * st) cms_parse_validate_detached() argument
|
| /openbsd-src/lib/libagentx/ |
| H A D | ax.c | 401 ax_open(struct ax *ax, uint8_t timeout, struct ax_oid *oid, in ax_open() argument 411 if (ax_pdu_add_oid(ax, oid, 0) == -1) in ax_open() 751 ax_oid2string(struct ax_oid *oid) in ax_oid2string() argument 753 return ax_oidrange2string(oid, 0, 0); in ax_oid2string() 757 ax_oidrange2string(struct ax_oid *oid, uint8_t range_subid, in ax_oidrange2string() argument 767 if (oid->aoi_idlen == 0) in ax_oidrange2string() 769 for (i = 0; i < oid->aoi_idlen; i++) { in ax_oidrange2string() 771 ret = snprintf(p, rest, ".[%u-%u]", oid->aoi_id[i], in ax_oidrange2string() 774 ret = snprintf(p, rest, ".%u", oid->aoi_id[i]); in ax_oidrange2string() 949 ax_oid_add(struct ax_oid *oid, uint32_t value) in ax_oid_add() argument [all …]
|
| H A D | agentx.c | 385 agentx_session(struct agentx *ax, uint32_t oid[], in agentx_session() argument 400 if (agentx_oidfill((&axs->axs_oid), oid, oidlen, in agentx_session() 745 const uint32_t oid[], size_t oidlen, int active, int instance) in agentx_context_object_find() argument 750 if (agentx_oidfill(&(axo_search.axo_oid), oid, oidlen, &errstr) == -1) { in agentx_context_object_find() 760 axo_search.axo_oid.aoi_id[0] = oid[0]; in agentx_context_object_find() 776 const uint32_t oid[], size_t oidlen, int active, int inclusive) 781 if (agentx_oidfill(&(axo_search.axo_oid), oid, oidlen, &errstr) == -1) { 791 axo_search.axo_oid.aoi_id[0] = oid[0]; 879 agentx_agentcaps(struct agentx_context *axc, uint32_t oid[], 892 if (agentx_oidfill(&(axa->axa_oid), oid, oidlen, &errstr) == -1) { [all …]
|
| /openbsd-src/regress/usr.sbin/snmpd/ |
| H A D | regress.h | 6 struct oid { struct 13 struct oid start; argument 14 struct oid end; 88 struct oid name; 93 struct oid oid; member 120 int oid_cmp(struct oid *, struct oid *); 121 char *oid_print(struct oid *, char *, size_t); 123 #define OID_STRUCT(...) (struct oid){ \
|
| H A D | snmpd_regress.c | 290 oid_cmp(struct oid *a, struct oid *b) in oid_cmp() 311 oid_print(struct oid *oid, char *buf, size_t len) in oid_print() argument 317 for (i = 0; i < oid->n_subid; i++) { in oid_print() 318 snprintf(digit, sizeof(digit), "%"PRIu32, oid->subid[i]); in oid_print() 323 if (oid->include) { in oid_print() 325 snprintf(digit, sizeof(digit), "(%d)", oid->include); in oid_print()
|