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

1234567891011

/freebsd-current/lib/libc/gen/
H A Dsysctlnametomib.c44 int oid[2]; local
47 oid[0] = CTL_SYSCTL;
48 oid[1] = CTL_SYSCTL_NAME2OID;
51 error = sysctl(oid, 2, mibp, sizep, name, strlen(name));
H A Dsetproctitle.c181 int oid[4]; local
189 oid[0] = CTL_KERN;
190 oid[1] = KERN_PROC;
191 oid[2] = KERN_PROC_ARGS;
192 oid[3] = -1;
193 sysctl(oid, 4, 0, 0, "", 0);
203 int oid[4]; local
211 oid[0] = CTL_KERN;
212 oid[1] = KERN_PROC;
213 oid[
[all...]
H A Dsysctlbyname.c41 int oid[2]; local
48 len = nitems(oid);
49 if (sysctlnametomib(name, oid, &len) == -1)
51 return (sysctl(oid, (u_int)len, oldp, oldlenp, newp,
/freebsd-current/contrib/capsicum-test/
H A Dsysctl.cc10 int oid[2] = {CTL_KERN, KERN_OSRELDATE}; local
13 EXPECT_OK(sysctl(oid, 2, &ii, &len, NULL, 0));
/freebsd-current/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.c183 gss_buffer_desc oid; local
187 maj_junk = gss_oid_to_str(&min_junk, mech_type, &oid);
189 oid.value = rk_UNCONST("unknown");
190 oid.length = 7;
195 (int)oid.length, (char *)oid.value);
197 gss_release_buffer(&min_junk, &oid);
/freebsd-current/contrib/wpa/src/tls/
H A Dx509v3.c207 if (asn1_get_oid(pos, end - pos, &id->oid, &pos))
290 struct asn1_oid oid; local
342 if (asn1_get_oid(seq_pos, seq_end - seq_pos, &oid, &seq_pos)) {
371 if (oid.len == 4 &&
372 oid.oid[0] == 2 && oid.oid[1] == 5 && oid.oid[
746 x509_id_ce_oid(struct asn1_oid *oid) argument
756 x509_any_ext_key_usage_oid(struct asn1_oid *oid) argument
1097 x509_id_cert_policy_any_oid(struct asn1_oid *oid) argument
1108 x509_id_wfa_oid(struct asn1_oid *oid) argument
1121 x509_id_wfa_tod_oid(struct asn1_oid *oid) argument
1130 x509_id_wfa_tod_strict_oid(struct asn1_oid *oid) argument
1138 x509_id_wfa_tod_tofu_oid(struct asn1_oid *oid) argument
1177 struct asn1_oid oid; local
1221 x509_id_pkix_oid(struct asn1_oid *oid) argument
1234 x509_id_kp_oid(struct asn1_oid *oid) argument
1243 x509_id_kp_server_auth_oid(struct asn1_oid *oid) argument
1252 x509_id_kp_client_auth_oid(struct asn1_oid *oid) argument
1261 x509_id_kp_ocsp_oid(struct asn1_oid *oid) argument
1275 struct asn1_oid oid; local
1324 x509_parse_extension_data(struct x509_certificate *cert, struct asn1_oid *oid, const u8 *pos, size_t len) argument
1360 struct asn1_oid oid; local
1645 x509_rsadsi_oid(struct asn1_oid *oid) argument
1655 x509_pkcs_oid(struct asn1_oid *oid) argument
1663 x509_digest_oid(struct asn1_oid *oid) argument
1671 x509_sha1_oid(struct asn1_oid *oid) argument
1683 x509_sha2_oid(struct asn1_oid *oid) argument
1697 x509_sha256_oid(struct asn1_oid *oid) argument
1704 x509_sha384_oid(struct asn1_oid *oid) argument
1711 x509_sha512_oid(struct asn1_oid *oid) argument
1847 struct asn1_oid oid; local
[all...]
H A Dpkcs8.c24 struct asn1_oid oid; local
72 if (asn1_get_oid(hdr.payload, hdr.length, &oid, &pos)) {
78 asn1_oid_to_str(&oid, obuf, sizeof(obuf));
81 if (oid.len != 7 ||
82 oid.oid[0] != 1 /* iso */ ||
83 oid.oid[1] != 2 /* member-body */ ||
84 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
610 struct asn1_oid oid; local
742 struct asn1_oid oid; local
849 struct asn1_oid oid; local
889 struct asn1_oid oid; local
[all...]
H A Dasn1.c16 .oid = { 1, 3, 14, 3, 2, 26 },
21 .oid = { 2, 16, 840, 1, 101, 3, 4, 2, 1 },
26 .oid = { 1, 2, 840, 10045, 2, 1 },
31 .oid = { 1, 2, 840, 10045, 3, 1, 7 },
36 .oid = { 1, 3, 132, 0, 34 },
41 .oid = { 1, 3, 132, 0, 35 },
46 .oid = { 1, 3, 36, 3, 3, 2, 8, 1, 1, 7 },
51 .oid = { 1, 3, 36, 3, 3, 2, 8, 1, 1, 11 },
56 .oid = { 1, 3, 36, 3, 3, 2, 8, 1, 1, 13 },
61 .oid
290 asn1_parse_oid(const u8 *buf, size_t len, struct asn1_oid *oid) argument
334 asn1_get_oid(const u8 *buf, size_t len, struct asn1_oid *oid, const u8 **next) argument
351 asn1_oid_to_str(const struct asn1_oid *oid, char *buf, size_t len) argument
480 asn1_get_alg_id(const u8 *buf, size_t len, struct asn1_oid *oid, const u8 **params, size_t *params_len, const u8 **next) argument
547 asn1_put_oid(struct wpabuf *buf, const struct asn1_oid *oid) argument
612 asn1_build_alg_id(const struct asn1_oid *oid, const struct wpabuf *params) argument
[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
266 struct asn1_oid oid; local
[all...]
/freebsd-current/lib/libgssapi/
H A Dgss_release_oid.c42 gss_release_oid(OM_uint32 *minor_status, gss_OID *oid) argument
44 gss_OID o = *oid;
46 *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;
/freebsd-current/tools/regression/security/cap_test/
H A Dcap_test_sysctl.c52 int i, oid[2]; local
56 oid[0] = CTL_KERN;
57 oid[1] = KERN_OSRELDATE;
59 CHECK(sysctl(oid, 2, &i, &len, NULL, 0) == 0);
/freebsd-current/sys/dev/bnxt/
H A Dbnxt_sysctl.c160 struct sysctl_oid *oid; local
167 oid = SYSCTL_ADD_NODE(&softc->hw_stats,
170 if (!oid)
173 SYSCTL_ADD_QUAD(&softc->hw_stats, SYSCTL_CHILDREN(oid), OID_AUTO,
176 SYSCTL_ADD_QUAD(&softc->hw_stats, SYSCTL_CHILDREN(oid), OID_AUTO,
179 SYSCTL_ADD_QUAD(&softc->hw_stats, SYSCTL_CHILDREN(oid), OID_AUTO,
182 SYSCTL_ADD_QUAD(&softc->hw_stats, SYSCTL_CHILDREN(oid), OID_AUTO,
185 SYSCTL_ADD_QUAD(&softc->hw_stats, SYSCTL_CHILDREN(oid), OID_AUTO,
188 SYSCTL_ADD_QUAD(&softc->hw_stats, SYSCTL_CHILDREN(oid), OID_AUTO,
191 SYSCTL_ADD_QUAD(&softc->hw_stats, SYSCTL_CHILDREN(oid), OID_AUT
204 struct sysctl_oid *oid; local
870 struct sysctl_oid *oid; local
1043 struct sysctl_oid *oid = vi->ver_oid; local
1118 struct sysctl_oid *oid = ni->nvm_oid; local
1562 struct sysctl_oid *oid = softc->flow_ctrl_oid; local
1586 struct sysctl_oid *oid = softc->hw_lro_oid; local
[all...]
/freebsd-current/contrib/bearssl/src/x509/
H A Dencode_ec_pk8der.c65 const unsigned char *oid; local
67 oid = br_get_curve_OID(sk->curve);
68 if (oid == NULL) {
72 len_privateKeyAlgorithm = 2 + sizeof OID_ECPUBKEY + 2 + oid[0];
96 *buf ++ = (sizeof OID_ECPUBKEY) + 2 + oid[0];
100 memcpy(buf, oid, 1 + oid[0]);
101 buf += 1 + oid[0];
H A Dencode_ec_rawder.c83 const unsigned char *oid; local
86 oid = br_get_curve_OID(sk->curve);
87 if (oid == NULL) {
91 oid = NULL;
96 len_parameters = 4 + oid[0];
134 *buf ++ = oid[0] + 2;
136 memcpy(buf, oid, oid[0] + 1);
137 buf += oid[0] + 1;
/freebsd-current/usr.sbin/bhyve/amd64/
H A Dfwctl.h44 #define CTL_NODE(oid, data, len) \
46 oid, \
/freebsd-current/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-current/crypto/openssh/
H A Dgss-genr.c67 return (ctx != NULL && ctx->oid != GSS_C_NO_OID &&
68 ctx->oid->length == len &&
69 memcmp(ctx->oid->elements, data, len) == 0);
76 if (ctx->oid != GSS_C_NO_OID) {
77 free(ctx->oid->elements);
78 free(ctx->oid);
80 ctx->oid = xcalloc(1, sizeof(gss_OID_desc));
81 ctx->oid->length = len;
82 ctx->oid->elements = xmalloc(len);
83 memcpy(ctx->oid
88 ssh_gssapi_set_oid(Gssctxt *ctx, gss_OID oid) argument
274 ssh_gssapi_check_mechanism(Gssctxt **ctx, gss_OID oid, const char *host) argument
[all...]
/freebsd-current/tools/tools/iwi/
H A Diwistats.c111 char oid[32]; local
119 (void)snprintf(oid, sizeof(oid), "dev.iwi.%u.stats", ifaceno);
120 if (sysctlbyname(oid, stats, &len, NULL, 0) == -1)
/freebsd-current/sys/cam/scsi/
H A Dscsi_enc_safte.c357 int oid, r, i, nitems; local
367 oid = r = 0;
378 cache->elm_map[oid].encstat[1] = 0; /* resvd */
379 cache->elm_map[oid].encstat[2] = 0; /* resvd */
381 cache->elm_map[oid].encstat[3] |= 0x40;
383 cache->elm_map[oid].encstat[3] &= ~0x40;
387 cache->elm_map[oid].encstat[0] = SES_OBJSTAT_OK;
388 if ((cache->elm_map[oid].encstat[3] & 0x37) == 0)
389 cache->elm_map[oid].encstat[3] |= 0x27;
393 cache->elm_map[oid]
667 int oid, r, i; local
[all...]
/freebsd-current/sys/rpc/rpcsec_gss/
H A Drpcsec_gss_conf.c44 gss_OID oid = kgss_find_mech_by_name(mech); local
46 if (oid) {
47 *oid_ret = oid;
55 rpc_gss_oid_to_mech(gss_OID oid, const char **mech_ret) argument
57 const char *name = kgss_find_mech_by_oid(oid);
155 gss_OID oid = kgss_find_mech_by_name(mech); local
157 if (oid)
/freebsd-current/usr.sbin/wlandebug/
H A Dwlandebug.c147 setoid(char oid[], size_t oidlen, const char *wlan) argument
151 snprintf(oid, oidlen, "net.%s.debug", wlan);
154 snprintf(oid, oidlen, "net.wlan.%s.debug", wlan+4);
156 snprintf(oid, oidlen, "net.wlan.debug");
159 snprintf(oid, oidlen, "net.link.ieee80211.%s.debug", wlan);
161 snprintf(oid, oidlen, "net.link.ieee80211.debug");
168 get_orig_iface_name(char *oid, size_t oid_size, char *name) argument
184 setoid(oid, oid_size, orig_name);
197 char oid[256]; local
200 setoid(oid, sizeo
[all...]

Completed in 156 milliseconds

1234567891011