Lines Matching full:oid

16 	.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 },
66 .oid = { 1, 2, 840, 113549, 1, 9, 16, 3, 23 },
71 .oid = { 1, 2, 840, 113549, 1, 9, 16, 3, 24 },
76 .oid = { 1, 2, 840, 113549, 1, 5, 12 },
81 .oid = { 1, 2, 840, 113549, 2, 9 },
86 .oid = { 1, 2, 840, 113549, 2, 10 },
91 .oid = { 1, 2, 840, 113549, 2, 11 },
96 .oid = { 1, 3, 6, 1, 4, 1, 40808, 1, 2, 1 },
101 .oid = { 1, 3, 6, 1, 4, 1, 40808, 1, 2, 2 },
210 int asn1_parse_oid(const u8 *buf, size_t len, struct asn1_oid *oid) in asn1_parse_oid() argument
216 os_memset(oid, 0, sizeof(*oid)); in asn1_parse_oid()
231 if (oid->len >= ASN1_MAX_OID_LEN) { in asn1_parse_oid()
232 wpa_printf(MSG_DEBUG, "ASN.1: Too long OID value"); in asn1_parse_oid()
235 if (oid->len == 0) { in asn1_parse_oid()
241 oid->oid[0] = val / 40; in asn1_parse_oid()
242 if (oid->oid[0] > 2) in asn1_parse_oid()
243 oid->oid[0] = 2; in asn1_parse_oid()
244 oid->oid[1] = val - oid->oid[0] * 40; in asn1_parse_oid()
245 oid->len = 2; in asn1_parse_oid()
247 oid->oid[oid->len++] = val; in asn1_parse_oid()
254 int asn1_get_oid(const u8 *buf, size_t len, struct asn1_oid *oid, in asn1_get_oid() argument
263 wpa_printf(MSG_DEBUG, "ASN.1: Expected OID - found class %d " in asn1_get_oid()
270 return asn1_parse_oid(hdr.payload, hdr.length, oid); in asn1_get_oid()
274 void asn1_oid_to_str(const struct asn1_oid *oid, char *buf, size_t len) in asn1_oid_to_str() argument
285 for (i = 0; i < oid->len; i++) { in asn1_oid_to_str()
288 i == 0 ? "" : ".", oid->oid[i]); in asn1_oid_to_str()
348 if (a->oid[i] != b->oid[i]) in asn1_oid_equal()
411 int asn1_get_alg_id(const u8 *buf, size_t len, struct asn1_oid *oid, in asn1_get_alg_id() argument
423 asn1_get_oid(hdr.payload, hdr.length, oid, &pos) < 0) in asn1_get_alg_id()
478 void asn1_put_oid(struct wpabuf *buf, const struct asn1_oid *oid) in asn1_put_oid() argument
483 if (oid->len < 2) in asn1_put_oid()
487 wpabuf_put_u8(buf, 40 * oid->oid[0] + oid->oid[1]); in asn1_put_oid()
488 for (i = 2; i < oid->len; i++) { in asn1_put_oid()
489 unsigned long val = oid->oid[i]; in asn1_put_oid()
543 struct wpabuf * asn1_build_alg_id(const struct asn1_oid *oid, in asn1_build_alg_id() argument
561 asn1_put_oid(buf, oid); in asn1_build_alg_id()