]> git.ipfire.org Git - thirdparty/krb5.git/commit
Modernize UTF-8/UCS-2 conversion code 635/head
authorRobbie Harwood <rharwood@redhat.com>
Thu, 6 Apr 2017 16:15:39 +0000 (12:15 -0400)
committerGreg Hudson <ghudson@mit.edu>
Mon, 17 Apr 2017 17:57:56 +0000 (13:57 -0400)
commitc4e8d444632140ecb47f31df133c0657f07f9be0
tree244e9d3403370ed41a0a579d263d787e0d78ed7b
parentb8814745049b5f401e3ae39a81dc1e14598ae48c
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.

[ghudson@mit.edu: simplified code using k5buf; simplified function
names and contracts; rewrote commit message]
src/include/k5-utf8.h
src/lib/crypto/krb/s2k_rc4.c
src/lib/krb5/krb/pac.c
src/lib/krb5/krb/pac_sign.c
src/util/support/libkrb5support-fixed.exports
src/util/support/utf8_conv.c