summaryrefslogtreecommitdiff
path: root/source4/lib/util/genrand.c
AgeCommit message (Collapse)AuthorFilesLines
2008-04-01Add userdata argument to reseed callback function.Jelmer Vernooij1-3/+5
(This used to be commit d4272bc6bcfcd71fa93edb25bb33d6458e8b33cd)
2007-12-21r25661: We don't actually need to know with DEBUG(0, ... every time we ask forAndrew Bartlett1-6/+0
some random bytes. Andrew Bartlett (This used to be commit 606c82f6254b8dc6fb32740a7bb55a1989081fe7)
2007-12-21r25660: Add a new interface 'generate_secret_buffer()', to be used when weAndrew Bartlett1-18/+50
require top-quality entropy. We don't want to waste system enropy generating challenges (which simply need to be unpredictable, not secret) or when generating UUIDs. Rework generate_random_buffer() to use /dev/urandom less often, only to seed the existing RC4 based PRNG. (With an exception to ensure we don't waste this setup cost for very small entropy requests). Perhaps we should be using heimdal's code for this instead? This should drasticly reduce our entropy use, particularly in the build farm (automated Samba build on hosts without much other source of entropy). Andrew Bartlett (This used to be commit 6a5630d37191542022f02fae519227b7829ef620)
2007-10-10r24710: Use standard boolean type for easier use by external users.Jelmer Vernooij1-8/+8
(This used to be commit 99f4124137d4a61216e8189f26d4da32882c0f4a)
2007-10-10r24273: Fix bug #4817 by <mwallnoefer@yahoo.de>. (Unable to add a computerAndrew Bartlett1-5/+10
from MMC Active Directory Users and Computers). Windows sets a 14 UCS2 char buffer as the password in this case. We need to allow random buffers to be accepted as complex passwords, even if they don't have ASCII upper or lower case characters. (If half the bytes are > 127, then it's likely a random buffer). Also make the test match the documented windows behaviour of '3 of the 4 classes: upper, lower, digit, special'. Andrew Bartlett (This used to be commit 5ef26a2ba3561580f0a73ee61eb707573cc98cd3)
2007-10-10r23792: convert Samba4 to GPLv3Andrew Tridgell1-3/+2
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-10r15573: Fix build of systems that have iconv headers in non-standard locationsJelmer Vernooij1-1/+1
Split of system/locale.h header from system/iconv.h Previously, iconv wasn't being used on these systems (This used to be commit aa6d66fda69779d1c2948a1aca85dbd5208f1cba)
2007-10-10r13851: More doc improvements.Jelmer Vernooij1-0/+10
(This used to be commit 936d26ae64b93ef8f8b2fbc632b1c2fd60840405)
2007-10-10r13840: Mark some functions as public.Jelmer Vernooij1-7/+7
(This used to be commit 9a188eb1f48a50d92a67a4fc2b3899b90074059a)
2007-10-10r13752: Add doxyfile and fix formatting of comments. Current output is ↵Jelmer Vernooij1-10/+15
available at http://samba.org/~jelmer/util-api/ (This used to be commit 90812203df151a5e62394306827c72adfe13c63c)
2007-10-10r13658: More moving around of files:Jelmer Vernooij1-0/+314
- Collect the generic utility functions into a lib/util/ (a la GLib is for the GNOME folks) - Remove even more files from include/ (This used to be commit ba62880f5b05c2a505dc7f54676b231197a7e707)