bump libheimntlm to the version from OSX 10.9 Mavericks

(cherry picked from commit cde59c543dcc3e7122e6faea8b3f75918f8df7fe)
use constants

(cherry picked from commit 3af1b3a8a6ccdcdb4b6d635091d0bb24128a3920)
try to use the right domain/hostname offset/ucs2 encoding

reported by Joe Mason

(cherry picked from commit 576f103203668eac78894248f3bc61ab7b5a7894)
test type1 encodings

(cherry picked from commit bd661203cf24dc4ab265974cfe3ca5c23f719086)
Include heimbase.h in hx509.h; required for heim_err_t.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
(cherry picked from commit 906922b9908b5d059033e8b25ee2efcee80bf333)
Fix bug in loading MIT dumps

(cherry picked from commit e9d21aeffc099f85509f02d1e96648fae7f21464)
Be verbose about MIT dump entry parsing failures

(cherry picked from commit 2c16b0da309970a961060fd47dd6bd38a5329100)
Fix MIT dump entry parsing bug that forced 2048 sz

(cherry picked from commit 9e084ca1d7198eb6b37d8e85119b445fa1c3f546)
Add very large MIT KDB princ entry for testing

Constructed by doing repeated kadmin.local cpw commands with a policy
with -history 9.

(cherry picked from commit 2f7eec7d2c176e148ab09a0570126c3bb95f5b69)
Fix callers of heim_ntlm_encode_type3; make build

(cherry picked from commit fdcb8f386217d69d37c5dea81c71951544c78c5e)
Fix roken-h-process.pl

(cherry picked from commit 97f1e2efb5754b953905ea1a41a5c469765f6267)
min instead of MIN

The MIN macro is not defined everywhere.  use min().

Change-Id: I47413080364e215ad2a2075403b224867deba037
(cherry picked from commit 3e2ca4be373398a0dd91043e5b48989271a17ccc)
allow setting signature algorithm

(cherry picked from commit c69c4634ad2296b003d50f3a4180298c6f37d30f)