1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-15 23:24:37 +03:00

52 Commits

Author SHA1 Message Date
Stefan Metzmacher
112084929e lib/crypto: remove dependency to internal heimdal
metze
(This used to be commit 9138fc6639fae7a5567c395254277199c89b0dcb)
2008-08-01 21:10:39 +02:00
Andrew Tridgell
9cf72946aa copied the Heimdal sha256 functions into lib/crypto to avoid a link
error

Hopefully we can remove this again later
(This used to be commit fa2ecfea7a1acc388a86e8fba5b42df7925c9045)
2008-06-04 09:42:55 -07:00
Andrew Tridgell
bc8c2a50e8 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
(This used to be commit d206517f90ac02e829193c5a17e5df25059cf18d)
2008-06-04 09:25:16 -07:00
Stefan Metzmacher
8699913858 lib/crypto: remove unused sha1 and hmac-sha1 code
metze
(This used to be commit 2c8904be3bac2c696712cc3160fe95d62afde43a)
2008-06-04 09:12:24 +02:00
Andrew Tridgell
7c926ff115 SMB2 signing now works. The spec was wrong (and will be fixed in the
next version)
(This used to be commit 436cb17b869e2d6cc57936ccc5e81680fb992341)
2008-06-03 14:29:27 +10:00
Jelmer Vernooij
60ae8f0657 Fix a bunch of dependencies.
(This used to be commit a63f458462d207d215a6e4ef8e480b0c8daedf6a)
2008-05-18 23:40:23 +02:00
Jelmer Vernooij
4c70cda986 Fix a couple (well, little more than that..) of typos.
(This used to be commit a6b52119940a900fb0de3864b8bca94e2965cc24)
2008-05-18 23:02:47 +02:00
Jelmer Vernooij
4c8756f147 Create prototype headers from Makefile directory, without smb_build in the middle.
(This used to be commit f4a77b96f9c17d853348b70794026e5b9e384942)
2008-05-18 22:30:08 +02:00
Jelmer Vernooij
333c169529 Use variables for source directory in remaining subsystems.
(This used to be commit 6b6b2196a8a8d9e741f5c399185ded7a16938da0)
2008-05-18 20:30:46 +02:00
Jelmer Vernooij
670122d724 Fix torture module initializion.
(This used to be commit d5bf4e9065303b54421a6f35b213a22f062d27d4)
2008-05-10 23:46:51 +02:00
Jelmer Vernooij
1e973565b6 Move subunit infrastructure code into lib/torture.
(This used to be commit 5b44d8121de7735d69e6238a1442aff034a8ebd3)
2008-04-27 14:02:46 +01:00
Jelmer Vernooij
ffc5cbfe80 Move object files lists to makefile rather than smb_build.
(This used to be commit 5628d58990144463fd87f8c847c9384ac2193681)
2008-04-14 16:53:00 +02:00
Jelmer Vernooij
73f88ad250 r25931: Add config .mk file for crypto lib.
(This used to be commit 21ab43158f723069dd70fae43d780878c38ead31)
2007-12-21 05:45:07 +01:00
Jelmer Vernooij
719a4ae0d3 r25522: Convert to standard bool types.
(This used to be commit 5e814287ba475e12f8cc934fdd09b199dcdfdb86)
2007-10-10 15:07:47 -05:00
Andrew Tridgell
0479a2f1cb 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.
(This used to be commit fcf38a38ac691abd0fa51b89dc951a08e89fdafa)
2007-10-10 14:59:12 -05:00
Jelmer Vernooij
8773e743c5 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.
(This used to be commit 0eb6097305776325c75081356309115f445a7218)
2007-10-10 14:21:12 -05:00
Andrew Tridgell
a57b42ff4e r18374: don't go past the end of this array
should fix the intermittend failure of the HMACSHA1 test
(This used to be commit 09014e1102ca5ada1e6f0f82506dc3cf81fc037d)
2007-10-10 14:18:20 -05:00
Andrew Bartlett
2059aa0949 r18357: Convert more crypto tests from using function results as initialisers.
(Fails on older Unix C compilers)

Andrew Bartlett
(This used to be commit a4cc13a93fc2f18bfb266603617e14d1cc7ceecf)
2007-10-10 14:18:17 -05:00
Andrew Tridgell
db96ce03e9 r18351: functions as initialisers in structures doesn't work on some compilers
(This used to be commit db694a7c82e4b5071aa7f609de6ecde90a8d42dd)
2007-10-10 14:18:16 -05:00
Stefan Metzmacher
1935ef0d54 r17539: add HMAC-MD5 test code based on the example values from rfc 2104, 2202
metze
(This used to be commit 200b1a5c81bd61320ac6b7e79880411920e3f432)
2007-10-10 14:15:35 -05:00
Stefan Metzmacher
b165e48b3e r17494: add tests for the example values from rfc 1320 (MD4)
metze
(This used to be commit 5609ab2116e3568e4f1a82b3ae781f17a6ffb645)
2007-10-10 14:15:29 -05:00
Stefan Metzmacher
a889fef4b1 r17493: fix typo
metze
(This used to be commit 785c46ed375b99f5765c2d8a2c7c1aaf400119f8)
2007-10-10 14:15:29 -05:00
Stefan Metzmacher
559158a3c9 r17492: add a test with the example values from rfc1321 (MD5)
metze
(This used to be commit bb1e4954f9aa60858a2c5b2f798f10fd75849b42)
2007-10-10 14:15:28 -05:00
Stefan Metzmacher
22cb98b042 r17490: add all test values from rfc 2202
metze
(This used to be commit d3e2e1af80c419ca0008e400b3d8899f2e0d0d83)
2007-10-10 14:15:28 -05:00
Stefan Metzmacher
0d235919fb r17488: - add SHA1 and HMACSHA1 functions, based on rfc 2104,2202,3174
- and add torture tests also based on the rfc's

metze
(This used to be commit d48930a02f9560640697fd57e4bba03dc0abe284)
2007-10-10 14:15:28 -05:00
Jelmer Vernooij
293cef7024 r15204: Fix MD5Update prototype
(This used to be commit d2819d4e1f73675925d292c0558cb663779a5a6a)
2007-10-10 14:04:17 -05:00
Andrew Bartlett
d6687d1b87 r15199: Try to make these prototypes match, to get the build on S390 linux going.
Andrew Bartlett
(This used to be commit db6746d456fb3963898170df36642c3f0882f42b)
2007-10-10 14:04:16 -05:00
Jelmer Vernooij
0eddf14b30 r15191: Avoid uint_t as it's not standard.
(This used to be commit 7af59357b94e3819415b3a9257be0ced745ce130)
2007-10-10 14:04:15 -05:00
Andrew Tridgell
11e160c3d7 r14425: fixed an hmac-md5 error for keys longer than 64 (using deallocated
stack variable)
(This used to be commit b10cb752c2558e98495625bbbb8704d19031a42b)
2007-10-10 13:57:22 -05:00
Stefan Metzmacher
f3f19158bb r13953: make more functions public
metze
(This used to be commit 6aa9675924c32a83122e7ebe86a736233b46c54f)
2007-10-10 13:52:31 -05:00
Jelmer Vernooij
c71c86c524 r13842: Make some more functions public.
(This used to be commit aac1b99b362993352d80692afa55c38fc851c016)
2007-10-10 13:52:15 -05:00
Jelmer Vernooij
af30a32b69 r13840: Mark some functions as public.
(This used to be commit 9a188eb1f48a50d92a67a4fc2b3899b90074059a)
2007-10-10 13:52:14 -05:00
Stefan Metzmacher
62346e2b65 r11634: - make crc table static
- const uint8_t * in all places
- update header prototype

metze
(This used to be commit 91dfa4c28d280aff8dbf46cf1e174b5b317ba322)
2007-10-10 13:46:03 -05:00
Andrew Tridgell
64525309e3 r11631: fixed a signed/unsigned warning
(This used to be commit 86d08d3ec5cfa36e048042563a56aca79c87a5bb)
2007-10-10 13:46:02 -05:00
Jeremy Allison
a684ff80b0 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.
(This used to be commit d42644927d46154c6366f3a7d10bea09989ed813)
2007-10-10 13:45:58 -05:00
Andrew Bartlett
684c824e9a r9421: Move arcfour code into it's own file, in lib/crypto.
Andrew Bartlett
(This used to be commit ca6cf462708810637544d4b4bef0f404fb89a002)
2007-10-10 13:33:37 -05:00
Andrew Bartlett
0501a440be r6462: Move the arcfour sbox state into it's own structure, and allocate it
with talloc() for the NTLMSSP system.

Andrew Bartlett
(This used to be commit 7a93ac49c28d433ccf0f077294f473fe728b9995)
2007-10-10 13:11:39 -05:00
Tim Potter
5bb1939e9e r4197: Remove silly extra const.
(This used to be commit fcbfa888defe4f904e0c4b4f723d53a03422ad80)
2007-10-10 13:07:25 -05:00
Stefan Metzmacher
4dc2599dad r3961: - fix compiler warnings
- remove unused typedef

metze
(This used to be commit 19613122a5222b152044b1f86136496b95d4a3e3)
2007-10-10 13:06:08 -05:00
Stefan Metzmacher
5c55901266 r3960: fix compiler warnings
metze
(This used to be commit 54d5b418a75d421a9c6c09bc084454f11e9b7b44)
2007-10-10 13:06:08 -05:00
Andrew Tridgell
a1d0b97ed4 r3462: separate out the crypto includes
(This used to be commit 3f75117db921e493bb77a5dc14b8ce91a6288f30)
2007-10-10 13:05:16 -05:00
Andrew Tridgell
8087d844ef 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.
(This used to be commit 729b2f41c924a0b435d44a14209e6dacc2304cee)
2007-10-10 12:56:25 -05:00
Stefan Metzmacher
770e3307ce r962: convert 'unsigned' and 'unsigned int' to uint_t
metze
(This used to be commit 57151e80eb1090281401930c8fe25b20a8cf3a38)
2007-10-10 12:56:23 -05:00
Stefan Metzmacher
98d291423f r961: convert 'uchar' to 'uint8_t'
metze
(This used to be commit 9f914e4af99e18b469d4cf9d8b1514a2bd28ddec)
2007-10-10 12:56:23 -05:00
Stefan Metzmacher
fa2e9ec311 r960: convert 'unsigned int' to uint_t in the most places
metze
(This used to be commit 18062d2ed9fc9224c43143c10efbf2f6f1f5bbe0)
2007-10-10 12:56:23 -05:00
Stefan Metzmacher
45e93c19ef r943: change samba4 to use 'uint8_t' instead of 'unsigned char'
metze
(This used to be commit b5378803fdcb3b3afe7c2932a38828e83470f61a)
2007-10-10 12:56:21 -05:00
Andrew Tridgell
90341da78b r935: remove unused variable
(This used to be commit a8056e329484256ffb51e823296b87979ef9221f)
2007-10-10 12:56:20 -05:00
Stefan Metzmacher
f9d8f8843d r884: convert samba4 to use [u]int32_t instead of [u]int32
metze
(This used to be commit 0e5517d937a2eb7cf707991d1c7498c1ab456095)
2007-10-10 12:56:15 -05:00
Andrew Bartlett
5b0ab386cb 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
(This used to be commit 399e2e2b1149b8d1c070aa7f0d5131c0b577d2b9)
2007-10-10 12:56:14 -05:00
Andrew Tridgell
078cced5ec - 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".
(This used to be commit 05db0b9d942cad8f1dd574dc35b759e5e79d4195)
2004-02-10 10:22:12 +00:00