| 1 | #include "pack.h" | ||
| 2 | #include "util.h" | ||
| 3 | |||
| 4 | void | ||
| 5 | 0 | pack_search_reference_response_args(SV *dest, SV **args, I32 n) { | |
| 6 | 0 | STRLEN offset = start_constructed(dest, ASN1_APPLICATION|ASN1_CONSTRUCTED, LDAP_OP_SEARCH_REFERENCE_RESPONSE); | |
| 7 | 0 | pack_array_of_string_utf8_v(dest, args, n); | |
| 8 | 0 | end_constructed(dest, offset); | |
| 9 | 0 | } | |
| 10 | |||
| 11 | void | ||
| 12 | 1 | pack_search_reference_response_ref(SV *dest, HV *hv) { | |
| 13 | 1 | STRLEN offset = start_constructed(dest, ASN1_APPLICATION|ASN1_CONSTRUCTED, LDAP_OP_SEARCH_REFERENCE_RESPONSE); | |
| 14 | 1 | pack_array_of_string_utf8(dest, hv_fetchs_def_undef(hv, "uris")); | |
| 15 | 1 | end_constructed(dest, offset); | |
| 16 | 1 | } |