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
Love Hörnquist Åstrand
76160f2497
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19425 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-18 21:24:02 +00:00
Love Hörnquist Åstrand
450f635e88
Calculate the NTLM version 1 "master" key.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19424 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-18 21:23:24 +00:00
Love Hörnquist Åstrand
276d560deb
(heim_ntlm_build_ntlm1_master): calculate the ntlm version 1 "master" key.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19423 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-18 21:22:09 +00:00
Love Hörnquist Åstrand
f280e31a6b
Unwrap the NTLM session key and return it to the server.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19422 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-18 21:19:47 +00:00
Love Hörnquist Åstrand
20e973fda2
Resurect negHints for the acceptor sends first packet.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19421 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-18 18:50:15 +00:00
Love Hörnquist Åstrand
a11517a4d9
Add "windows" versions of the NegTokenInitWin and friends.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19420 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-18 18:28:49 +00:00
Love Hörnquist Åstrand
d2946a3c8e
add --wrapunwrap flag
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19419 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-18 18:07:15 +00:00
Love Hörnquist Åstrand
0baf465a7c
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19418 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-18 18:04:33 +00:00
Love Hörnquist Åstrand
89a05cc5da
test more combination of spnego contexts
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19417 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-18 18:03:27 +00:00
Love Hörnquist Åstrand
3ac5851185
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19416 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-18 17:52:48 +00:00
Love Hörnquist Åstrand
6a8647e1c6
move _gss_spnego_indicate_mechtypelist() to compat.c, use the sequence
...
types of MechTypeList, make add_mech_type() static.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19415 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-18 17:52:26 +00:00
Love Hörnquist Åstrand
acccf21ce2
move _gss_spnego_indicate_mechtypelist() to compat.c
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19414 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-18 17:51:13 +00:00