summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)AuthorFilesLines
2012-03-01pyldb: Avoid using PyErr_LDB_ERROR_IS_ERR_RAISE where PyErr_SetLdbError ↵Jelmer Vernooij1-13/+16
suffices. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Thu Mar 1 23:06:55 CET 2012 on sn-devel-104
2012-03-01build: look for backtrace_symbols in libexecAndrew Bartlett1-1/+1
2012-02-29lib/crypto: add aes_cmac_128_test.c as local.crypto.aes_cmac_128 testStefan Metzmacher2-1/+93
metze
2012-02-29lib/crypto: add aes_cmac_128* (rfc 4493)Stefan Metzmacher4-4/+231
Thanks to Jeremy, Michael and Volker for the debugging! metze
2012-02-27lib/crypto: fix hmac_sha256_final() prototypeStefan Metzmacher1-1/+1
metze
2012-02-27s3-param: Align lp_{max,min}protocol with lib/param namesAndrew Bartlett1-0/+24
This adds an alisas to ensure that both our loadparm systems know all the names. I would like to move to the 'server ..' name as canonical, and this will be raised on the list. Andrew Bartlett
2012-02-27lib/tdb2: rename tdb2.pc to tdb.pcRusty Russell2-1/+1
The library is called tdb, so the pc file must have the same name. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Autobuild-User: Rusty Russell <rusty@rustcorp.com.au> Autobuild-Date: Mon Feb 27 06:59:58 CET 2012 on sn-devel-104
2012-02-21lib/tdb2: 2.0.0 ABIAmitay Isaacs1-0/+40
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Autobuild-User: Rusty Russell <rusty@rustcorp.com.au> Autobuild-Date: Tue Feb 21 07:43:55 CET 2012 on sn-devel-104
2012-02-21lib/tdb2: Convert tdb2 to a standalone libraryAmitay Isaacs4-0/+99
Adds a Makefile, configure script, and tdb2.pc.in. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2012-02-21lib/tdb2: Fix wscriptAmitay Isaacs1-29/+52
Particularly fix the upcoming standalone build. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2012-02-21lib/tdb2: Mark public function as suchAmitay Isaacs9-40/+40
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2012-02-21lib/tdb2: Do not include config.h in (to-be) public library, use replace.Amitay Isaacs2-2/+22
Like tdb1, it's the caller's responsibility to set up various config options (eg. by #include "config.h") before including the public header. We use HAVE_CCAN for including the (private) CCAN headers, otherwise dummy macros are used. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2012-02-21lib/tdb2: tools should use config.h, and replace where available.Rusty Russell5-1/+28
The tdb2 tools should #include "config.h" before tdb2.h (about to become a requirement) and use libreplace where available. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2012-02-21lib/ccan: define HAVE_CCAN.Rusty Russell1-0/+1
This allows public headers to use CCAN if available, and dummy macros if not (eg. tdb2). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2012-02-20popt: Check for popt manually as well, not just using pkg-config.Jelmer Vernooij1-1/+1
Older systems don't provide a pkg-config file for popt. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Mon Feb 20 15:13:32 CET 2012 on sn-devel-104
2012-02-20build: Add libbsd as a dep for LIBREPLACE_HOSTCCAndrew Bartlett1-4/+5
Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Mon Feb 20 02:58:20 CET 2012 on sn-devel-104
2012-02-19popt: Use pkg-config file to look for popt.Jelmer Vernooij1-1/+1
2012-02-17lib/util: Remove unused sys_inet_makeaddr()Andrew Bartlett2-11/+0
Found by callcatcher. Andrew Bartlett
2012-02-17lib/util: Remove unused sys_gethostbyname()Andrew Bartlett2-48/+0
Found by callcatcher. Andrew Bartlett
2012-02-16lib/util: Remove sys_poll as it is no longer neededAndrew Bartlett2-91/+0
sys_poll() is only needed if the signal pipe is set up and used, but as no signal handler ever writes to the pipe, this can all be removed. signal based events are now handled via tevent. Andrew Bartlett Signed-off-by: Jeremy Allison <jra@samba.org>
2012-02-16lib/util: Remove unused sys_select_signal()Andrew Bartlett2-19/+0
Now sys_poll needs to be cleaned up not to refer to the pipe that is now not used. Andrew Bartlett Signed-off-by: Jeremy Allison <jra@samba.org>
2012-02-15tevent_signal: Fix a valgrind errorVolker Lendecke1-1/+2
This fixes an uninitialized read introduced by my fix for the tevent_signal destructors. From looking at the code you might believe that this kicks in only when talloc failed. But with -O3 I do see it in normal operations. Sorry for that. Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Wed Feb 15 17:58:37 CET 2012 on sn-devel-104
2012-02-14tdb: build and run unit tests in tdb/test/Rusty Russell1-7/+87
Now we can build the test binaries: the CCAN style is to compile everything called "compile_ok*.c", compile and run everything called "run*.c", compile, link with the module, and run everything called "api*.c", and link any other C files (presumably test helpers) into all the tests. Unfortunately, actually passing that between the various parts of wscript is painful, so I open-coded the names. Also, the tests expect to be run in a (temporary) directory they can pollute, with the test directory found in test/ (to find the canned TDB files, for example). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Autobuild-User: Rusty Russell <rusty@rustcorp.com.au> Autobuild-Date: Tue Feb 14 06:53:46 CET 2012 on sn-devel-104
2012-02-14tdb/test: fix up tests for use in SAMBA tdb code.Rusty Russell5-13/+16
1) Make sure we include "tdb_private.h" first, to get the right headers (esp. the correct setting of _FILE_OFFSET_BITS before unistd.h). 2) Fix 3G file test since expand logic has changed. 3) Fix nested transaction test, since default is to allow nesting. 4) Capture fdatasync, which was slowing down transaction expand. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2012-02-14tdb: wean CCAN-style unit tests off of tap.Rusty Russell25-23/+64
We could use subunit, but that's overkill. Just print messages when we fail, and use exit status. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2012-02-14tdb: import unit tests from CCAN into tdb/test/Rusty Russell35-1/+2567
I pulled tdb into CCAN as an experiment a while ago; it doesn't belong there, but it has accumulated some important unit tests. These are copied from CCAN version init-1486-gc438ec1 with #include "../" changed to #include "../common/". Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2012-02-14tdb: make tdb_private.h idempotent.Rusty Russell1-0/+3
The most convenient way to write unit tests in C is to directly #include the C files (CCAN uses this, for example). That works quite well, but it means that tdb_private.h now needs to be protected against multiple inclusions. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2012-02-13s3-libads: Move to using only the HAVE_KRB5 defineAndrew Bartlett1-2/+2
HAVE_KRB5 already implies that GSSAPI is present as well. Andrew Bartlett
2012-02-13s3-lib/addns: Move to system/kerberos.h and HAVE_KRB5Andrew Bartlett2-18/+3
2012-02-13LDB:pyldb.c - use always the case insensitive comparison for attribute namesMatthias Dieter Wallnöfer1-2/+2
We can make no assumptions about our users Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2012-02-10lib/util: Remove unused str_format_nbt_domain()Andrew Bartlett2-41/+0
Found by callcatcher: http://www.skynet.ie/~caolan/Packages/callcatcher.html Andrew Bartlett
2012-02-10charset: Remove unused strcmp_w()Andrew Bartlett2-15/+0
Found by callcatcher. Found by callcatcher: http://www.skynet.ie/~caolan/Packages/callcatcher.html Andrew Bartlett
2012-02-10charset: Remove unused iconv_talloc()Andrew Bartlett3-120/+1
Found by callcatcher: http://www.skynet.ie/~caolan/Packages/callcatcher.html Andrew Bartlett
2012-02-09tevent: change the version to 0.9.15Stefan Metzmacher2-1/+79
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Feb 9 12:24:19 CET 2012 on sn-devel-104
2012-02-09tevent: Fix deleting signal events from within themselvesVolker Lendecke1-2/+33
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-02-08Fix shadow variable name warning.Jeremy Allison1-10/+10
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Feb 8 22:55:08 CET 2012 on sn-devel-104
2012-02-07crypto: Use libbsd md5 header, if available.Jelmer Vernooij3-2/+17
2012-02-07crypto/md5: Change prototypes to match BSD.Jelmer Vernooij1-5/+7
2012-02-07charset/tests: Add prototypes for test functions.Jelmer Vernooij2-0/+7
2012-02-07loadparm: handle P_SEP in switches (silences warning with clang).Jelmer Vernooij1-0/+5
2012-02-07pysocketwrapper: fix behaviour to be consistent with 'socket.getsockopt'Jelmer Vernooij1-2/+2
socklen_t is unsigned
2012-02-07crypto: Add prototype for main torture functions.Jelmer Vernooij3-0/+4
2012-02-06lib/util: Add hex_encode_bufVolker Lendecke2-9/+21
Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Mon Feb 6 09:15:33 CET 2012 on sn-devel-104
2012-02-04s3-popt: Fix configure.developer builds on Solairs.Ira Cooper1-0/+2
alloca.h needs to be included, or the build complains the implicit definition of alloca. Signed-off-by: Jeremy Allison <jra@samba.org> Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Feb 4 03:27:42 CET 2012 on sn-devel-104
2012-02-03loadparm: fix a load of uninitialized memory errors found by valgrind.Michael Adam1-1/+1
2012-02-02replace: Only add bsd dependency when bsd library was found.Jelmer Vernooij1-1/+4
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Thu Feb 2 05:18:45 CET 2012 on sn-devel-104
2012-02-02tdb2: add --disable-tdb2Rusty Russell1-0/+3
I thought you could --disable-tdb2=false, apparently not! Thanks Michael Adam... Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Autobuild-User: Rusty Russell <rusty@rustcorp.com.au> Autobuild-Date: Thu Feb 2 03:43:08 CET 2012 on sn-devel-104
2012-02-01selftest: Remove unused support for --exeextAndrew Bartlett4-58/+58
2012-02-01replace: Add include for bsd/string.h.Jelmer Vernooij1-0/+4
2012-01-31Fix bug #8729 - getpass regressions on Solaris/Illumos - 3.6 and master.Ira Cooper2-0/+13
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue Jan 31 23:28:09 CET 2012 on sn-devel-104