Searched refs:oid (Results 1 - 25 of 180) sorted by relevance

12345678

/freebsd-9.3-release/lib/libc/gen/
H A Dsysctlnametomib.c45 int oid[2]; local
48 oid[0] = 0;
49 oid[1] = 3;
52 error = sysctl(oid, 2, mibp, sizep, name, strlen(name));
H A D__getosreldate.c52 int oid[2]; local
62 oid[0] = CTL_KERN;
63 oid[1] = KERN_OSRELDATE;
66 error = sysctl(oid, 2, &osrel, &len, NULL, 0);
/freebsd-9.3-release/contrib/wpa/src/tls/
H A Dasn1.c85 int asn1_parse_oid(const u8 *buf, size_t len, struct asn1_oid *oid) argument
91 os_memset(oid, 0, sizeof(*oid));
106 if (oid->len >= ASN1_MAX_OID_LEN) {
110 if (oid->len == 0) {
116 oid->oid[0] = val / 40;
117 if (oid->oid[0] > 2)
118 oid
129 asn1_get_oid(const u8 *buf, size_t len, struct asn1_oid *oid, const u8 **next) argument
149 asn1_oid_to_str(struct asn1_oid *oid, char *buf, size_t len) argument
[all...]
H A Dpkcs8.c30 struct asn1_oid oid; local
87 if (asn1_get_oid(hdr.payload, hdr.length, &oid, &pos)) {
93 asn1_oid_to_str(&oid, obuf, sizeof(obuf));
96 if (oid.len != 7 ||
97 oid.oid[0] != 1 /* iso */ ||
98 oid.oid[1] != 2 /* member-body */ ||
99 oid.oid[
[all...]
H A Dx509v3.c216 if (asn1_get_oid(pos, end - pos, &id->oid, &pos))
303 struct asn1_oid oid; local
362 if (asn1_get_oid(seq_pos, seq_end - seq_pos, &oid, &seq_pos)) {
384 if (oid.len == 4 &&
385 oid.oid[0] == 2 && oid.oid[1] == 5 && oid.oid[
721 x509_id_ce_oid(struct asn1_oid *oid) argument
1084 x509_parse_extension_data(struct x509_certificate *cert, struct asn1_oid *oid, const u8 *pos, size_t len) argument
1118 struct asn1_oid oid; local
1419 x509_rsadsi_oid(struct asn1_oid *oid) argument
1429 x509_pkcs_oid(struct asn1_oid *oid) argument
1437 x509_digest_oid(struct asn1_oid *oid) argument
1445 x509_sha1_oid(struct asn1_oid *oid) argument
1457 x509_sha256_oid(struct asn1_oid *oid) argument
1595 struct asn1_oid oid; local
[all...]
H A Dpkcs5.c35 enum pkcs5_alg pkcs5_get_alg(struct asn1_oid *oid) argument
37 if (oid->len == 7 &&
38 oid->oid[0] == 1 /* iso */ &&
39 oid->oid[1] == 2 /* member-body */ &&
40 oid->oid[2] == 840 /* us */ &&
41 oid->oid[
56 struct asn1_oid oid; local
[all...]
H A Dasn1.h60 unsigned long oid[ASN1_MAX_OID_LEN]; member in struct:asn1_oid
66 int asn1_parse_oid(const u8 *buf, size_t len, struct asn1_oid *oid);
67 int asn1_get_oid(const u8 *buf, size_t len, struct asn1_oid *oid,
69 void asn1_oid_to_str(struct asn1_oid *oid, char *buf, size_t len);
/freebsd-9.3-release/lib/libgssapi/
H A Dgss_release_oid.c41 gss_release_oid(OM_uint32 *minor_status, gss_OID *oid) argument
43 gss_OID o = *oid;
45 *oid = GSS_C_NO_OID;
H A Dgss_encapsulate_token.c36 gss_encapsulate_token(const gss_buffer_t input_token, gss_OID oid, argument
63 * needed for the encapsulated oid plus the length of
66 if (oid->length > 127)
69 inside_len = 2 + oid->length + input_token->length;
107 *p++ = oid->length;
110 memcpy(p, oid->elements, oid->length);
111 p += oid->length;
113 len += oid->length;
H A Dgss_utils.c70 _gss_free_oid(OM_uint32 *minor_status, gss_OID oid) argument
74 if (oid->elements) {
75 free(oid->elements);
76 oid->elements = NULL;
77 oid->length = 0;
H A Dgss_oid_to_str.c44 gss_oid_to_str(OM_uint32 *minor_status, gss_OID oid, gss_buffer_t oid_str) argument
57 if (oid == GSS_C_NULL_OID)
66 cp = (unsigned char *) oid->elements;
72 for (i=1; i<oid->length; i++) {
101 cp = (unsigned char *) oid->elements;
102 for (i=1; i<oid->length; i++) {
/freebsd-9.3-release/tools/regression/security/cap_test/
H A Dcap_test_sysctl.c57 int i, oid[2]; local
61 oid[0] = CTL_KERN;
62 oid[1] = KERN_OSRELDATE;
64 CHECK(sysctl(oid, 2, &i, &len, NULL, 0) == 0);
/freebsd-9.3-release/contrib/bsnmp/snmpd/
H A Dexport.c203 * Save the old value in a fresh allocated oid pointed to by scratch->ptr1.
207 struct asn_oid *oid)
211 *(struct asn_oid *)ctx->scratch->ptr1 = *oid;
212 *oid = value->v.oid;
218 oid_rollback(struct snmp_context *ctx, struct asn_oid *oid) argument
220 *oid = *(struct asn_oid *)ctx->scratch->ptr1;
231 oid_get(struct snmp_value *value, const struct asn_oid *oid) argument
233 value->v.oid = *oid;
206 oid_save(struct snmp_value *value, struct snmp_context *ctx, struct asn_oid *oid) argument
241 index_decode(const struct asn_oid *oid, u_int sub, u_int code, ...) argument
356 index_compare_off(const struct asn_oid *oid, u_int sub, const struct asn_oid *idx, u_int off) argument
376 index_compare(const struct asn_oid *oid, u_int sub, const struct asn_oid *idx) argument
[all...]
/freebsd-9.3-release/crypto/openssh/
H A Dgss-genr.c52 return (ctx != NULL && ctx->oid != GSS_C_NO_OID &&
53 ctx->oid->length == len &&
54 memcmp(ctx->oid->elements, data, len) == 0);
61 if (ctx->oid != GSS_C_NO_OID) {
62 free(ctx->oid->elements);
63 free(ctx->oid);
65 ctx->oid = xcalloc(1, sizeof(gss_OID_desc));
66 ctx->oid->length = len;
67 ctx->oid->elements = xmalloc(len);
68 memcpy(ctx->oid
73 ssh_gssapi_set_oid(Gssctxt *ctx, gss_OID oid) argument
252 ssh_gssapi_check_mechanism(Gssctxt **ctx, gss_OID oid, const char *host) argument
[all...]
/freebsd-9.3-release/tools/tools/iwi/
H A Diwistats.c115 char oid[32]; local
123 (void)snprintf(oid, sizeof(oid), "dev.iwi.%u.stats", ifaceno);
124 if (sysctlbyname(oid, stats, &len, NULL, 0) == -1)
/freebsd-9.3-release/sys/cam/scsi/
H A Dscsi_enc_safte.c363 int oid, r, i, nitems; local
373 oid = r = 0;
384 cache->elm_map[oid].encstat[1] = 0; /* resvd */
385 cache->elm_map[oid].encstat[2] = 0; /* resvd */
387 cache->elm_map[oid].encstat[3] |= 0x40;
389 cache->elm_map[oid].encstat[3] &= ~0x40;
393 cache->elm_map[oid].encstat[0] = SES_OBJSTAT_OK;
394 if ((cache->elm_map[oid].encstat[3] & 0x37) == 0)
395 cache->elm_map[oid].encstat[3] |= 0x27;
399 cache->elm_map[oid]
673 int oid, r, i; local
[all...]
/freebsd-9.3-release/sys/rpc/rpcsec_gss/
H A Drpcsec_gss_conf.c45 gss_OID oid = kgss_find_mech_by_name(mech); local
47 if (oid) {
48 *oid_ret = oid;
56 rpc_gss_oid_to_mech(gss_OID oid, const char **mech_ret) argument
58 const char *name = kgss_find_mech_by_oid(oid);
156 gss_OID oid = kgss_find_mech_by_name(mech); local
158 if (oid)
/freebsd-9.3-release/usr.sbin/bsnmpd/modules/snmp_bridge/
H A Dbridge_addrs.c336 bridge_addrs_index_append(struct asn_oid *oid, uint sub, argument
341 oid->len = sub + ETHER_ADDR_LEN + 1;
342 oid->subs[sub] = ETHER_ADDR_LEN;
345 oid->subs[sub + i] = te->tp_addr[i - 1];
352 bridge_addrs_get(const struct asn_oid *oid, uint sub, argument
358 if (oid->len - sub != ETHER_ADDR_LEN + 1 ||
359 oid->subs[sub] != ETHER_ADDR_LEN)
363 tp_addr[i] = oid->subs[sub + i + 1];
373 bridge_addrs_getnext(const struct asn_oid *oid, uint sub, argument
380 if (oid
455 bridge_addrs_begemot_index_append(struct asn_oid *oid, uint sub, const struct tp_entry *te) argument
483 bridge_addrs_begemot_get(const struct asn_oid *oid, uint sub) argument
513 bridge_addrs_begemot_getnext(const struct asn_oid *oid, uint sub) argument
[all...]
/freebsd-9.3-release/usr.sbin/wlandebug/
H A Dwlandebug.c143 setoid(char oid[], size_t oidlen, const char *wlan) argument
147 snprintf(oid, oidlen, "net.%s.debug", wlan);
150 snprintf(oid, oidlen, "net.wlan.%s.debug", wlan+4);
152 snprintf(oid, oidlen, "net.wlan.debug");
155 snprintf(oid, oidlen, "net.link.ieee80211.%s.debug", wlan);
157 snprintf(oid, oidlen, "net.link.ieee80211.debug");
171 char oid[256]; local
174 setoid(oid, sizeof(oid), "wlan0");
177 setoid(oid, sizeo
[all...]
/freebsd-9.3-release/contrib/tcpdump/
H A Dmakemib52 * struct mib somename = { desc, oid-octet, type, child-pointer, next-pointer
63 oid["iso"]=1
194 if (oid[parent] == "") {
200 if (oid[new] > 0 && oid[new] != value) {
202 inn(FILENAME), parent, new, value, oid[new]
208 if (oid[sib] == value) {
219 oid[new]=value
233 # newitem=sofar"."item"("oid[item]")"
246 item, item, oid[ite
[all...]
/freebsd-9.3-release/sys/kgssapi/
H A Dgssd_prot.c60 xdr_gss_OID_desc(XDR *xdrs, gss_OID_desc *oid) argument
65 len = oid->length;
66 val = oid->elements;
69 oid->length = len;
70 oid->elements = val;
78 gss_OID oid; local
83 oid = *oidp;
84 if (oid) {
87 || !xdr_gss_OID_desc(xdrs, oid))
102 oid
[all...]
/freebsd-9.3-release/contrib/bsnmp/snmp_vacm/
H A Dvacm_snmp.c461 struct asn_oid oid; local
521 &oid) < 0)
523 if ((view = vacm_new_view(vname, &oid)) == NULL)
612 vacm_append_userindex(struct asn_oid *oid, uint sub, argument
617 oid->len = sub + strlen(user->secname) + 2;
618 oid->subs[sub++] = user->sec_model;
619 oid->subs[sub] = strlen(user->secname);
621 oid->subs[sub + i] = user->secname[i - 1];
625 vacm_user_index_decode(const struct asn_oid *oid, uint sub, argument
630 *smodel = oid
643 vacm_get_user(const struct asn_oid *oid, uint sub) argument
661 vacm_get_next_user(const struct asn_oid *oid, uint sub) argument
682 vacm_append_access_rule_index(struct asn_oid *oid, uint sub, const struct vacm_access *acl) argument
704 vacm_access_rule_index_decode(const struct asn_oid *oid, uint sub, char *gname, char *cprefix, int32_t *smodel, int32_t *slevel) argument
732 vacm_get_access_rule(const struct asn_oid *oid, uint sub) argument
777 vacm_view_index_decode(const struct asn_oid *oid, uint sub, char *vname, struct asn_oid *view_oid) argument
801 vacm_append_viewindex(struct asn_oid *oid, uint sub, const struct vacm_view *view) argument
817 vacm_get_view(const struct asn_oid *oid, uint sub) argument
835 vacm_get_next_view(const struct asn_oid *oid, uint sub) argument
869 vacm_get_context(const struct asn_oid *oid, uint sub) argument
893 vacm_get_next_context(const struct asn_oid *oid, uint sub) argument
920 vacm_append_ctxindex(struct asn_oid *oid, uint sub, const struct vacm_context *ctx) argument
[all...]
/freebsd-9.3-release/tools/tools/ath/athdebug/
H A Dathdebug.c155 char oid[256]; local
174 snprintf(oid, sizeof(oid), "dev.%s.debug", ifname);
176 snprintf(oid, sizeof(oid), "dev.ath.%s.debug", ifname+3);
179 if (sysctlbyname(oid, &debug, &debuglen, NULL, 0) < 0)
180 err(1, "sysctl-get(%s)", oid);
215 printf("%s: 0x%x => ", oid, debug);
216 if (sysctlbyname(oid, NULL, NULL, &ndebug, sizeof(ndebug)) < 0)
217 err(1, "sysctl-set(%s)", oid);
[all...]
/freebsd-9.3-release/sbin/atm/atmconfig/
H A DMakefile10 SRCS= ${.OBJDIR}/oid.h
27 CLEANFILES+= oid.h
41 ${.OBJDIR}/oid.h: atm_oid.list ${SNMP_ATM_DEF}
43 > ${.OBJDIR}/oid.h
/freebsd-9.3-release/sys/kern/
H A Dkern_sysctl.c147 * First check if another oid with the same name already
162 * If this oid has a number OID_AUTO, give it a number which
163 * is greater than any current oid.
178 printf("static sysctl oid too high: %d", oidp->oid_number);
183 * Insert the oid into the parent's list in order.
510 /* Register this oid */
517 * Rename an existing oid.
534 * Reparent an existing oid.
537 sysctl_move_oid(struct sysctl_oid *oid, struct sysctl_oid_list *parent) argument
542 if (oid
665 struct sysctl_oid *oid; local
789 struct sysctl_oid *oid; local
810 name2oid(char *name, int *oid, int *len, struct sysctl_oid **oidpp) argument
852 int error, oid[CTL_MAXNAME], len = 0; local
894 struct sysctl_oid *oid; local
922 struct sysctl_oid *oid; local
1253 int oid[CTL_MAXNAME]; local
1361 struct sysctl_oid *oid; local
1408 struct sysctl_oid *oid; local
[all...]

Completed in 171 milliseconds

12345678