Lines Matching refs:ucs2

246 len_string(int ucs2, const char *s)  in len_string()  argument
249 if (ucs2) in len_string()
259 ret_string(krb5_storage *sp, int ucs2, size_t len, char **s) in ret_string() argument
270 if (ucs2) { in ret_string()
290 ret_sec_string(krb5_storage *sp, int ucs2, struct sec_buffer *desc, char **s) in ret_sec_string() argument
294 CHECK(ret_string(sp, ucs2, desc->length, s), 0); in ret_sec_string()
300 put_string(krb5_storage *sp, int ucs2, const char *s) in put_string() argument
305 if (ucs2) { in put_string()
315 if (ucs2) in put_string()
370 encode_ti_string(krb5_storage *out, uint16_t type, int ucs2, char *s) in encode_ti_string() argument
374 CHECK(krb5_store_uint16(out, len_string(ucs2, s)), 0); in encode_ti_string()
375 CHECK(put_string(out, ucs2, s), 0); in encode_ti_string()
396 int ucs2, in heim_ntlm_encode_targetinfo() argument
412 CHECK(encode_ti_string(out, 1, ucs2, ti->servername), 0); in heim_ntlm_encode_targetinfo()
414 CHECK(encode_ti_string(out, 2, ucs2, ti->domainname), 0); in heim_ntlm_encode_targetinfo()
416 CHECK(encode_ti_string(out, 3, ucs2, ti->dnsservername), 0); in heim_ntlm_encode_targetinfo()
418 CHECK(encode_ti_string(out, 4, ucs2, ti->dnsdomainname), 0); in heim_ntlm_encode_targetinfo()
420 CHECK(encode_ti_string(out, 5, ucs2, ti->dnstreename), 0); in heim_ntlm_encode_targetinfo()
457 int ucs2, in heim_ntlm_decode_targetinfo() argument
483 CHECK(ret_string(in, ucs2, len, &ti->servername), 0); in heim_ntlm_decode_targetinfo()
486 CHECK(ret_string(in, ucs2, len, &ti->domainname), 0); in heim_ntlm_decode_targetinfo()
489 CHECK(ret_string(in, ucs2, len, &ti->dnsservername), 0); in heim_ntlm_decode_targetinfo()
492 CHECK(ret_string(in, ucs2, len, &ti->dnsdomainname), 0); in heim_ntlm_decode_targetinfo()
495 CHECK(ret_string(in, ucs2, len, &ti->dnstreename), 0); in heim_ntlm_decode_targetinfo()
687 int ucs2 = 0; in heim_ntlm_decode_type2() local
706 ucs2 = 1; in heim_ntlm_decode_type2()
718 CHECK(ret_sec_string(in, ucs2, &targetname, &type2->targetname), 0); in heim_ntlm_decode_type2()
751 int ucs2 = 0; in heim_ntlm_encode_type2() local
759 ucs2 = 1; in heim_ntlm_encode_type2()
762 targetname.length = len_string(ucs2, type2->targetname); in heim_ntlm_encode_type2()
789 CHECK(put_string(out, ucs2, type2->targetname), 0); in heim_ntlm_encode_type2()
836 int ucs2, in heim_ntlm_decode_type3() argument
887 CHECK(ret_sec_string(in, ucs2, &target, &type3->targetname), 0); in heim_ntlm_decode_type3()
888 CHECK(ret_sec_string(in, ucs2, &username, &type3->username), 0); in heim_ntlm_decode_type3()
889 CHECK(ret_sec_string(in, ucs2, &ws, &type3->ws), 0); in heim_ntlm_decode_type3()
922 int ucs2 = 0; in heim_ntlm_encode_type3() local
941 ucs2 = 1; in heim_ntlm_encode_type3()
944 target.length = len_string(ucs2, type3->targetname); in heim_ntlm_encode_type3()
948 username.length = len_string(ucs2, type3->username); in heim_ntlm_encode_type3()
952 ws.length = len_string(ucs2, type3->ws); in heim_ntlm_encode_type3()
989 CHECK(put_string(out, ucs2, type3->targetname), 0); in heim_ntlm_encode_type3()
990 CHECK(put_string(out, ucs2, type3->username), 0); in heim_ntlm_encode_type3()
991 CHECK(put_string(out, ucs2, type3->ws), 0); in heim_ntlm_encode_type3()