| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | int | - |
| 4 | ASN1_PRINTABLE_type(const unsigned char *s, int len) | - |
| 5 | { | - |
| 6 | int c; | - |
| 7 | int ia5 = 0; | - |
| 8 | int t61 = 0; | - |
| 9 | | - |
| 10 | if (len <= 0| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 11 | len = -1; never executed: len = -1; | 0 |
| 12 | if (s == | TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 13 | ((void *)0)| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 14 | ) | - |
| 15 | return never executed: return (19); (19);never executed: return (19); | 0 |
| 16 | | - |
| 17 | while ((*| TRUE | never evaluated | | FALSE | never evaluated |
s)| TRUE | never evaluated | | FALSE | never evaluated |
&& (| TRUE | never evaluated | | FALSE | never evaluated |
len-- != 0)| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 18 | c= *(s++); | - |
| 19 | if (!(((| TRUE | never evaluated | | FALSE | never evaluated |
c >= 'a')| TRUE | never evaluated | | FALSE | never evaluated |
&& (| TRUE | never evaluated | | FALSE | never evaluated |
c <= 'z')| TRUE | never evaluated | | FALSE | never evaluated |
) || | 0 |
| 20 | ((| TRUE | never evaluated | | FALSE | never evaluated |
c >= 'A')| TRUE | never evaluated | | FALSE | never evaluated |
&& (| TRUE | never evaluated | | FALSE | never evaluated |
c <= 'Z')| TRUE | never evaluated | | FALSE | never evaluated |
) || | 0 |
| 21 | (| TRUE | never evaluated | | FALSE | never evaluated |
c == ' ')| TRUE | never evaluated | | FALSE | never evaluated |
|| | 0 |
| 22 | ((| TRUE | never evaluated | | FALSE | never evaluated |
c >= '0')| TRUE | never evaluated | | FALSE | never evaluated |
&& (| TRUE | never evaluated | | FALSE | never evaluated |
c <= '9')| TRUE | never evaluated | | FALSE | never evaluated |
) || | 0 |
| 23 | (| TRUE | never evaluated | | FALSE | never evaluated |
c == ' ')| TRUE | never evaluated | | FALSE | never evaluated |
|| (| TRUE | never evaluated | | FALSE | never evaluated |
c == '\'')| TRUE | never evaluated | | FALSE | never evaluated |
|| | 0 |
| 24 | (| TRUE | never evaluated | | FALSE | never evaluated |
c == '(')| TRUE | never evaluated | | FALSE | never evaluated |
|| (| TRUE | never evaluated | | FALSE | never evaluated |
c == ')')| TRUE | never evaluated | | FALSE | never evaluated |
|| | 0 |
| 25 | (| TRUE | never evaluated | | FALSE | never evaluated |
c == '+')| TRUE | never evaluated | | FALSE | never evaluated |
|| (| TRUE | never evaluated | | FALSE | never evaluated |
c == ',')| TRUE | never evaluated | | FALSE | never evaluated |
|| | 0 |
| 26 | (| TRUE | never evaluated | | FALSE | never evaluated |
c == '-')| TRUE | never evaluated | | FALSE | never evaluated |
|| (| TRUE | never evaluated | | FALSE | never evaluated |
c == '.')| TRUE | never evaluated | | FALSE | never evaluated |
|| | 0 |
| 27 | (| TRUE | never evaluated | | FALSE | never evaluated |
c == '/')| TRUE | never evaluated | | FALSE | never evaluated |
|| (| TRUE | never evaluated | | FALSE | never evaluated |
c == ':')| TRUE | never evaluated | | FALSE | never evaluated |
|| | 0 |
| 28 | (| TRUE | never evaluated | | FALSE | never evaluated |
c == '=')| TRUE | never evaluated | | FALSE | never evaluated |
|| (| TRUE | never evaluated | | FALSE | never evaluated |
c == '?')| TRUE | never evaluated | | FALSE | never evaluated |
)) | 0 |
| 29 | ia5 = 1; never executed: ia5 = 1; | 0 |
| 30 | if (c & 0x80| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 31 | t61 = 1; never executed: t61 = 1; | 0 |
| 32 | } never executed: end of block | 0 |
| 33 | if (t61| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 34 | return never executed: return (20); (20);never executed: return (20); | 0 |
| 35 | if (ia5| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 36 | return never executed: return (22); (22);never executed: return (22); | 0 |
| 37 | return never executed: return (19); (19);never executed: return (19); | 0 |
| 38 | } | - |
| 39 | | - |
| 40 | int | - |
| 41 | ASN1_UNIVERSALSTRING_to_string(ASN1_UNIVERSALSTRING *s) | - |
| 42 | { | - |
| 43 | int i; | - |
| 44 | unsigned char *p; | - |
| 45 | | - |
| 46 | if (s->type != 28| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 47 | return never executed: return (0); (0);never executed: return (0); | 0 |
| 48 | if ((| TRUE | never evaluated | | FALSE | never evaluated |
s->length % 4) != 0| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 49 | return never executed: return (0); (0);never executed: return (0); | 0 |
| 50 | p = s->data; | - |
| 51 | for (i = 0; i < s->length| TRUE | never evaluated | | FALSE | never evaluated |
; i += 4) { | 0 |
| 52 | if ((| TRUE | never evaluated | | FALSE | never evaluated |
p[0] != '\0')| TRUE | never evaluated | | FALSE | never evaluated |
|| (| TRUE | never evaluated | | FALSE | never evaluated |
p[1] != '\0')| TRUE | never evaluated | | FALSE | never evaluated |
|| (| TRUE | never evaluated | | FALSE | never evaluated |
p[2] != '\0')| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 53 | break; never executed: break; | 0 |
| 54 | else | - |
| 55 | p += 4; never executed: p += 4; | 0 |
| 56 | } | - |
| 57 | if (i < s->length| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 58 | return never executed: return (0); (0);never executed: return (0); | 0 |
| 59 | p = s->data; | - |
| 60 | for (i = 3; i < s->length| TRUE | never evaluated | | FALSE | never evaluated |
; i += 4) { | 0 |
| 61 | *(p++) = s->data[i]; | - |
| 62 | } never executed: end of block | 0 |
| 63 | *(p) = '\0'; | - |
| 64 | s->length /= 4; | - |
| 65 | s->type = ASN1_PRINTABLE_type(s->data, s->length); | - |
| 66 | return never executed: return (1); (1);never executed: return (1); | 0 |
| 67 | } | - |
| | |