28 Commits

Author SHA1 Message Date
c80c04b235 spelling fixes (underun prefered relase encyption confunder)
[abartlet@samba.org: From Samba debian package at
 https://salsa.debian.org/samba-team/samba/-/blob/master/debian/patches/heimdal-spelling.patch?ref_type=heads]

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2024-06-16 23:28:43 -04:00
aeac1186c8 sqlite: Be thread-safe on Windows too 2021-11-30 11:42:00 -05:00
250eee7acf sqlite: Use 0600
The in-tree SQLite3 is used for HDB and ccache -- these should have
0600 permissions.

Of course, if we're using an out-of-tree SQLite3, then we need to rely
on the process' umask, but we use SQLite3 in libraries, where we can't
set the umask...

What to do?

TBD:

 - On Windows: nothing to do.

 - On Unix: if SQLite3 is out of tree then [v]fork() to create the
   connection then close, then connect again after??

   Or... maybe make sure to create an intermediate directory with 0700
   permissions?
2021-11-30 11:42:00 -05:00
21e2ba2573 sqlite: Upgrade to SQLite3 3.33.0 2020-10-27 13:30:57 -05:00
c06252745d sqlite: Disable errors 2020-09-07 22:04:59 -05:00
ee7e345af1 sqlite: silence OSAtomicCompareAndSwapPtrBarrier warning
The deprecated OSAtomicCompareAndSwapPtrBarrier() function is used by a code
path only taken on macOS systems with a single CPU. As very few Macs have a
single CPU today, remove this optimization. (Replacing it with <stdatomic.h> as
suggested would break compatability with macOS prior to 10.12.)
2020-07-20 13:41:53 +10:00
26a0332e3c Update SQLite to 3.17.0 2017-03-19 18:55:51 -04:00
6b68a56820 Updated SQLite to 3.15.1 2016-11-14 01:05:41 -05:00
44dec510fd Update to SQLite3 3.14
Newer versions of SQLite3 have a number of new features that are
desirable to users who host other DBs in the same file as the HDB (for
example), as well as performance and bug fixes.

We should consider switching the SQLite3 backend for HDB to WITHOUT
ROWID tables for performance reasons.  We should also consider using
foreign keys instead of triggers.  Making any such changes requires care
to permit both, upgrade and downgrade.

We might want to use the SQLite3 session extension for a SQLite3-
specific, low-level replication (iprop).  Given conflict resultion code,
or a sufficiently normalized schema, the session extension would make it
easy to create a multi-master replication system, not unlike what one
would expect of an LDAP setup, though with none of the atomicity that
LDAP is supposed to provide (specifically, O_EXCL semantics for creates
and predicates for updates) unless we were to add a locking protocol.

Note that as of 3.14, the session extension is mutually exclusive of
WITHOUT ROWID tables.
2016-08-11 14:53:25 -05:00
01c2d5b801 Add lib/sqlite/README 2016-08-11 11:26:41 -05:00
70e43e9808 Fix some typos. 2014-04-25 02:42:17 +02:00
a1738def66 solaris want's _XOPEN_SOURCE set to 600, From Ragnar Sundblad 2011-09-29 13:57:24 +02:00
69ead071e9 upgrade to 3.7.8 2011-09-23 13:27:21 +02:00
7aaba443bc add NTMakefile and windows directories 2011-07-17 12:16:59 -07:00
0879b9831a remove trailing whitespace 2011-05-21 11:57:31 -07:00
ef90819a9a rename PTHREADS_LIBADD to PTHREAD_LIBADD
Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2010-10-31 00:29:54 -07:00
18303dcd72 sqlite3-3.6.23.1 2010-06-25 14:34:41 -07:00
76c1e2e8a2 switch to PTHREADS_LIBADD 2009-12-17 09:11:09 +01:00
a80ec519cd condition threadsafe on ENABLE_PTHREAD_SUPPORT 2009-12-13 22:48:56 -08:00
8991a40847 add PTHREADS_LIBS 2009-12-13 16:35:50 -08:00
daef47b7da don't define SQLITE_THREADSAFE just because THREADSAFE is set 2009-12-13 15:36:14 -08:00
c6bbdb545b First drop of Windows build infrastructure from Secure Endpoints 2009-11-24 12:12:53 -08:00
24b3226aaf fix build
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23995 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-10-30 03:05:19 +00:00
66d934b8a4 Build sqlite as a real library, not as a convince lib, rename it to heimsqlite.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23958 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-10-26 18:21:00 +00:00
a27cf44d24 update to sqlite 3.6.3
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23903 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-10-13 03:02:54 +00:00
6937d41a02 remove trailing whitespace
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23815 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 09:21:03 +00:00
f1a4ce17e5 First implementation.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22807 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 11:45:38 +00:00
4f875a4a85 sqlite
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22803 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 11:45:14 +00:00