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

123456789

/freebsd-10-stable/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-10-stable/crypto/heimdal/lib/gssapi/mech/
H A Dgss_oid_to_str.c37 gss_oid_to_str(OM_uint32 *minor_status, gss_OID oid, gss_buffer_t oid_str) argument
46 if (oid == GSS_C_NULL_OID)
49 ret = der_get_oid (oid->elements, oid->length, &o, &size);
70 gss_oid_to_name(gss_const_OID oid) argument
74 for (i = 0; _gss_ont_mech[i].oid; i++) {
75 if (gss_oid_equal(oid, _gss_ont_mech[i].oid))
86 for (i = 0; _gss_ont_mech[i].oid; i++) {
88 return _gss_ont_mech[i].oid;
[all...]
H A Dgss_release_oid.c38 gss_release_oid(OM_uint32 *minor_status, gss_OID *oid) argument
40 gss_OID o = *oid;
42 *oid = GSS_C_NO_OID;
H A Dgss_display_status.c184 gss_buffer_desc oid; local
188 maj_junk = gss_oid_to_str(&min_junk, mech_type, &oid);
190 oid.value = rk_UNCONST("unknown");
191 oid.length = 7;
196 (int)oid.length, (char *)oid.value);
198 gss_release_buffer(&min_junk, &oid);
H A Dgss_utils.c50 _gss_free_oid(OM_uint32 *minor_status, gss_OID oid) argument
53 if (oid->elements) {
54 free(oid->elements);
55 oid->elements = NULL;
56 oid->length = 0;
H A Dgss_decapsulate_token.c38 gss_const_OID oid,
49 ret = der_get_oid (oid->elements, oid->length, &o, &size);
37 gss_decapsulate_token(gss_const_buffer_t input_token, gss_const_OID oid, gss_buffer_t output_token) argument
H A Dgss_encapsulate_token.c38 gss_const_OID oid,
45 ret = der_get_oid (oid->elements, oid->length, &ct.thisMech, &size);
37 gss_encapsulate_token(gss_const_buffer_t input_token, gss_const_OID oid, gss_buffer_t output_token) argument
/freebsd-10-stable/contrib/wpa/src/tls/
H A Dasn1.c79 int asn1_parse_oid(const u8 *buf, size_t len, struct asn1_oid *oid) argument
85 os_memset(oid, 0, sizeof(*oid));
100 if (oid->len >= ASN1_MAX_OID_LEN) {
104 if (oid->len == 0) {
110 oid->oid[0] = val / 40;
111 if (oid->oid[0] > 2)
112 oid
123 asn1_get_oid(const u8 *buf, size_t len, struct asn1_oid *oid, const u8 **next) argument
143 asn1_oid_to_str(struct asn1_oid *oid, char *buf, size_t len) argument
[all...]
H A Dpkcs8.c24 struct asn1_oid oid; local
81 if (asn1_get_oid(hdr.payload, hdr.length, &oid, &pos)) {
87 asn1_oid_to_str(&oid, obuf, sizeof(obuf));
90 if (oid.len != 7 ||
91 oid.oid[0] != 1 /* iso */ ||
92 oid.oid[1] != 2 /* member-body */ ||
93 oid.oid[
[all...]
H A Dx509v3.c210 if (asn1_get_oid(pos, end - pos, &id->oid, &pos))
297 struct asn1_oid oid; local
356 if (asn1_get_oid(seq_pos, seq_end - seq_pos, &oid, &seq_pos)) {
378 if (oid.len == 4 &&
379 oid.oid[0] == 2 && oid.oid[1] == 5 && oid.oid[
715 x509_id_ce_oid(struct asn1_oid *oid) argument
1078 x509_parse_extension_data(struct x509_certificate *cert, struct asn1_oid *oid, const u8 *pos, size_t len) argument
1112 struct asn1_oid oid; local
1413 x509_rsadsi_oid(struct asn1_oid *oid) argument
1423 x509_pkcs_oid(struct asn1_oid *oid) argument
1431 x509_digest_oid(struct asn1_oid *oid) argument
1439 x509_sha1_oid(struct asn1_oid *oid) argument
1451 x509_sha256_oid(struct asn1_oid *oid) argument
1589 struct asn1_oid oid; local
[all...]
H A Dpkcs5.c29 static enum pkcs5_alg pkcs5_get_alg(struct asn1_oid *oid) argument
31 if (oid->len == 7 &&
32 oid->oid[0] == 1 /* iso */ &&
33 oid->oid[1] == 2 /* member-body */ &&
34 oid->oid[2] == 840 /* us */ &&
35 oid->oid[
50 struct asn1_oid oid; local
[all...]
/freebsd-10-stable/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;
/freebsd-10-stable/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-10-stable/usr.sbin/bhyve/
H A Dfwctl.h44 #define CTL_NODE(oid, data, len) \
46 oid, \
/freebsd-10-stable/contrib/bsnmp/snmpd/
H A Dexport.c208 * Save the old value in a fresh allocated oid pointed to by scratch->ptr1.
212 struct asn_oid *oid)
216 *(struct asn_oid *)ctx->scratch->ptr1 = *oid;
217 *oid = value->v.oid;
223 oid_rollback(struct snmp_context *ctx, struct asn_oid *oid) argument
225 *oid = *(struct asn_oid *)ctx->scratch->ptr1;
236 oid_get(struct snmp_value *value, const struct asn_oid *oid) argument
238 value->v.oid = *oid;
211 oid_save(struct snmp_value *value, struct snmp_context *ctx, struct asn_oid *oid) argument
246 index_decode(const struct asn_oid *oid, u_int sub, u_int code, ...) argument
361 index_compare_off(const struct asn_oid *oid, u_int sub, const struct asn_oid *idx, u_int off) argument
381 index_compare(const struct asn_oid *oid, u_int sub, const struct asn_oid *idx) argument
[all...]
/freebsd-10-stable/crypto/openssh/
H A Dgss-genr.c54 return (ctx != NULL && ctx->oid != GSS_C_NO_OID &&
55 ctx->oid->length == len &&
56 memcmp(ctx->oid->elements, data, len) == 0);
63 if (ctx->oid != GSS_C_NO_OID) {
64 free(ctx->oid->elements);
65 free(ctx->oid);
67 ctx->oid = xcalloc(1, sizeof(gss_OID_desc));
68 ctx->oid->length = len;
69 ctx->oid->elements = xmalloc(len);
70 memcpy(ctx->oid
75 ssh_gssapi_set_oid(Gssctxt *ctx, gss_OID oid) argument
254 ssh_gssapi_check_mechanism(Gssctxt **ctx, gss_OID oid, const char *host) argument
[all...]
/freebsd-10-stable/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-10-stable/sys/cam/scsi/
H A Dscsi_enc_safte.c360 int oid, r, i, nitems; local
370 oid = r = 0;
381 cache->elm_map[oid].encstat[1] = 0; /* resvd */
382 cache->elm_map[oid].encstat[2] = 0; /* resvd */
384 cache->elm_map[oid].encstat[3] |= 0x40;
386 cache->elm_map[oid].encstat[3] &= ~0x40;
390 cache->elm_map[oid].encstat[0] = SES_OBJSTAT_OK;
391 if ((cache->elm_map[oid].encstat[3] & 0x37) == 0)
392 cache->elm_map[oid].encstat[3] |= 0x27;
396 cache->elm_map[oid]
670 int oid, r, i; local
[all...]
/freebsd-10-stable/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-10-stable/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-10-stable/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-10-stable/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...]

Completed in 208 milliseconds

123456789