Lines Matching refs:oid
15 .oid = { 1, 3, 14, 3, 2, 26 },
20 .oid = { 2, 16, 840, 1, 101, 3, 4, 2, 1 },
98 int asn1_parse_oid(const u8 *buf, size_t len, struct asn1_oid *oid) in asn1_parse_oid() argument
104 os_memset(oid, 0, sizeof(*oid)); in asn1_parse_oid()
119 if (oid->len >= ASN1_MAX_OID_LEN) { in asn1_parse_oid()
123 if (oid->len == 0) { in asn1_parse_oid()
129 oid->oid[0] = val / 40; in asn1_parse_oid()
130 if (oid->oid[0] > 2) in asn1_parse_oid()
131 oid->oid[0] = 2; in asn1_parse_oid()
132 oid->oid[1] = val - oid->oid[0] * 40; in asn1_parse_oid()
133 oid->len = 2; in asn1_parse_oid()
135 oid->oid[oid->len++] = val; in asn1_parse_oid()
142 int asn1_get_oid(const u8 *buf, size_t len, struct asn1_oid *oid, in asn1_get_oid() argument
158 return asn1_parse_oid(hdr.payload, hdr.length, oid); in asn1_get_oid()
162 void asn1_oid_to_str(const struct asn1_oid *oid, char *buf, size_t len) in asn1_oid_to_str() argument
173 for (i = 0; i < oid->len; i++) { in asn1_oid_to_str()
176 i == 0 ? "" : ".", oid->oid[i]); in asn1_oid_to_str()
236 if (a->oid[i] != b->oid[i]) in asn1_oid_equal()