summaryrefslogtreecommitdiff
path: root/source4/lib/util_uuid.c
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r1498: (merge from 3.0)Andrew Bartlett1-1/+1
Rework our random number generation system. On systems with /dev/urandom, this avoids a change to secrets.tdb for every fork(). For other systems, we now only re-seed after a fork, and on startup. No need to do it per-operation. This removes the 'need_reseed' parameter from generate_random_buffer(). This also requires that we start the secrets subsystem, as that is where the reseed value is stored, for systems without /dev/urandom. In order to aviod identical streams in forked children, the random state is re-initialised after the fork(), at the same point were we do that to the tdbs. Andrew Bartlett (This used to be commit b97d3cb2efd68310b1aea8a3ac40a64979c8cdae)
2003-12-19added a bunch of alias functions in samr.idl based on work by Kai.Andrew Tridgell1-0/+6
(This used to be commit f740b02ac36780740700909da2bcdf672cb146cb)
2003-12-16it turns out that a wire policy handle isn't a blob either, its aAndrew Tridgell1-0/+26
uint32 followed by a GUID. I needed to fix this to support running in mixed-mode rpc (where smbtorture is bigendian and w2k3 is little-endian). Otherwise when you send back a policy handle the server doesn't recognise it. (This used to be commit 9b1c76a8e9e953e051072441f8938ee17a674d35)
2003-12-16a fairly large commit!Andrew Tridgell1-47/+5
This adds support for bigendian rpc in the client. I have installed SUN pcnetlink locally and am using it to test the samba4 rpc code. This allows us to easily find places where we have stuffed up the types (such as 2 uint16 versus a uint32), as testing both big-endian and little-endian easily shows which is correct. I have now used this to fix several bugs like that in the samba4 IDL. In order to make this work I also had to redefine a GUID as a true structure, not a blob. From the pcnetlink wire it is clear that it is indeed defined as a structure (the byte order changes). This required changing lots of Samba code to use a GUID as a structure. I also had to fix the if_version code in dcerpc syntax IDs, as it turns out they are a single uint32 not two uint16s. The big-endian support is a bit ugly at the moment, and breaks the layering in some places. More work is needed, especially on the server side. (This used to be commit bb1af644a5a7b188290ce36232f255da0e5d66d2)
2003-11-30 * removed a bunch of unused codeAndrew Tridgell1-31/+0
* made some functions static (This used to be commit 829b87f30d5f4cc7174b716f3354982d84af4818)
2003-08-15more fixes from the IRIX compiler (thanks herb!)Andrew Tridgell1-1/+0
(This used to be commit 02d068ba7d81d6db25122144981c63f74ad44025)
2003-08-13first public release of samba4 codeAndrew Tridgell1-0/+104
(This used to be commit b0510b5428b3461aeb9bbe3cc95f62fc73e2b97f)