Stefan Metzmacher
2017-04-17 19:24:40 UTC
Hi Robbie,
is there a reson why you still limit this to USC-2 and not use full UTF16
support?
We had a lot of trouble with the limited unicode support of krb5 libraries
in Samba recently, see https://bugzilla.samba.org/show_bug.cgi?id=12262
For now we worked arround it in Samba by limiting random machine passwords
to unicode codepoints up to 0xffff.
metze
is there a reson why you still limit this to USC-2 and not use full UTF16
support?
We had a lot of trouble with the limited unicode support of krb5 libraries
in Samba recently, see https://bugzilla.samba.org/show_bug.cgi?id=12262
For now we worked arround it in Samba by limiting random machine passwords
to unicode codepoints up to 0xffff.
metze
https://github.com/krb5/krb5/commit/c4e8d444632140ecb47f31df133c0657f07f9be0
commit c4e8d444632140ecb47f31df133c0657f07f9be0
Date: Thu Apr 6 12:15:39 2017 -0400
Modernize UTF-8/UCS-2 conversion code
Remove unused entry points as we only need to convert between
little-endian UCS-2 byte buffers and UTF-8. Rename and simplify the
remaining two function contracts. Avoid pointer alignment and
endianness issues by operating on byte buffers and using store_16_le()
and load_16_le(). Avoid two-pass operation using k5buf.
names and contracts; rewrote commit message]
commit c4e8d444632140ecb47f31df133c0657f07f9be0
Date: Thu Apr 6 12:15:39 2017 -0400
Modernize UTF-8/UCS-2 conversion code
Remove unused entry points as we only need to convert between
little-endian UCS-2 byte buffers and UTF-8. Rename and simplify the
remaining two function contracts. Avoid pointer alignment and
endianness issues by operating on byte buffers and using store_16_le()
and load_16_le(). Avoid two-pass operation using k5buf.
names and contracts; rewrote commit message]