Commit Graph

43 Commits

Author SHA1 Message Date
Nicolas Williams
ea90ca8666 Move some infra bits of lib/krb5/ to lib/base/ (2)
This is the second of two commits in a series that must be picked together.

This series of two commits moves parts of lib/krb5/ infrastructure
functionality to lib/base/, leaving behind wrappers.

Some parts of libkrb5 are entirely generic or easily made so, and could
be useful in various parts of Heimdal that are not specific to the krb5
API, such as:

 - lib/gssapi/  (especially since the integration of NegoEx)
 - lib/hx509/
 - bx509d       (which should really move out of kdc/)

For the above we need to move these bits of lib/krb5/:

 - lib/krb5/config_file.c   (all of it, leaving forwardings behind)
 - lib/krb5/config_reg.c    (all of it)
 - lib/krb5/plugin.c        (all of it, leaving forwardings behind)
 - lib/krb5/log.c           (all of it, ditto)
 - lib/krb5/heim_err.et     (all of it)

And because of those two, these too must also move:

 - lib/krb5/expand_path.c   (all of it, leaving forwardings behind)
 - lib/krb5/warn.c          (just the warning functions, ditto)

The changes to the moved files are mostly quite straightforward and are
best reviewed with --word-diff=color.

We're also creating a heim_context and a heim API to go with it.  But
it's as thin as possible, with as little state as necessary to enable
this move.  Functions for dealing with error messages use callbacks.

Moving plugin.c does have one knock-on effect on all users of the old
krb5 plugin API (which remains), which is that a global search and
replace of struct krb5_plugin_data to struct heim_plugin_data was
needed, though the layout and size of that structure doesn't change, so
the ABI doesn't either.

As well, we now build lib/vers/ and lib/com_err/ before lib/base/ so as
to be able to move lib/krb5/heim_err.et to lib/base/ so that we can make
use of HEIM_ERR_* in lib/base/, specifically in the files that moved.

Once this is all done we'll be able to use config files and plugins in
lib/hx509/, we'll be able to move bx509d out of kdc/, and so on.

Most if not all of the new functions in lib/base/ are Heimdal-private,
thus calling conventions for them are not declared.

Status:

 - builds and passes CIs (Travis, Appveyor)
 - ran make check-valgrind and no new leaks or other memory errors
 - ready for review

HOW TO REVIEW:

     $ # Review file moves:
     $ git log --stat -n1 HEAD^
     $
     $ # Review changes to moved files using --word-diff=color
     $ git log -p -b -w --word-diff=color HEAD^..HEAD   \
               lib/base/config_file.c                   \
               lib/base/config_reg.c                    \
               lib/base/expand_path.c                   \
               lib/base/warn.c                          \
               lib/krb5/config_file.c                   \
               lib/krb5/config_reg.c                    \
               lib/krb5/expand_path.c                   \
               lib/krb5/warn.c
     $
     $ # Review the whole thing, possibly adding -b and/or -w, and
     $ # maybe --word-diff=color:
     $ git log -p origin/master..HEAD
     $ git log -p -b -w origin/master..HEAD
     $ git log -p -b -w --word-diff=color origin/master..HEAD

TBD (future commits):

 - make lib/gssapi use the new heimbase functions
 - move kx509/bx509d common code to lib/hx509/ or other approp. location
 - move bx509d out of kdc/
2020-03-02 10:56:13 -06:00
Nicolas Williams
6d1571a3c4 Fix --disable-afs-support disable lib/kafs 2016-08-04 18:51:23 -05:00
David Mulder
d8080162ea --disable-afs-support doesn't really disable afs 2016-08-02 12:58:26 -06:00
Nicolas Williams
5c2a3cb25a Always build hcrypto 2016-04-15 00:16:16 -05:00
Nicolas Williams
2d52e52401 Always build lib/sqlite in maintainer mode 2016-04-15 00:16:14 -05:00
Nicolas Williams
98809e86ce Move base into lib
This involves reverting dd267e8fc3,
    but that gets lost in the move.

    This builds on Ubuntu and Windows at this time.
2012-06-20 19:32:08 -05:00
Love Hörnquist Åstrand
7aaba443bc add NTMakefile and windows directories 2011-07-17 12:16:59 -07:00
Love Hornquist Astrand
9ef071c94e replace libeditline with libedit 2011-03-13 14:18:14 -07:00
Love Hornquist Astrand
663548b9e5 remove libauth since either is krb4 only, or non longer existing operating systems 2010-11-20 14:56:11 -08:00
Love Hornquist Astrand
ceb1cfa0be add ipc 2009-11-21 10:29:39 -08:00
Love Hornquist Astrand
cad48529d0 drop 45 library 2009-09-07 21:26:37 -07:00
Love Hörnquist Åstrand
1f37a38728 don't build sqlite if there is a system one
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23606 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-17 15:56:12 +00:00
Love Hörnquist Åstrand
97aa9055da dont build editline if not needed. From Guillame Rosse
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23372 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-17 20:42:30 +00:00
Love Hörnquist Åstrand
b5c2ba0230 SUBDIRS += sqlite
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22805 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 11:45:28 +00:00
Love Hörnquist Åstrand
50832a3e4c SUBDIRS: add wind
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22554 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-02-01 16:24:18 +00:00
Love Hörnquist Åstrand
7ba2b2006c rename des to hcrypto
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20466 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-20 08:29:05 +00:00
Love Hörnquist Åstrand
4e85483d75 libheimntlm.la needs to be built after libkrb5.la
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19372 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-15 21:21:05 +00:00
Love Hörnquist Åstrand
6bb820f1db hook in ntlm
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19357 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-15 19:46:12 +00:00
Love Hörnquist Åstrand
0923df342a fix test for COM_ERR
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19255 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-06 13:47:57 +00:00
Love Hörnquist Åstrand
a2bf2a8e79 Make the directories test automake conditional so automake can include
directories in make dist step.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19253 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-06 13:36:36 +00:00
Love Hörnquist Åstrand
6c0db59f17 Add hx509.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16818 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-03-27 00:17:03 +00:00
Jacques A. Vidrine
2639d758e1 autoconf magic for compile_et/libcom_err
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10581 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-08-28 18:48:19 +00:00
Assar Westerlund
903e40d403 (SUBDIRS): try to only link des when needed
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9193 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-11-15 23:11:05 +00:00
Johan Danielsson
fd9a197672 use conditional for dce
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8672 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-15 15:19:20 +00:00
Assar Westerlund
88d1212fd2 (SUBDIRS): make roken conditional
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8599 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-08 14:24:47 +00:00
Assar Westerlund
eb0a539ed7 (SUBDIRS): explicitly list roken for now
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8520 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-02 04:08:31 +00:00
Assar Westerlund
aff51cc793 (SUBDIRS): add $(LIB_dce)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8509 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-01 19:39:07 +00:00
Johan Danielsson
788b4f78f2 add auth
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5822 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-04-01 15:03:37 +00:00
Johan Danielsson
146eefb22d better handling of otp
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5668 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-21 14:03:33 +00:00
Johan Danielsson
0f23e17f6f fix broken checkin
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5652 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-20 13:58:20 +00:00
Assar Westerlund
f42ca9c63a correct path to Makefile.am.common
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5638 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-19 23:16:50 +00:00
Johan Danielsson
243533c6fe add 45
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5620 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-19 13:48:50 +00:00
Johan Danielsson
c94d53f31f include Makefile.am.common
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5586 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-18 10:58:49 +00:00
Johan Danielsson
27ec0423ab Add com_err, remove error.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4408 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-02-16 15:10:55 +00:00
Johan Danielsson
5d37469905 +kafs
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3801 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-06 13:07:56 +00:00
Johan Danielsson
69f26a4ae0 kadm5
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3798 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-06 00:06:32 +00:00
Assar Westerlund
1811a577b0 cond otp
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3697 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-10-29 01:28:33 +00:00
Assar Westerlund
354f811267 add otp
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2831 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-08 22:51:33 +00:00
Johan Danielsson
c035922872 SUBDIRS += error
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2125 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-10 04:09:11 +00:00
Assar Westerlund
3b2b6d8a39 added roken,sl,editline
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1856 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-06-08 01:51:18 +00:00
Assar Westerlund
737cdfe5ad Added gssapi
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1569 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-04-13 22:12:15 +00:00
Johan Danielsson
fdca29a1ee Add hdb.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1388 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-03-14 01:52:03 +00:00
Johan Danielsson
b96bc32e40 *** empty log message ***
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@880 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-10-22 22:32:57 +00:00