Love Hörnquist Åstrand
b98022f088
(kdc_destroy): free context when done, pointed out by Rafal Malinowski.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21036 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-09 15:35:28 +00:00
Love Hörnquist Åstrand
19f39c8621
Free memory when done.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20882 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-04 17:42:50 +00:00
Love Hörnquist Åstrand
fedbf25113
If we didn't set session key, don't expect one back.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20803 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-02 23:19:00 +00:00
Love Hörnquist Åstrand
acfd5a4121
Catch errors and return the up the stack.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20698 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-05-30 15:07:09 +00:00
Love Hörnquist Åstrand
87bdbf8e2c
Set session key only if we are returned a session key.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20681 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-05-14 18:03:39 +00:00
Love Hörnquist Åstrand
10d424657d
make ntlm gss_inquire_cred fail for now, need to find default cred and friends.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20618 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-05-08 12:35:39 +00:00
Love Hörnquist Åstrand
06244210e0
drop unused variable.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20583 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-05-08 00:31:58 +00:00
Love Hörnquist Åstrand
eb2d35a531
Reimplement.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20582 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-05-08 00:26:07 +00:00
Love Hörnquist Åstrand
877b0883e8
split out backend ntlm server processing
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20579 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-05-08 00:17:59 +00:00
Love Hörnquist Åstrand
c5f0bb0769
(_gss_ntlm_delete_sec_context): free credcache when done
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20552 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-24 11:56:17 +00:00
Love Hörnquist Åstrand
09c2d40688
ntlm-key credential entry is prefix with @
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20518 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-22 10:43:16 +00:00
Love Hörnquist Åstrand
e202c6e8c2
(get_user_ccache): pick up the ntlm creds from the krb5 credential cache.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20514 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-22 10:24:43 +00:00
Love Hörnquist Åstrand
b605c55732
free the key stored in the context
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20496 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-21 09:31:58 +00:00
Love Hörnquist Åstrand
613c4d85a3
switch password for a key
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20495 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-21 09:31:27 +00:00
Love Hörnquist Åstrand
df9b71b724
move where hash is calculated to make it easier to add ccache support.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20479 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-20 17:33:59 +00:00
Love Hörnquist Åstrand
b95c3bd0bb
Pass signseal argument to _gss_ntlm_set_key.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19536 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-28 14:49:48 +00:00
Love Hörnquist Åstrand
3cc3d6398b
(_gss_ntlm_set_key): add signseal argument
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19535 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-28 14:49:01 +00:00
Love Hörnquist Åstrand
d3a2df7306
break out struct ntlmv2_key;
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19531 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-28 14:38:52 +00:00
Love Hörnquist Åstrand
7f49c4ad56
use _gss_ntlm_set_key
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19530 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-28 14:38:37 +00:00
Love Hörnquist Åstrand
2412c6be41
(_gss_ntlm_set_key): set ntlm v2 keys.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19529 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-28 14:38:07 +00:00
Love Hörnquist Åstrand
d296c67503
Set dummy ntlmv2 keys.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19528 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-28 14:08:25 +00:00
Love Hörnquist Åstrand
9421ec31ba
Set dummy ntlmv2 keys and Check TI.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19527 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-28 14:08:06 +00:00
Love Hörnquist Åstrand
95d767da33
NTLMv2 keys.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19526 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-28 14:00:27 +00:00
Love Hörnquist Åstrand
3f4a53cda3
NTLMv2 sign and verify.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19525 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-28 13:58:52 +00:00
Love Hörnquist Åstrand
1384d00d1d
add v2 sign and seal function (commented out, key derivation still missing).
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19508 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-26 18:16:38 +00:00
Love Hörnquist Åstrand
63abf99eb3
disable ntlmv2 since we can't handle wrap/unwrap
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19505 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-26 14:19:29 +00:00
Love Hörnquist Åstrand
fca448bd23
Don't send targetinfo now.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19481 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-20 20:02:28 +00:00
Love Hörnquist Åstrand
6b7ecbef09
Build ntlmv2 answer buffer.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19480 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-20 20:02:01 +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
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
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
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
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
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
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
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
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
ba22a47a93
add _gss_ntlm_allocate_ctx
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19401 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-18 13:04:07 +00:00
Love Hörnquist Åstrand
fd0d5b4e0f
Check that the KDC seem to there and answering us, we can't do better
...
then that wen checking if we will accept the credential.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19400 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-18 13:03:45 +00:00
Love Hörnquist Åstrand
ae966fe266
return GSS_S_UNAVAILABLE
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19399 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-18 13:02:25 +00:00
Love Hörnquist Åstrand
b51a41e7d1
Allocate the buffer from the right length.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19392 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-16 08:31:47 +00:00
Love Hörnquist Åstrand
7e1c31e8c2
(init_sec_context): Tell the other side what domain we think we are
...
talking to.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19388 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-15 22:50:58 +00:00
Love Hörnquist Åstrand
af03eba4a5
free username and password
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19387 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-15 22:49:13 +00:00
Love Hörnquist Åstrand
0ccb9c8444
(_gss_ntlm_release_name): free name.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19386 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-15 22:48:13 +00:00
Love Hörnquist Åstrand
7ccd5835db
store username and password in the ntlm_ctx
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19385 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-15 22:47:31 +00:00