Commit Graph

19167 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
7576da2827 reorder to show slot here ntlmv2 code will be placed.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19475 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-20 17:27:17 +00:00
Love Hörnquist Åstrand
afff6fd22a x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19474 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-20 16:53:25 +00:00
Love Hörnquist Åstrand
0ee0699c46 Leak less memory.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19473 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-20 16:14:02 +00:00
Love Hörnquist Åstrand
a9f3a45bde x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19472 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-20 07:36:53 +00:00
Love Hörnquist Åstrand
3e8f397701 Announce that we support key exchange.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19471 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-20 07:34:13 +00:00
Love Hörnquist Åstrand
c40b4081cf Announce that we support key exchange and add bits to detect when it
wasn't used.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19470 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-20 07:32:40 +00:00
Love Hörnquist Åstrand
3008492b15 Add key exchange (NTLM_NEG_KEYEX).
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19469 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-20 07:28:37 +00:00
Love Hörnquist Åstrand
546a1f0f6c x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19468 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-20 00:48:05 +00:00
Love Hörnquist Åstrand
e42b5f4049 sent lm hashes, needed for NTLM2 session
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19467 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-20 00:47:32 +00:00
Love Hörnquist Åstrand
fadaad6712 Set error code on wrong lm.length.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19466 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-20 00:46:53 +00:00
Love Hörnquist Åstrand
60e458b33b Add NTLM_NEG_NTLM2_SESSION, NTLMv2 session security (disable because
missing sign and seal).


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19465 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-20 00:38:43 +00:00
Love Hörnquist Åstrand
91307a9282 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19464 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-20 00:20:04 +00:00
Love Hörnquist Åstrand
96145a7a51 Add support for generating NTLM2 session security answer.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19463 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-20 00:19:46 +00:00
Love Hörnquist Åstrand
df5c3ff11d Add NTLM_NEG_NTLM2_SESSION, NTLMv2 session security.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19462 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-20 00:13:10 +00:00
Love Hörnquist Åstrand
076bc1de73 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19461 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-19 19:47:13 +00:00
Love Hörnquist Åstrand
89e1ccd48f Add sessionkey accessor functions.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19460 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-19 19:46:17 +00:00
Love Hörnquist Åstrand
1843ccc158 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19459 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-19 19:40:15 +00:00
Love Hörnquist Åstrand
9221d73d7d x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19458 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-19 18:23:11 +00:00
Love Hörnquist Åstrand
35dc0e94d1 split RC4 send and recv keystreams
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19457 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-19 18:22:08 +00:00
Love Hörnquist Åstrand
026563966f Implement SEAL.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19456 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-19 18:19:07 +00:00
Love Hörnquist Åstrand
9afb696dc5 test wrapunwrap
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19455 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-19 18:16:29 +00:00
Love Hörnquist Åstrand
5e734075a4 Overwrite the first 4 bytes of the encrypted checksum with a random
number (or so davenport tells me). Interesting question, is this
really how it worked, not that the first 4 bytes is a nonce/iv to hide
first bytes of the rc4 stream, in the end it doesn't matter, it fact
the bits didn't even need to go over the network.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19454 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-19 17:03:01 +00:00
Love Hörnquist Åstrand
02e6aa25a4 remove ntlm/{,un}wrap.c, move functions to ntlm/crypto.c
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19453 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-19 16:09:28 +00:00
Love Hörnquist Åstrand
056c0a96ed x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19452 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-19 16:08:35 +00:00
Love Hörnquist Åstrand
ca9bd7b087 move to crypto.c
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19451 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-19 15:57:23 +00:00
Love Hörnquist Åstrand
a68c0f76db move gss_wrap/gss_unwrap here
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19450 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-19 15:56:37 +00:00
Love Hörnquist Åstrand
0270e1d1af Test get and verify MIC.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19449 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-19 15:44:40 +00:00
Love Hörnquist Åstrand
db4922b209 request INT and CONF from the gss layer, test get and verify MIC.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19448 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-19 15:40:45 +00:00
Love Hörnquist Åstrand
70be8c4637 revert previous that was done to krb5 mech and do it for ntlm instead.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19447 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-19 15:38:59 +00:00
Love Hörnquist Åstrand
e668adb5d7 add crypto bits.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19446 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-19 15:35:53 +00:00
Love Hörnquist Åstrand
86e8665085 move to crypto.c
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19445 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-19 15:35:22 +00:00
Love Hörnquist Åstrand
566e8ae67a Save session master key.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19444 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-19 15:34:32 +00:00
Love Hörnquist Åstrand
d1433fabd9 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19443 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-19 15:33:40 +00:00
Love Hörnquist Åstrand
10483c353c (heim_ntlm_build_ntlm1_master): return session master key.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19442 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-19 15:33:17 +00:00
Love Hörnquist Åstrand
4a70c638b0 Add NTLM_NEG_ALWAYS_SIGN.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19441 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-19 15:32:54 +00:00
Love Hörnquist Åstrand
7a7d056ee3 Move get and verify mic to the same file (crypto.c) since they share code.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19440 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-19 15:32:26 +00:00
Love Hörnquist Åstrand
b5d0a38c06 Move get and verify mic to the same file since they share code,
implement NTLM v1 and dummy signatures.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19439 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-19 15:31:46 +00:00
Love Hörnquist Åstrand
ace0210c49 pass on GSS_C_CONF_FLAG and GSS_C_INTEG_FLAG, save the session master key
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19438 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-19 15:30:44 +00:00
Love Hörnquist Åstrand
edfb0d4719 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19437 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-19 12:12:59 +00:00
Love Hörnquist Åstrand
a9e71ed195 don't need to set GSSAPI_SPNEGO_NAME any longer
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19436 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-19 12:11:05 +00:00
Love Hörnquist Åstrand
3c9d3266f4 try using gss_accept_sec_context() on the opportunistic token instead
of guessing the acceptor name and do gss_acquire_cred, this make
SPNEGO work like before.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19435 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-19 12:10:35 +00:00
Love Hörnquist Åstrand
f220c91612 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19434 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-18 22:51:20 +00:00
Love Hörnquist Åstrand
e94890aa89 Define GSSAPI_SPNEGO_NAME and re-add spnego
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19433 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-18 22:50:24 +00:00
Love Hörnquist Åstrand
489a126759 disable spnego test for now
k


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19432 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-18 22:12:41 +00:00
Love Hörnquist Åstrand
122bcfed89 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19431 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-18 22:00:08 +00:00
Love Hörnquist Åstrand
cd91aac791 add trap, remove allow-digest, pretty print.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19430 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-18 21:59:42 +00:00
Love Hörnquist Åstrand
f8e3335b47 add back default_keytab_name
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19429 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-18 21:54:59 +00:00
Love Hörnquist Åstrand
7b5c72619d x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19428 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-18 21:41:04 +00:00
Love Hörnquist Åstrand
7952a0471c catch EXIT traps
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19427 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-18 21:40:27 +00:00
Love Hörnquist Åstrand
d90516957a turn off dns, enable digest, generate all keys
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19426 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-18 21:37:20 +00:00