Lines Matching refs:want
114 size_t want = HEADER_SIZE; in asn1_d2i_read_bio() local
133 if (want >= diff) { in asn1_d2i_read_bio()
134 want -= diff; in asn1_d2i_read_bio()
136 if (len + want < len || !BUF_MEM_grow_clean(b, len + want)) { in asn1_d2i_read_bio()
140 i = BIO_read(in, &(b->data[len]), want); in asn1_d2i_read_bio()
151 if ((size_t)i < want) in asn1_d2i_read_bio()
182 want = HEADER_SIZE; in asn1_d2i_read_bio()
189 want = HEADER_SIZE; in asn1_d2i_read_bio()
192 want = slen; in asn1_d2i_read_bio()
193 if (want > (len - off)) { in asn1_d2i_read_bio()
196 want -= (len - off); in asn1_d2i_read_bio()
197 if (want > INT_MAX /* BIO_read takes an int length */ || in asn1_d2i_read_bio()
198 len + want < len) { in asn1_d2i_read_bio()
202 while (want > 0) { in asn1_d2i_read_bio()
209 size_t chunk = want > chunk_max ? chunk_max : want; in asn1_d2i_read_bio()
215 want -= chunk; in asn1_d2i_read_bio()
241 want = HEADER_SIZE; in asn1_d2i_read_bio()