1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-11 16:58:40 +03:00

51 Commits

Author SHA1 Message Date
Andrew Tridgell
fa2ecfea7a copied the Heimdal sha256 functions into lib/crypto to avoid a link
error

Hopefully we can remove this again later
2008-06-04 09:42:55 -07:00
Andrew Tridgell
d206517f90 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test 2008-06-04 09:25:16 -07:00
Stefan Metzmacher
2c8904be3b lib/crypto: remove unused sha1 and hmac-sha1 code
metze
2008-06-04 09:12:24 +02:00
Andrew Tridgell
436cb17b86 SMB2 signing now works. The spec was wrong (and will be fixed in the
next version)
2008-06-03 14:29:27 +10:00
Jelmer Vernooij
a63f458462 Fix a bunch of dependencies. 2008-05-18 23:40:23 +02:00
Jelmer Vernooij
a6b5211994 Fix a couple (well, little more than that..) of typos. 2008-05-18 23:02:47 +02:00
Jelmer Vernooij
f4a77b96f9 Create prototype headers from Makefile directory, without smb_build in the middle. 2008-05-18 22:30:08 +02:00
Jelmer Vernooij
6b6b2196a8 Use variables for source directory in remaining subsystems. 2008-05-18 20:30:46 +02:00
Jelmer Vernooij
d5bf4e9065 Fix torture module initializion. 2008-05-10 23:46:51 +02:00
Jelmer Vernooij
5b44d8121d Move subunit infrastructure code into lib/torture. 2008-04-27 14:02:46 +01:00
Jelmer Vernooij
5628d58990 Move object files lists to makefile rather than smb_build. 2008-04-14 16:53:00 +02:00
Jelmer Vernooij
21ab43158f r25931: Add config .mk file for crypto lib. 2007-12-21 05:45:07 +01:00
Jelmer Vernooij
5e814287ba r25522: Convert to standard bool types. 2007-10-10 15:07:47 -05:00
Andrew Tridgell
fcf38a38ac r23792: convert Samba4 to GPLv3
There are still a few tidyups of old FSF addresses to come (in both s3
and s4). More commits soon.
2007-10-10 14:59:12 -05:00
Jelmer Vernooij
0eb6097305 r19339: Merge my 4.0-unittest branch. This adds an API for more fine-grained
output in the testsuite rather than just True or False for a
set of tests.

The aim is to use this for:
 * known failure lists (run all tests and detect tests that
						started working or started failing). This
   would allow us to get rid of the RPC-SAMBA3-* tests
 * nicer torture output
 * simplification of the testsuite system
 * compatibility with other unit testing systems
 * easier usage of smbtorture (being able to run one test
						and automatically set up the environment for that)

This is still a work-in-progress; expect more updates over the next couple of
days.
2007-10-10 14:21:12 -05:00
Andrew Tridgell
09014e1102 r18374: don't go past the end of this array
should fix the intermittend failure of the HMACSHA1 test
2007-10-10 14:18:20 -05:00
Andrew Bartlett
a4cc13a93f r18357: Convert more crypto tests from using function results as initialisers.
(Fails on older Unix C compilers)

Andrew Bartlett
2007-10-10 14:18:17 -05:00
Andrew Tridgell
db694a7c82 r18351: functions as initialisers in structures doesn't work on some compilers 2007-10-10 14:18:16 -05:00
Stefan Metzmacher
200b1a5c81 r17539: add HMAC-MD5 test code based on the example values from rfc 2104, 2202
metze
2007-10-10 14:15:35 -05:00
Stefan Metzmacher
5609ab2116 r17494: add tests for the example values from rfc 1320 (MD4)
metze
2007-10-10 14:15:29 -05:00
Stefan Metzmacher
785c46ed37 r17493: fix typo
metze
2007-10-10 14:15:29 -05:00
Stefan Metzmacher
bb1e4954f9 r17492: add a test with the example values from rfc1321 (MD5)
metze
2007-10-10 14:15:28 -05:00
Stefan Metzmacher
d3e2e1af80 r17490: add all test values from rfc 2202
metze
2007-10-10 14:15:28 -05:00
Stefan Metzmacher
d48930a02f r17488: - add SHA1 and HMACSHA1 functions, based on rfc 2104,2202,3174
- and add torture tests also based on the rfc's

metze
2007-10-10 14:15:28 -05:00
Jelmer Vernooij
d2819d4e1f r15204: Fix MD5Update prototype 2007-10-10 14:04:17 -05:00
Andrew Bartlett
db6746d456 r15199: Try to make these prototypes match, to get the build on S390 linux going.
Andrew Bartlett
2007-10-10 14:04:16 -05:00
Jelmer Vernooij
7af59357b9 r15191: Avoid uint_t as it's not standard. 2007-10-10 14:04:15 -05:00
Andrew Tridgell
b10cb752c2 r14425: fixed an hmac-md5 error for keys longer than 64 (using deallocated
stack variable)
2007-10-10 13:57:22 -05:00
Stefan Metzmacher
6aa9675924 r13953: make more functions public
metze
2007-10-10 13:52:31 -05:00
Jelmer Vernooij
aac1b99b36 r13842: Make some more functions public. 2007-10-10 13:52:15 -05:00
Jelmer Vernooij
9a188eb1f4 r13840: Mark some functions as public. 2007-10-10 13:52:14 -05:00
Stefan Metzmacher
91dfa4c28d r11634: - make crc table static
- const uint8_t * in all places
- update header prototype

metze
2007-10-10 13:46:03 -05:00
Andrew Tridgell
86d08d3ec5 r11631: fixed a signed/unsigned warning 2007-10-10 13:46:02 -05:00
Jeremy Allison
d42644927d r11616: Replace old crc32 code with one from the FreeBSD tree.
*  COPYRIGHT (C) 1986 Gary S. Brown.  You may use this program, or
 *  code or tables extracted from it, as desired without restriction.
Jeremy.
2007-10-10 13:45:58 -05:00
Andrew Bartlett
ca6cf46270 r9421: Move arcfour code into it's own file, in lib/crypto.
Andrew Bartlett
2007-10-10 13:33:37 -05:00
Andrew Bartlett
7a93ac49c2 r6462: Move the arcfour sbox state into it's own structure, and allocate it
with talloc() for the NTLMSSP system.

Andrew Bartlett
2007-10-10 13:11:39 -05:00
Tim Potter
fcbfa888de r4197: Remove silly extra const. 2007-10-10 13:07:25 -05:00
Stefan Metzmacher
19613122a5 r3961: - fix compiler warnings
- remove unused typedef

metze
2007-10-10 13:06:08 -05:00
Stefan Metzmacher
54d5b418a7 r3960: fix compiler warnings
metze
2007-10-10 13:06:08 -05:00
Andrew Tridgell
3f75117db9 r3462: separate out the crypto includes 2007-10-10 13:05:16 -05:00
Andrew Tridgell
729b2f41c9 r995: - renamed many of our crypto routines to use the industry standard
names rather than our crazy naming scheme. So DES is now called
  des_crypt() rather than smbhash()

- added the code from the solution of the ADS crypto challenge that
  allows Samba to correctly handle a 128 bit session key in all of the
  netr_ServerAuthenticateX() varients. A huge thanks to Luke Howard
  from PADL for solving this one!

- restructured the server side rpc authentication to allow for other
  than NTLMSSP sign and seal. This commit just adds the structure, the
  next commit will add schannel server side support.

- added 128 bit session key support to our client side code, and
  testing against w2k3 with smbtorture. Works well.
2007-10-10 12:56:25 -05:00
Stefan Metzmacher
57151e80eb r962: convert 'unsigned' and 'unsigned int' to uint_t
metze
2007-10-10 12:56:23 -05:00
Stefan Metzmacher
9f914e4af9 r961: convert 'uchar' to 'uint8_t'
metze
2007-10-10 12:56:23 -05:00
Stefan Metzmacher
18062d2ed9 r960: convert 'unsigned int' to uint_t in the most places
metze
2007-10-10 12:56:23 -05:00
Stefan Metzmacher
b5378803fd r943: change samba4 to use 'uint8_t' instead of 'unsigned char'
metze
2007-10-10 12:56:21 -05:00
Andrew Tridgell
a8056e3294 r935: remove unused variable 2007-10-10 12:56:20 -05:00
Stefan Metzmacher
0e5517d937 r884: convert samba4 to use [u]int32_t instead of [u]int32
metze
2007-10-10 12:56:15 -05:00
Andrew Bartlett
399e2e2b11 r874: This patch is a pile of work on NTLMSSP:
Samba's NTLMSSP code is now fully talloc based, which should go a long
way to cleaning up the memory leaks in this code.  This also avoids a
lot of extra copies of data, as we now allocate the 'return' blobs on
a caller-supplied context.

I have also been doing a lot of work towards NTLM2 signing and
sealing.  I have this working for sealing, but not for the verifier
(MD5 integrity check on the stream) which is still incorrect.

(I can aim a rpcecho sinkdata from a Win2k3 box to my server, and the
data arrives intact, but the signature check fails.  It does however
match the test values I have...).

The new torture test is cludged in - when we get a unit test suite
back, I'll happliy put it in the 'right' place....

Andrew Bartlett
2007-10-10 12:56:14 -05:00
Andrew Tridgell
05db0b9d94 - modified the dcerpc client security code to be generic, so ntlmssp
and schannel are both instances of possible security modules

- added schannel sign and sign/seal support to the dcerpc client
  code. You select it with binding options of "schannel,sign" or
  "schannel,seal".
-
Andrew Tridgell
c18c9b5585 signed DCERPC over TCP now works !
* moved ntlmssp code into libcli/auth/, and updated to latest ntlmssp
   code from samba3 (thanks Andrew! the new interface is great)

 * added signing/ntlmssp support in the dcerpc code

 * added a dcerpc_auth.c module for the various dcerpc auth mechanisms
-