| 1 |
|
| #include "scan.h" |
| 2 |
|
| |
| 3 |
|
| void |
| 4 |
0 |
| scan_intermediate_response(const char **src, const char *max, HV *out) { |
| 5 |
0 |
▶ | if (*src < max) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (*src < max) { |
0 |
0 |
0 |
|
| 6 |
|
| SV *sv; |
| 7 |
|
| U8 type; |
| 8 |
|
| U32 tag; |
| 9 |
0 |
| scan_tag(src, max, &type, &tag); |
| 10 |
0 |
▶ | if (tag == 0) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (tag == 0) { |
0 |
0 |
0 |
|
| 11 |
|
| SV *name; |
| 12 |
0 |
▶ | if (type != (ASN1_CONTEXT_SPECIFIC | ASN1_PRIMITIVE)) |
Branch: 1 branch
| Branch | True | False | Total |
| if (type != (ASN1_CONTEXT_SPECIFIC | ASN1_PRIMITIVE)) |
0 |
0 |
0 |
|
| 13 |
0 |
| croak("scan_intermediate_response: bad packet data"); |
| 14 |
0 |
| name = newSV(0); |
| 15 |
0 |
| hv_stores(out, "name", name); |
| 16 |
0 |
| scan_raw_notag(src, max, name); |
| 17 |
0 |
▶ | if (*src == max) return; |
Branch: 1 branch
| Branch | True | False | Total |
| if (*src == max) return; |
0 |
0 |
0 |
|
| 18 |
0 |
| scan_tag(src, max, &type, &tag); |
| 19 |
|
| } |
| 20 |
0 |
▶ | if (tag == 1) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (tag == 1) { |
0 |
0 |
0 |
|
| 21 |
|
| SV *value; |
| 22 |
0 |
▶ | if (type != (ASN1_CONTEXT_SPECIFIC | ASN1_PRIMITIVE)) |
Branch: 1 branch
| Branch | True | False | Total |
| if (type != (ASN1_CONTEXT_SPECIFIC | ASN1_PRIMITIVE)) |
0 |
0 |
0 |
|
| 23 |
0 |
| croak("scan_intermediate_response: bad packet data"); |
| 24 |
0 |
| value = newSV(0); |
| 25 |
0 |
| hv_stores(out, "value", value); |
| 26 |
0 |
| scan_raw_notag(src, max, value); |
| 27 |
0 |
▶ | if (*src == max) return; |
Branch: 1 branch
| Branch | True | False | Total |
| if (*src == max) return; |
0 |
0 |
0 |
|
| 28 |
|
| } |
| 29 |
0 |
| croak("scan_intermediate_response: bad packet data"); |
| 30 |
|
| } |
| 31 |
|
| } |