Lines Matching refs:types
79 * of permissible ASN1 string types. It then works out the minimal type
323 unsigned long types;
324 types = *((unsigned long *)arg);
325 if ((types & B_ASN1_PRINTABLESTRING) && !is_printable(value))
326 types &= ~B_ASN1_PRINTABLESTRING;
327 if ((types & B_ASN1_IA5STRING) && (value > 127))
328 types &= ~B_ASN1_IA5STRING;
329 if ((types & B_ASN1_T61STRING) && (value > 0xff))
330 types &= ~B_ASN1_T61STRING;
331 if ((types & B_ASN1_BMPSTRING) && (value > 0xffff))
332 types &= ~B_ASN1_BMPSTRING;
333 if (!types)
335 *((unsigned long *)arg) = types;