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

12345678910

/freebsd-11-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);
H A Dsetproctitle.c168 int oid[4]; local
176 oid[0] = CTL_KERN;
177 oid[1] = KERN_PROC;
178 oid[2] = KERN_PROC_ARGS;
179 oid[3] = getpid();
180 sysctl(oid, 4, 0, 0, "", 0);
190 int oid[4]; local
198 oid[0] = CTL_KERN;
199 oid[1] = KERN_PROC;
200 oid[
[all...]
/freebsd-11-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;
/freebsd-11-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-11-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-11-stable/usr.sbin/bhyve/
H A Dfwctl.h46 #define CTL_NODE(oid, data, len) \
48 oid, \
/freebsd-11-stable/contrib/wpa/src/tls/
H A Dx509v3.c210 if (asn1_get_oid(pos, end - pos, &id->oid, &pos))
296 struct asn1_oid oid; local
355 if (asn1_get_oid(seq_pos, seq_end - seq_pos, &oid, &seq_pos)) {
377 if (oid.len == 4 &&
378 oid.oid[0] == 2 && oid.oid[1] == 5 && oid.oid[
756 x509_id_ce_oid(struct asn1_oid *oid) argument
766 x509_any_ext_key_usage_oid(struct asn1_oid *oid) argument
1123 x509_id_pkix_oid(struct asn1_oid *oid) argument
1136 x509_id_kp_oid(struct asn1_oid *oid) argument
1145 x509_id_kp_server_auth_oid(struct asn1_oid *oid) argument
1154 x509_id_kp_client_auth_oid(struct asn1_oid *oid) argument
1163 x509_id_kp_ocsp_oid(struct asn1_oid *oid) argument
1177 struct asn1_oid oid; local
1229 x509_parse_extension_data(struct x509_certificate *cert, struct asn1_oid *oid, const u8 *pos, size_t len) argument
1264 struct asn1_oid oid; local
1571 x509_rsadsi_oid(struct asn1_oid *oid) argument
1581 x509_pkcs_oid(struct asn1_oid *oid) argument
1589 x509_digest_oid(struct asn1_oid *oid) argument
1597 x509_sha1_oid(struct asn1_oid *oid) argument
1609 x509_sha2_oid(struct asn1_oid *oid) argument
1623 x509_sha256_oid(struct asn1_oid *oid) argument
1630 x509_sha384_oid(struct asn1_oid *oid) argument
1637 x509_sha512_oid(struct asn1_oid *oid) argument
1777 struct asn1_oid oid; local
[all...]
H A Dasn1.c15 .oid = { 1, 3, 14, 3, 2, 26 },
20 .oid = { 2, 16, 840, 1, 101, 3, 4, 2, 1 },
129 int asn1_parse_oid(const u8 *buf, size_t len, struct asn1_oid *oid) argument
135 os_memset(oid, 0, sizeof(*oid));
150 if (oid->len >= ASN1_MAX_OID_LEN) {
154 if (oid->len == 0) {
160 oid->oid[0] = val / 40;
161 if (oid
173 asn1_get_oid(const u8 *buf, size_t len, struct asn1_oid *oid, const u8 **next) argument
193 asn1_oid_to_str(const 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 Dtlsv1_cred.c335 static int oid_is_rsadsi(struct asn1_oid *oid) argument
337 return oid->len >= 4 &&
338 oid->oid[0] == 1 /* iso */ &&
339 oid->oid[1] == 2 /* member-body */ &&
340 oid->oid[2] == 840 /* us */ &&
341 oid->oid[
345 pkcs12_is_bagtype_oid(struct asn1_oid *oid, unsigned long type) argument
357 is_oid_pkcs7(struct asn1_oid *oid) argument
369 is_oid_pkcs7_data(struct asn1_oid *oid) argument
375 is_oid_pkcs7_enc_data(struct asn1_oid *oid) argument
381 is_oid_pkcs9(struct asn1_oid *oid) argument
393 is_oid_pkcs9_friendly_name(struct asn1_oid *oid) argument
400 is_oid_pkcs9_local_key_id(struct asn1_oid *oid) argument
407 is_oid_pkcs9_x509_cert(struct asn1_oid *oid) argument
447 struct asn1_oid oid; local
626 struct asn1_oid oid; local
772 struct asn1_oid oid; local
888 struct asn1_oid oid; local
930 struct asn1_oid oid; local
[all...]
H A Dpkcs5.c38 static int oid_is_rsadsi(struct asn1_oid *oid) argument
40 return oid->len >= 4 &&
41 oid->oid[0] == 1 /* iso */ &&
42 oid->oid[1] == 2 /* member-body */ &&
43 oid->oid[2] == 840 /* us */ &&
44 oid->oid[
48 pkcs5_is_oid(struct asn1_oid *oid, unsigned long alg) argument
58 enc_alg_is_oid(struct asn1_oid *oid, unsigned long alg) argument
67 pkcs12_is_pbe_oid(struct asn1_oid *oid, unsigned long alg) argument
78 pkcs5_get_alg(struct asn1_oid *oid) argument
95 struct asn1_oid oid; local
282 struct asn1_oid oid; local
[all...]
/freebsd-11-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-11-stable/sys/dev/bnxt/
H A Dbnxt_sysctl.c161 struct sysctl_oid *oid; local
168 oid = SYSCTL_ADD_NODE(&softc->hw_stats,
171 if (!oid)
175 SYSCTL_ADD_QUAD(&softc->hw_stats, SYSCTL_CHILDREN(oid), OID_AUTO,
178 SYSCTL_ADD_QUAD(&softc->hw_stats, SYSCTL_CHILDREN(oid), OID_AUTO,
181 SYSCTL_ADD_QUAD(&softc->hw_stats, SYSCTL_CHILDREN(oid), OID_AUTO,
184 SYSCTL_ADD_QUAD(&softc->hw_stats, SYSCTL_CHILDREN(oid), OID_AUTO,
187 SYSCTL_ADD_QUAD(&softc->hw_stats, SYSCTL_CHILDREN(oid), OID_AUTO,
190 SYSCTL_ADD_QUAD(&softc->hw_stats, SYSCTL_CHILDREN(oid), OID_AUTO,
193 SYSCTL_ADD_QUAD(&softc->hw_stats, SYSCTL_CHILDREN(oid), OID_AUT
206 struct sysctl_oid *oid; local
656 struct sysctl_oid *oid; local
806 struct sysctl_oid *oid = vi->ver_oid; local
878 struct sysctl_oid *oid = ni->nvm_oid; local
1314 struct sysctl_oid *oid = softc->flow_ctrl_oid; local
1340 struct sysctl_oid *oid = softc->hw_lro_oid; local
[all...]
/freebsd-11-stable/crypto/openssh/
H A Dgss-genr.c53 return (ctx != NULL && ctx->oid != GSS_C_NO_OID &&
54 ctx->oid->length == len &&
55 memcmp(ctx->oid->elements, data, len) == 0);
62 if (ctx->oid != GSS_C_NO_OID) {
63 free(ctx->oid->elements);
64 free(ctx->oid);
66 ctx->oid = xcalloc(1, sizeof(gss_OID_desc));
67 ctx->oid->length = len;
68 ctx->oid->elements = xmalloc(len);
69 memcpy(ctx->oid
74 ssh_gssapi_set_oid(Gssctxt *ctx, gss_OID oid) argument
253 ssh_gssapi_check_mechanism(Gssctxt **ctx, gss_OID oid, const char *host) argument
[all...]
/freebsd-11-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-11-stable/sys/cam/scsi/
H A Dscsi_enc_safte.c358 int oid, r, i, nitems; local
368 oid = r = 0;
379 cache->elm_map[oid].encstat[1] = 0; /* resvd */
380 cache->elm_map[oid].encstat[2] = 0; /* resvd */
382 cache->elm_map[oid].encstat[3] |= 0x40;
384 cache->elm_map[oid].encstat[3] &= ~0x40;
388 cache->elm_map[oid].encstat[0] = SES_OBJSTAT_OK;
389 if ((cache->elm_map[oid].encstat[3] & 0x37) == 0)
390 cache->elm_map[oid].encstat[3] |= 0x27;
394 cache->elm_map[oid]
668 int oid, r, i; local
[all...]
/freebsd-11-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-11-stable/usr.sbin/bsnmpd/modules/snmp_bridge/
H A Dbridge_addrs.c338 bridge_addrs_index_append(struct asn_oid *oid, uint sub, argument
343 oid->len = sub + ETHER_ADDR_LEN + 1;
344 oid->subs[sub] = ETHER_ADDR_LEN;
347 oid->subs[sub + i] = te->tp_addr[i - 1];
354 bridge_addrs_get(const struct asn_oid *oid, uint sub, argument
360 if (oid->len - sub != ETHER_ADDR_LEN + 1 ||
361 oid->subs[sub] != ETHER_ADDR_LEN)
365 tp_addr[i] = oid->subs[sub + i + 1];
375 bridge_addrs_getnext(const struct asn_oid *oid, uint sub, argument
382 if (oid
457 bridge_addrs_begemot_index_append(struct asn_oid *oid, uint sub, const struct tp_entry *te) argument
485 bridge_addrs_begemot_get(const struct asn_oid *oid, uint sub) argument
515 bridge_addrs_begemot_getnext(const struct asn_oid *oid, uint sub) argument
[all...]
/freebsd-11-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 174 milliseconds

12345678910