auth/credentials: add cli_credentials_set_utf16_password()
authorStefan Metzmacher <metze@samba.org>
Tue, 16 Dec 2014 13:58:11 +0000 (13:58 +0000)
committerStefan Metzmacher <metze@samba.org>
Fri, 19 Dec 2014 12:15:13 +0000 (13:15 +0100)
commit826b0f761e07987fbe067badde665c3d1c99e821
treea936bc9caae2fe182c84a984a5a5f174ebe828dd
parent153938a1f2a06fec5b2f7daef12200a504fb92f4
auth/credentials: add cli_credentials_set_utf16_password()

We need a way to initialize the cli_credentials from the raw utf16 blob,
which might not be completely valid utf16, which means the conversion
from CH_UTF16MUNGED to CH_UTF8 might loose information.

This would result in an invalid nt_hash, when we convert back
from CH_UTF8 to CH_UTF16LE.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=11016

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
auth/credentials/credentials.c
auth/credentials/credentials.h
auth/credentials/credentials_ntlm.c