]> git.ipfire.org Git - thirdparty/openvpn.git/commit
ntlm: convert binary buffers to uint8_t *
authorAntonio Quartulli <a@unstable.cc>
Mon, 10 Jul 2017 04:34:38 +0000 (12:34 +0800)
committerDavid Sommerseth <davids@openvpn.net>
Fri, 11 Aug 2017 18:31:47 +0000 (20:31 +0200)
commite7e4070cb7b90f4836b65c53360166e11fc3f383
tree6cfa9e564b0a2688e514511499dbcad552248072
parentc5b12817c9aa3ae97fbdd2c2a9a9ab605087dff1
ntlm: convert binary buffers to uint8_t *

Several binary buffers in the ntlm component are stored
as char *, however this generates a lot of warnings, because
hashing functions expect something unsigned.

Convert binary buffers to uint8_t *, while use explicit cast
for buffers that are really carrying a string inside.

This commit removes several warnings from ntlm.c that you can
catch with "-Wall -std=c99".

[DS: Done minor typo-fixes in commit message at commit time]

Signed-off-by: Antonio Quartulli <a@unstable.cc>
Acked-by: Steffan Karger <steffan@karger.me>
Message-Id: <20170710043441.24770-2-a@unstable.cc>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg15032.html
Signed-off-by: David Sommerseth <davids@openvpn.net>
src/openvpn/ntlm.c