| 1 |
|
| #include "scan.h" |
| 2 |
|
| |
| 3 |
|
| void |
| 4 |
2 |
| scan_modify_dn_request(const char** src, const char* max, HV *out) { |
| 5 |
|
| STRLEN len; |
| 6 |
|
| SV *sv; |
| 7 |
|
| U32 del; |
| 8 |
|
| |
| 9 |
2 |
| sv = newSV(0); |
| 10 |
2 |
| hv_stores(out, "dn", sv); |
| 11 |
2 |
| scan_string_utf8(src, max, sv); |
| 12 |
|
| |
| 13 |
2 |
| sv = newSV(0); |
| 14 |
2 |
| hv_stores(out, "new_rdn", sv); |
| 15 |
2 |
| scan_string_utf8(src, max, sv); |
| 16 |
|
| |
| 17 |
2 |
| scan_bool(src, max, &del); |
| 18 |
2 |
▶ | if (del) |
Branch: 1 branch
| Branch | True | False | Total |
| if (del) |
2 |
0 |
2 |
|
| 19 |
2 |
| hv_stores(out, "delete_old_rdn", newSVsv(&PL_sv_yes)); |
| 20 |
|
| |
| 21 |
2 |
▶ | if (*src < max) { |
Branch: 1 branch
| Branch | True | False | Total |
| if (*src < max) { |
2 |
0 |
2 |
|
| 22 |
|
| U8 type; |
| 23 |
|
| U32 tag; |
| 24 |
2 |
| sv = newSV(0); |
| 25 |
2 |
| hv_stores(out, "new_superior", sv); |
| 26 |
2 |
| scan_raw(src, max, &type, &tag, sv); |
| 27 |
2 |
▶ | if (type != (ASN1_CONTEXT_SPECIFIC|ASN1_PRIMITIVE) || tag != 0) |
Branch: 2 branches
| Branch | True | False | Total |
| if (type != (ASN1_CONTEXT_SPECIFIC|ASN1_PRIMITIVE) || tag != 0) |
2 |
0 |
2 |
| if (type != (ASN1_CONTEXT_SPECIFIC|ASN1_PRIMITIVE) || tag != 0) |
0 |
2 |
2 |
|
| 28 |
0 |
| croak("scan_modify_dn_request: bad value"); |
| 29 |
|
| |
| 30 |
2 |
▶ | if (!sv_utf8_decode(sv)) |
Branch: 1 branch
| Branch | True | False | Total |
| if (!sv_utf8_decode(sv)) |
0 |
2 |
2 |
|
| 31 |
0 |
| croak("scan_string_utf8: invalid UTF8 data received"); |
| 32 |
|
| } |
| 33 |
2 |
| } |
| 34 |
|
| |
| 35 |
|
| |
| 36 |
|
| |
| 37 |
|
| |
| 38 |
|
| |