Lines Matching refs:ucs2
299 * Strings are either OEM or UNICODE. The later is encoded as ucs2 on
304 len_string(int ucs2, const char *s)
306 if (ucs2) {
324 ret_string(krb5_storage *sp, int ucs2, size_t len, char **s)
336 if (ucs2) {
377 ret_sec_string(krb5_storage *sp, int ucs2, struct sec_buffer *desc, char **s)
381 CHECK(ret_string(sp, ucs2, desc->length, s), 0);
387 put_string(krb5_storage *sp, int ucs2, const char *s)
392 if (ucs2) {
402 if (ucs2)
459 encode_ti_string(krb5_storage *out, uint16_t type, int ucs2, char *s)
463 CHECK(krb5_store_uint16(out, len_string(ucs2, s)), 0);
464 CHECK(put_string(out, ucs2, s), 0);
473 * @param ucs2 ignored
485 int ucs2,
501 CHECK(encode_ti_string(out, 1, ucs2, ti->servername), 0);
503 CHECK(encode_ti_string(out, 2, ucs2, ti->domainname), 0);
505 CHECK(encode_ti_string(out, 3, ucs2, ti->dnsservername), 0);
507 CHECK(encode_ti_string(out, 4, ucs2, ti->dnsdomainname), 0);
509 CHECK(encode_ti_string(out, 5, ucs2, ti->dnstreename), 0);
522 CHECK(encode_ti_string(out, 9, ucs2, ti->targetname), 0);
549 * @param ucs2 if the strings should be encoded with ucs2 (selected by flag in message).
560 int ucs2,
586 CHECK(ret_string(in, ucs2, len, &ti->servername), 0);
589 CHECK(ret_string(in, ucs2, len, &ti->domainname), 0);
592 CHECK(ret_string(in, ucs2, len, &ti->dnsservername), 0);
595 CHECK(ret_string(in, ucs2, len, &ti->dnsdomainname), 0);
598 CHECK(ret_string(in, ucs2, len, &ti->dnstreename), 0);
675 int ucs2;
692 ucs2
707 CHECK(ret_sec_string(in, ucs2, &domain, &data->domain), 0);
709 CHECK(ret_sec_string(in, ucs2, &hostname, &data->hostname), 0);
740 int ucs2 = 0;
746 ucs2 = 1;
761 domain.length = len_string(ucs2, type1->domain);
771 hostname.length = len_string(ucs2, type1->hostname);
796 CHECK(put_string(out, ucs2, type1->domain), 0);
798 CHECK(put_string(out, ucs2, type1->hostname), 0);
837 int ucs2 = 0;
856 ucs2 = 1;
868 CHECK(ret_sec_string(in, ucs2, &targetname, &type2->targetname), 0);
901 int ucs2 = 0;
909 ucs2 = 1;
912 targetname.length = len_string(ucs2, type2->targetname);
938 CHECK(put_string(out, ucs2, type2->targetname), 0);
985 int ucs2,
1039 CHECK(ret_sec_string(in, ucs2, &target, &type3->targetname), 0);
1040 CHECK(ret_sec_string(in, ucs2, &username, &type3->username), 0);
1041 CHECK(ret_sec_string(in, ucs2, &ws, &type3->ws), 0);
1075 int ucs2 = 0;
1097 ucs2 = 1;
1100 target.length = len_string(ucs2, type3->targetname);
1104 username.length = len_string(ucs2, type3->username);
1108 ws.length = len_string(ucs2, type3->ws);
1150 CHECK(put_string(out, ucs2, type3->targetname), 0);
1151 CHECK(put_string(out, ucs2, type3->username), 0);
1152 CHECK(put_string(out, ucs2, type3->ws), 0);
1583 /* uppercase username and turn it into ucs2-le */
1589 /* turn target into ucs2-le */