Lines Matching refs:value
17 int (*rfunc) (unsigned long value, void *in),
19 static int in_utf8(unsigned long value, void *arg);
20 static int out_utf8(unsigned long value, void *arg);
21 static int type_str(unsigned long value, void *arg);
22 static int cpy_asc(unsigned long value, void *arg);
23 static int cpy_bmp(unsigned long value, void *arg);
24 static int cpy_univ(unsigned long value, void *arg);
25 static int cpy_utf8(unsigned long value, void *arg);
209 int (*rfunc) (unsigned long value, void *in), in traverse_string()
212 unsigned long value; in traverse_string() local
216 value = *p++; in traverse_string()
219 value = *p++ << 8; in traverse_string()
220 value |= *p++; in traverse_string()
223 value = ((unsigned long)*p++) << 24; in traverse_string()
224 value |= ((unsigned long)*p++) << 16; in traverse_string()
225 value |= *p++ << 8; in traverse_string()
226 value |= *p++; in traverse_string()
229 ret = UTF8_getc(p, len, &value); in traverse_string()
236 ret = rfunc(value, arg); in traverse_string()
248 static int in_utf8(unsigned long value, void *arg) in in_utf8() argument
252 if (!is_unicode_valid(value)) in in_utf8()
261 static int out_utf8(unsigned long value, void *arg) in out_utf8() argument
265 len = UTF8_putc(NULL, -1, value); in out_utf8()
278 static int type_str(unsigned long value, void *arg) in type_str() argument
281 const int native = value > INT_MAX ? INT_MAX : ossl_fromascii(value); in type_str()
290 if ((types & B_ASN1_T61STRING) && (value > 0xff)) in type_str()
292 if ((types & B_ASN1_BMPSTRING) && (value > 0xffff)) in type_str()
294 if ((types & B_ASN1_UTF8STRING) && !is_unicode_valid(value)) in type_str()
304 static int cpy_asc(unsigned long value, void *arg) in cpy_asc() argument
309 *q = (unsigned char)value; in cpy_asc()
316 static int cpy_bmp(unsigned long value, void *arg) in cpy_bmp() argument
321 *q++ = (unsigned char)((value >> 8) & 0xff); in cpy_bmp()
322 *q = (unsigned char)(value & 0xff); in cpy_bmp()
329 static int cpy_univ(unsigned long value, void *arg) in cpy_univ() argument
334 *q++ = (unsigned char)((value >> 24) & 0xff); in cpy_univ()
335 *q++ = (unsigned char)((value >> 16) & 0xff); in cpy_univ()
336 *q++ = (unsigned char)((value >> 8) & 0xff); in cpy_univ()
337 *q = (unsigned char)(value & 0xff); in cpy_univ()
344 static int cpy_utf8(unsigned long value, void *arg) in cpy_utf8() argument
350 ret = UTF8_putc(*p, 0xff, value); in cpy_utf8()