• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/crypto/heimdal/lib/ntlm/

Lines Matching defs:ucs2

241  * Strings are either OEM or UNICODE. The later is encoded as ucs2 on
246 len_string(int ucs2, const char *s)
249 if (ucs2)
259 ret_string(krb5_storage *sp, int ucs2, size_t len, char **s)
270 if (ucs2) {
290 ret_sec_string(krb5_storage *sp, int ucs2, struct sec_buffer *desc, char **s)
294 CHECK(ret_string(sp, ucs2, desc->length, s), 0);
300 put_string(krb5_storage *sp, int ucs2, const char *s)
305 if (ucs2) {
315 if (ucs2)
370 encode_ti_string(krb5_storage *out, uint16_t type, int ucs2, char *s)
374 CHECK(krb5_store_uint16(out, len_string(ucs2, s)), 0);
375 CHECK(put_string(out, ucs2, s), 0);
384 * @param ucs2 ignored
396 int ucs2,
412 CHECK(encode_ti_string(out, 1, ucs2, ti->servername), 0);
414 CHECK(encode_ti_string(out, 2, ucs2, ti->domainname), 0);
416 CHECK(encode_ti_string(out, 3, ucs2, ti->dnsservername), 0);
418 CHECK(encode_ti_string(out, 4, ucs2, ti->dnsdomainname), 0);
420 CHECK(encode_ti_string(out, 5, ucs2, ti->dnstreename), 0);
446 * @param ucs2 if the strings should be encoded with ucs2 (selected by flag in message).
457 int ucs2,
483 CHECK(ret_string(in, ucs2, len, &ti->servername), 0);
486 CHECK(ret_string(in, ucs2, len, &ti->domainname), 0);
489 CHECK(ret_string(in, ucs2, len, &ti->dnsservername), 0);
492 CHECK(ret_string(in, ucs2, len, &ti->dnsdomainname), 0);
495 CHECK(ret_string(in, ucs2, len, &ti->dnstreename), 0);
687 int ucs2 = 0;
706 ucs2 = 1;
718 CHECK(ret_sec_string(in, ucs2, &targetname, &type2->targetname), 0);
751 int ucs2 = 0;
759 ucs2 = 1;
762 targetname.length = len_string(ucs2, type2->targetname);
789 CHECK(put_string(out, ucs2, type2->targetname), 0);
836 int ucs2,
887 CHECK(ret_sec_string(in, ucs2, &target, &type3->targetname), 0);
888 CHECK(ret_sec_string(in, ucs2, &username, &type3->username), 0);
889 CHECK(ret_sec_string(in, ucs2, &ws, &type3->ws), 0);
922 int ucs2 = 0;
941 ucs2 = 1;
944 target.length = len_string(ucs2, type3->targetname);
948 username.length = len_string(ucs2, type3->username);
952 ws.length = len_string(ucs2, type3->ws);
989 CHECK(put_string(out, ucs2, type3->targetname), 0);
990 CHECK(put_string(out, ucs2, type3->username), 0);
991 CHECK(put_string(out, ucs2, type3->ws), 0);
1397 /* uppercase username and turn it into ucs2-le */
1403 /* uppercase target and turn into ucs2-le */