Home
last modified time | relevance | path

Searched refs:oid (Results 1 – 22 of 22) sorted by relevance

/hostap-3.7.0/src/tls/
Dx509v3.c207 if (asn1_get_oid(pos, end - pos, &id->oid, &pos)) in x509_parse_algorithm_identifier()
290 struct asn1_oid oid; in x509_parse_name() local
342 if (asn1_get_oid(seq_pos, seq_end - seq_pos, &oid, &seq_pos)) { in x509_parse_name()
371 if (oid.len == 4 && in x509_parse_name()
372 oid.oid[0] == 2 && oid.oid[1] == 5 && oid.oid[2] == 4) { in x509_parse_name()
374 switch (oid.oid[3]) { in x509_parse_name()
400 } else if (oid.len == 7 && in x509_parse_name()
401 oid.oid[0] == 1 && oid.oid[1] == 2 && in x509_parse_name()
402 oid.oid[2] == 840 && oid.oid[3] == 113549 && in x509_parse_name()
403 oid.oid[4] == 1 && oid.oid[5] == 9 && in x509_parse_name()
[all …]
Dtlsv1_cred.c335 static int oid_is_rsadsi(struct asn1_oid *oid) in oid_is_rsadsi() argument
337 return oid->len >= 4 && in oid_is_rsadsi()
338 oid->oid[0] == 1 /* iso */ && in oid_is_rsadsi()
339 oid->oid[1] == 2 /* member-body */ && in oid_is_rsadsi()
340 oid->oid[2] == 840 /* us */ && in oid_is_rsadsi()
341 oid->oid[3] == 113549 /* rsadsi */; in oid_is_rsadsi()
345 static int pkcs12_is_bagtype_oid(struct asn1_oid *oid, unsigned long type) in pkcs12_is_bagtype_oid() argument
347 return oid->len == 9 && in pkcs12_is_bagtype_oid()
348 oid_is_rsadsi(oid) && in pkcs12_is_bagtype_oid()
349 oid->oid[4] == 1 /* pkcs */ && in pkcs12_is_bagtype_oid()
[all …]
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 = { 1, 2, 840, 113549, 1, 9, 16, 3, 22 },
[all …]
Dpkcs5.c38 static int oid_is_rsadsi(struct asn1_oid *oid) in oid_is_rsadsi() argument
40 return oid->len >= 4 && in oid_is_rsadsi()
41 oid->oid[0] == 1 /* iso */ && in oid_is_rsadsi()
42 oid->oid[1] == 2 /* member-body */ && in oid_is_rsadsi()
43 oid->oid[2] == 840 /* us */ && in oid_is_rsadsi()
44 oid->oid[3] == 113549 /* rsadsi */; in oid_is_rsadsi()
48 static int pkcs5_is_oid(struct asn1_oid *oid, unsigned long alg) in pkcs5_is_oid() argument
50 return oid->len == 7 && in pkcs5_is_oid()
51 oid_is_rsadsi(oid) && in pkcs5_is_oid()
52 oid->oid[4] == 1 /* pkcs */ && in pkcs5_is_oid()
[all …]
Dpkcs8.c24 struct asn1_oid oid; in pkcs8_key_import() local
72 if (asn1_get_oid(hdr.payload, hdr.length, &oid, &pos)) { in pkcs8_key_import()
78 asn1_oid_to_str(&oid, obuf, sizeof(obuf)); in pkcs8_key_import()
81 if (oid.len != 7 || in pkcs8_key_import()
82 oid.oid[0] != 1 /* iso */ || in pkcs8_key_import()
83 oid.oid[1] != 2 /* member-body */ || in pkcs8_key_import()
84 oid.oid[2] != 840 /* us */ || in pkcs8_key_import()
85 oid.oid[3] != 113549 /* rsadsi */ || in pkcs8_key_import()
86 oid.oid[4] != 1 /* pkcs */ || in pkcs8_key_import()
87 oid.oid[5] != 1 /* pkcs-1 */ || in pkcs8_key_import()
[all …]
Dtlsv1_client_ocsp.c34 static int is_oid_basic_ocsp_resp(struct asn1_oid *oid) in is_oid_basic_ocsp_resp() argument
36 return oid->len == 10 && in is_oid_basic_ocsp_resp()
37 oid->oid[0] == 1 /* iso */ && in is_oid_basic_ocsp_resp()
38 oid->oid[1] == 3 /* identified-organization */ && in is_oid_basic_ocsp_resp()
39 oid->oid[2] == 6 /* dod */ && in is_oid_basic_ocsp_resp()
40 oid->oid[3] == 1 /* internet */ && in is_oid_basic_ocsp_resp()
41 oid->oid[4] == 5 /* security */ && in is_oid_basic_ocsp_resp()
42 oid->oid[5] == 5 /* mechanisms */ && in is_oid_basic_ocsp_resp()
43 oid->oid[6] == 7 /* id-pkix */ && in is_oid_basic_ocsp_resp()
44 oid->oid[7] == 48 /* id-ad */ && in is_oid_basic_ocsp_resp()
[all …]
Dasn1.h57 unsigned long oid[ASN1_MAX_OID_LEN]; member
65 int asn1_parse_oid(const u8 *buf, size_t len, struct asn1_oid *oid);
66 int asn1_get_oid(const u8 *buf, size_t len, struct asn1_oid *oid,
68 void asn1_oid_to_str(const struct asn1_oid *oid, char *buf, size_t len);
74 int asn1_get_alg_id(const u8 *buf, size_t len, struct asn1_oid *oid,
78 void asn1_put_oid(struct wpabuf *buf, const struct asn1_oid *oid);
84 struct wpabuf * asn1_build_alg_id(const struct asn1_oid *oid,
Dx509v3.h15 struct asn1_oid oid; member
159 int x509_sha1_oid(struct asn1_oid *oid);
160 int x509_sha256_oid(struct asn1_oid *oid);
161 int x509_sha384_oid(struct asn1_oid *oid);
162 int x509_sha512_oid(struct asn1_oid *oid);
Dpkcs1.c210 struct asn1_oid oid; in pkcs1_v15_sig_ver() local
270 if (asn1_get_oid(hdr.payload, hdr.length, &oid, &next)) { in pkcs1_v15_sig_ver()
294 if (!asn1_oid_equal(&oid, hash_alg)) { in pkcs1_v15_sig_ver()
296 asn1_oid_to_str(&oid, txt, sizeof(txt)); in pkcs1_v15_sig_ver()
/hostap-3.7.0/src/common/
Ddpp_backup.c114 const struct asn1_oid *oid; in dpp_build_key_alg() local
119 oid = &asn1_prime256v1_oid; in dpp_build_key_alg()
122 oid = &asn1_secp384r1_oid; in dpp_build_key_alg()
125 oid = &asn1_secp521r1_oid; in dpp_build_key_alg()
128 oid = &asn1_brainpoolP256r1_oid; in dpp_build_key_alg()
131 oid = &asn1_brainpoolP384r1_oid; in dpp_build_key_alg()
134 oid = &asn1_brainpoolP512r1_oid; in dpp_build_key_alg()
143 asn1_put_oid(params, oid); /* namedCurve */ in dpp_build_key_alg()
218 const struct asn1_oid *oid; in dpp_build_pbkdf2_alg_id() local
235 oid = &asn1_pbkdf2_hmac_sha256_oid; in dpp_build_pbkdf2_alg_id()
[all …]
/hostap-3.7.0/hs20/client/
Dest.c218 ASN1_OBJECT *oid; member
238 ASN1_SIMPLE(AttrOrOID, d.oid, ASN1_OBJECT),
249 static void add_csrattrs_oid(struct hs20_osu_client *ctx, ASN1_OBJECT *oid, in add_csrattrs_oid() argument
255 if (!oid) in add_csrattrs_oid()
258 res = OBJ_obj2txt(txt, sizeof(txt), oid, 1); in add_csrattrs_oid()
281 ASN1_OBJECT *oid = sk_ASN1_OBJECT_value(values, i); in add_csrattrs_ext_req() local
283 res = OBJ_obj2txt(txt, sizeof(txt), oid, 1); in add_csrattrs_ext_req()
323 ASN1_OBJECT *oid = sk_ASN1_OBJECT_value(attr->values, i); in add_csrattrs_attr() local
325 res = OBJ_obj2txt(txt2, sizeof(txt2), oid, 1); in add_csrattrs_attr()
352 add_csrattrs_oid(ctx, ao->d.oid, exts); in add_csrattrs()
[all …]
Dosu_client.c2950 if (os_strcmp(cert->othername[i].oid, in osu_cert_cb()
2963 if (os_strcmp(cert->othername[i].oid, in osu_cert_cb()
/hostap-3.7.0/hs20/server/ca/
Dest-csrattrs.sh3 openssl asn1parse -genconf est-csrattrs.cnf -out est-csrattrs.der -oid hs20.oid
Dest-csrattrs.cnf9 oid = OID:extensionRequest
/hostap-3.7.0/tests/fuzzing/asn1/
Dasn1.c39 struct asn1_oid oid; in asn1_parse() local
119 if (asn1_get_oid(prev, end - prev, &oid, &prev) < 0) { in asn1_parse()
123 asn1_oid_to_str(&oid, str, sizeof(str)); in asn1_parse()
/hostap-3.7.0/src/crypto/
Dcrypto_mbedtls-ec.c836 const char *oid; in pk_write_ec_param() local
840 ec->MBEDTLS_PRIVATE(grp).id, &oid, &oid_len)) != 0) in pk_write_ec_param()
844 len, mbedtls_asn1_write_oid(p, start, oid, oid_len)); in pk_write_ec_param()
895 const char *oid; in crypto_pk_write_formatted_pubkey_der() local
921 mbedtls_pk_get_type(key), &oid, &oid_len)) != 0) { in crypto_pk_write_formatted_pubkey_der()
932 &c, buf, oid, oid_len, par_len)); in crypto_pk_write_formatted_pubkey_der()
Dtls_mbedtls_alt.c2777 if (name->oid.p && MBEDTLS_OID_CMP(MBEDTLS_OID_AT_CN, &name->oid) == 0) in tls_mbedtls_match_suffixes()
2795 const char *oid; in tls_mbedtls_match_dn_field() member
2804 list[nlist].oid = NULL; in tls_mbedtls_match_dn_field()
2817 list[nlist].oid = ""; in tls_mbedtls_match_dn_field()
2830 list[nlist].oid = MBEDTLS_OID_AT_COUNTRY; in tls_mbedtls_match_dn_field()
2835 list[nlist].oid = MBEDTLS_OID_AT_LOCALITY; in tls_mbedtls_match_dn_field()
2840 list[nlist].oid = MBEDTLS_OID_AT_ORGANIZATION; in tls_mbedtls_match_dn_field()
2847 list[nlist].oid = MBEDTLS_OID_AT_CN; in tls_mbedtls_match_dn_field()
2852 list[nlist].oid = MBEDTLS_OID_AT_STATE; in tls_mbedtls_match_dn_field()
2857 list[nlist].oid = MBEDTLS_OID_AT_ORG_UNIT; in tls_mbedtls_match_dn_field()
[all …]
Dtls_gnutls.c960 char oid[128]; in server_eku_purpose() local
961 size_t oid_size = sizeof(oid); in server_eku_purpose()
964 res = gnutls_x509_crt_get_key_purpose_oid(cert, i, oid, in server_eku_purpose()
979 wpa_printf(MSG_DEBUG, "GnuTLS: Certificate purpose: %s", oid); in server_eku_purpose()
980 if (os_strcmp(oid, GNUTLS_KP_TLS_WWW_SERVER) == 0 || in server_eku_purpose()
981 os_strcmp(oid, GNUTLS_KP_ANY) == 0) in server_eku_purpose()
Dcrypto_mbedtls_alt.c3423 const char *oid; in crypto_csr_set_attribute() local
3428 oid = OBJ_pkcs9_challengePassword; in crypto_csr_set_attribute()
3435 (void)oid; in crypto_csr_set_attribute()
3447 mbedtls_x509_csr *csr, const char *oid, size_t oid_len, size_t *vlen, int *vtype) in mbedtls_x509_csr_attr_oid_value() argument
3484 if (oid_len != len || 0 != memcmp(ext, oid, oid_len)) in mbedtls_x509_csr_attr_oid_value()
3501 const char *oid; in crypto_csr_get_attribute() local
3506 oid = OBJ_pkcs9_challengePassword; in crypto_csr_get_attribute()
3518 return mbedtls_x509_csr_attr_oid_value((mbedtls_x509_csr *)csr, oid, oid_len, len, type); in crypto_csr_get_attribute()
/hostap-3.7.0/src/drivers/
Ddriver_ndis.c451 static int ndis_get_oid(struct wpa_driver_ndis_data *drv, unsigned int oid, in ndis_get_oid() argument
464 o->Oid = oid; in ndis_get_oid()
472 "failed (oid=%08x): %d", oid, (int) GetLastError()); in ndis_get_oid()
479 "too short", oid, (unsigned int) written); in ndis_get_oid()
486 "len (%d)",oid, (unsigned int) written, len); in ndis_get_oid()
503 o->Oid = oid; in ndis_get_oid()
508 __func__, oid, len); in ndis_get_oid()
514 __func__, oid, (unsigned int) o->Length, len); in ndis_get_oid()
526 static int ndis_set_oid(struct wpa_driver_ndis_data *drv, unsigned int oid, in ndis_set_oid() argument
535 os_snprintf(txt, sizeof(txt), "NDIS: Set OID %08x", oid); in ndis_set_oid()
[all …]
/hostap-3.7.0/src/utils/
Dhttp-utils.h15 char *oid; member
Dhttp_curl.c224 on->oid = os_strdup(txt); in add_alt_name_othername()
225 if (on->oid == NULL) in add_alt_name_othername()
892 os_free(hcert->othername[i].oid); in parse_cert_free()
964 if (os_strcmp(hcert.othername[i].oid, in http_parse_x509_certificate()
981 hcert.othername[i].oid); in http_parse_x509_certificate()