Home | History | Annotate | Download | only in wpa_supplicant

Lines Matching full:len

23 int asn1_get_next(const u8 *buf, size_t len, struct asn1_hdr *hdr)
30 end = buf + len;
88 int asn1_get_oid(const u8 *buf, size_t len, struct asn1_oid *oid,
98 if (asn1_get_next(buf, len, &hdr) < 0 || hdr.length == 0)
121 if (oid->len >= ASN1_MAX_OID_LEN) {
125 if (oid->len == 0) {
135 oid->len = 2;
137 oid->oid[oid->len++] = val;
144 void asn1_oid_to_str(struct asn1_oid *oid, char *buf, size_t len)
150 if (len == 0)
155 for (i = 0; i < oid->len; i++) {
156 ret = os_snprintf(pos, buf + len - pos,
159 if (ret < 0 || ret >= buf + len - pos)
163 buf[len - 1] = '\0';
184 unsigned long asn1_bit_string_to_long(const u8 *buf, size_t len)
193 if (len >= 2)
195 if (len >= 3)
197 if (len >= 4)
199 if (len >= 5)
201 if (len >= 6)
204 __func__, (unsigned long) len);