pack_bind_response.c

filter: Statementstmt 100% 11 / 11 Branchbran 50.0% 2 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 86.6% 13 / 15 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« pack_extended_request.c ↑ Summary pack_length.c »
1 #include "pack.h"
2 #include "util.h"
3  
4 void
5 1 pack_bind_response_args(SV *dest, I32 result,
6 SV *matched_dn, SV *message, SV *referrals,
7 SV *sasl_credentials) {
8  
9 1 STRLEN offset = start_constructed(dest, ASN1_APPLICATION|ASN1_CONSTRUCTED, LDAP_OP_BIND_RESPONSE);
10 1 pack_result_response_nowrap(dest, result, matched_dn, message, referrals);
11 1 ▶ if (sasl_credentials && SvOK(sasl_credentials))
Branch: 2 branches
BranchTrueFalseTotal
if (sasl_credentials && SvOK(sasl_credentials)) 1 0 1
if (sasl_credentials && SvOK(sasl_credentials)) 1 0 1
12 1 pack_raw_utf8(dest, ASN1_CONTEXT_SPECIFIC|ASN1_PRIMITIVE, 7, sasl_credentials);
13  
14 1 end_constructed(dest, offset);
15 1 }
16  
17 void
18 1 pack_bind_response_ref(SV *dest, HV *hv) {
19 2 pack_bind_response_args(dest,
20 1 SvIV(hv_fetchs_def_no(hv, "result")),
21 hv_fetchs_def_no(hv, "matched_dn"),
22 hv_fetchs_def_no(hv, "message"),
23 hv_fetchs_def_undef(hv, "referrals"),
24 hv_fetchs_def_undef(hv, "sasl_credentials"));
25 1 }
« pack_extended_request.c ↑ Summary pack_length.c »