/freebsd-10.0-release/lib/libc/gen/ |
H A D | sysctlnametomib.c | 45 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.c | 52 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.0-release/crypto/heimdal/lib/gssapi/mech/ |
H A D | gss_oid_to_str.c | 37 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 D | gss_release_oid.c | 38 gss_release_oid(OM_uint32 *minor_status, gss_OID *oid) argument 40 gss_OID o = *oid; 42 *oid = GSS_C_NO_OID;
|
H A D | gss_display_status.c | 184 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 D | gss_utils.c | 50 _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 D | gss_decapsulate_token.c | 38 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 D | gss_encapsulate_token.c | 38 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.0-release/contrib/wpa/src/tls/ |
H A D | asn1.c | 79 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 D | pkcs8.c | 24 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 D | x509v3.c | 210 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 D | pkcs5.c | 29 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.0-release/lib/libgssapi/ |
H A D | gss_release_oid.c | 41 gss_release_oid(OM_uint32 *minor_status, gss_OID *oid) argument 43 gss_OID o = *oid; 45 *oid = GSS_C_NO_OID;
|
H A D | gss_encapsulate_token.c | 36 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 D | gss_utils.c | 70 _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 D | gss_oid_to_str.c | 44 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-10.0-release/tools/regression/security/cap_test/ |
H A D | cap_test_sysctl.c | 57 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.0-release/contrib/bsnmp/snmpd/ |
H A D | export.c | 203 * 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-10.0-release/crypto/openssh/ |
H A D | gss-genr.c | 52 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-10.0-release/tools/tools/iwi/ |
H A D | iwistats.c | 115 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.0-release/sys/cam/scsi/ |
H A D | scsi_enc_safte.c | 363 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-10.0-release/sys/rpc/rpcsec_gss/ |
H A D | rpcsec_gss_conf.c | 45 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.0-release/usr.sbin/bsnmpd/modules/snmp_bridge/ |
H A D | bridge_addrs.c | 336 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.0-release/usr.sbin/wlandebug/ |
H A D | wlandebug.c | 143 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.0-release/contrib/tcpdump/ |
H A D | makemib | 52 * 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...] |