pack_compare_request.c

filter: Statementstmt 100% 12 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 100% 12 / 12 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« pack_abandon_request.c ↑ Summary pack_delete_request.c »
1 #include "pack.h"
2 #include "util.h"
3  
4 void
5 1 pack_compare_request_args(SV *dest, SV *dn, SV *attribute, SV *value) {
6 STRLEN offset1, offset2;
7 1 offset1 = start_constructed(dest, ASN1_APPLICATION|ASN1_CONSTRUCTED, LDAP_OP_COMPARE_REQUEST);
8 1 pack_string_utf8(dest, dn);
9 1 offset2 = start_sequence(dest);
10 1 pack_string_utf8(dest, attribute);
11 1 pack_string_utf8(dest, value);
12 1 end_sequence(dest, offset2);
13 1 end_constructed(dest, offset1);
14 1 }
15  
16 void
17 1 pack_compare_request_ref(SV *dest, HV *hv) {
18 1 pack_compare_request_args(dest,
19 hv_fetchs_def_undef(hv, "dn"),
20 hv_fetchs_def_undef(hv, "attribute"),
21 hv_fetchs_def_undef(hv, "value"));
22 1 }
« pack_abandon_request.c ↑ Summary pack_delete_request.c »