summaryrefslogtreecommitdiffstats
path: root/kerberos5
Commit message (Collapse)AuthorAgeFilesLines
* MFC r318514-r318515, r318517, r318917delphij2017-05-311-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r318514: Use size_t. Inspired by: OpenBSD src/lib/libc/stdlib/qsort.c,v 1.11 r318515: The current qsort(3) implementation ignores the sizes of partitions, and always perform recursion on the left partition, then use a tail call to handle the right partition. In the worst case this could require O(N) levels of recursions. Reduce the possible recursion level to log2(N) by always recursing on the smaller partition instead. Obtained from: PostgreSQL 9d6077abf9d6efd992a59f05ef5aba981ea32096 r318517: Sync qsort.c with userland r318515. (Note that MIN macro is removed in favor of sys/param.h's version). PR: 213922 r318917: Disconnect heimdal version of qsort.c from build because we are already using libc's version of qsort. PR: bin/213922
* MFC r311114:ngie2017-01-091-1/+7
| | | | Build libexec/kadmind when MK_GSSAPI != no because it requires gssapi
* MFC r311112,r311115:ngie2017-01-092-3/+15
| | | | | | | | | | | | r311112: libgssapi_{krb5,ntlm,spnego} requires MK_GSSAPI != no; conditionalize their building on the knob r311115: Conditionalize adding ${KRB5DIR}/lib/gssapi/krb5/gkrb5_err.et to ETSRCS if MK_GSSAPI != "no"
* MFC r297282,r297456,r298012,r298013,r298014:ngie2016-04-231-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r297282 (by bdrewery): We don't have a CPPFLAGS, COPTS or CPUFLAGS. r297456 (by bdrewery): We don't support DPLIBS. r298012: Add DEBUG_FLAGS to PROG_VARS and STRIP to PROG_OVERRIDE_VARS This will allow the variables [*] to be overridden on a per-PROG basis, which is useful when controlling "stripping" behavior for some tests that require debug symbols or to be unstripped DEBUG_FLAGS (similar to CFLAGS) supports appending, whereas STRIP is an override *: Due to how STRIP is defined in bsd.own.mk (in addition to bsd.lib.mk and bsd.prog.mk), and the fact that bsd.test.mk pulls in bsd.own.mk first, overriding STRIP doesn't work today. A follow up commit is pending to "rectify" this after additional testing is done. Discussed with: bdrewery r298013: Commit documentation change for r298012 Requested by: bdrewery r298014: Regenerate the list of bsd.progs.mk supported variables Prefix with dashes (unordered list) and put one variable on each line (to avoid future conflicts) Done via the following one-liner: > sh -c 'for i in $(make -C tests/sys/aio PROG=foo -VPROG_VARS:O); do printf "\t\t- $i\n"; done'
* MFC r284289,r288267:bdrewery2015-12-042-2/+3
| | | | | | | r284289: Misc fixes from projects/bmake r288267: Remove redundant .NOPATH.
* MFC r288266:bdrewery2015-10-136-1/+9
| | | | Add more SUBDIR_PARALLEL.
* MFC r288198,r288200:bdrewery2015-10-086-18/+6
| | | | | | | r288198: Remove unneeded dependency line. r288200: Remove unneeded dependency of '.o: .h' that bsd.prog.mk already handles.
* MFC r288199,r288246:bdrewery2015-10-036-0/+12
| | | | Add missing CLEANFILES.
* MFC r287208, r287216:ume2015-09-036-5/+8
| | | | Make it buildable with WITH_OPENLDAP, again.
* MFC: r284578jkim2015-06-221-1/+1
| | | | Fix a typo.
* MFC r264400,r265836:ngie2014-12-317-7/+7
| | | | | | | | | | | | | | r264400: NO_MAN= has been deprecated in favor of MAN= for some time, go ahead and finish the job. ncurses is now the only Makefile in the tree that uses it since it wasn't a simple mechanical change, and will be addressed in a future commit. r265836: Remove last two NO_MAN= in the tree. In both of these cases, MAN= is what is needed.
* MFC r262253: hack to prevent concurrent runs of asn1_compile in the Heimdalpeter2014-02-204-0/+14
| | | | build with high -j concurrency.
* Clean up the Kerberos build by turning libheimipcc and libheimipcs intodes2013-09-106-11/+10
| | | | | | | | private shared libraries, instead of hacked-together archives of PIC objects. This makes it possible to build a static libkrb5 that works. Reviewed by: stas Approved by: re (gjb)
* Fix the getpwnam_r() call in the pname_to_uid() kerberos library function sormacklem2013-05-021-4/+28
| | | | | | | | | that it handles the ERANGE error return case. Without this fix, authentication of users for certain system setups could fail unexpectedly. Reported by: Elias Martenson (lokedhs@gmail.com) Tested by: Elias Martenson (earlier version) MFC after: 2 weeks
* Add -lheimntlm to LDADD directly.brooks2013-02-111-1/+1
| | | | | | | | | | | With the current binutils, symbols from libheimtlm.so are loaded because it is referenced by DT_NEEDED. This feature is not implemented in mclinker (https://code.google.com/p/mclinker/issues/detail?id=104). I encountered the same issue when linking with a recent devel/binutils invoked via clang. This was the only use of DT_NEEDED in the tree so removing it simplifies toolchain requirements. Submitted by: Pete Chou <petechou@gmail.com> (mclinker issue)
* Only try to install one link at each path.brooks2013-01-231-9/+1
| | | | | Don't install verify_krb5_conf.8. It is installed in kerberos5/usr.bin/verify_krb5_conf.
* Add support for bmake. This includes:marcel2012-10-063-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Don't do upgrade_checks when using bmake. As long as we have WITH_BMAKE, there's a bootstrap complication in ths respect. Avoid it. Make the necessary changes to have upgrade_checks work wth bmake anyway. 2. Remove the use of -E. It's not needed in our build because we use ?= for the respective variables, which means that we'll take the environment value (if any) anyway. 3. Properly declare phony targets as phony as bmake is a lot smarter (and thus agressive) about build avoidance. 4. Make sure CLEANFILES is complete and use it on .NOPATH. bmake is a lot smarter about build avoidance and should not find files we generate in the source tree. We should not have files in the repository we want to generate, but this is an easier way to cross this hurdle. 5. Have behavior under bmake the same as it is under make with respect to halting when sub-commands fail. Add "set -e" to compound commands so that bmake is informed when sub-commands fail. 6. Make sure crunchgen uses the same make as the rest of the build. This is important when the make utility isn't called make (but bmake for example). 7. While here, add support for using MAKEOBJDIR to set the object tree location. It's the second alternative bmake looks for when determining the actual object directory (= .OBJDIR). Submitted by: Simon Gerraty <sjg@juniper.net> Submitted by: John Van Horne <jvanhorne@juniper.net>
* Centralize the specification of the krb5 build tools.obrien2012-06-0114-19/+11
|
* * Remove headers from SRCS that are not generatedobrien2012-05-3027-67/+41
| | | | | | (and are in /usr/src/crypto/heimdal/). * Avoid race conditions with 'make -j<N>'.
* - Update FreeBSD's Heimdal distribution to 1.5.2. This is a bugfixstas2012-04-082-5/+5
| | | | release, which fixes a DoS issue in libkrb5.
* - Add a "real" symbol version map to libasn1. The upstream versionstas2012-04-084-11/+1618
| | | | | | | | | | of the version map just exported all the symbols, which caused a binutils bug being triggered when ld fails to link two objects, one of which exports a versioned version of the symbol, and another -- unversioned. [1] - Also add version map for libkafs5. Submitted by: jchandra@ (based on)
* Assume a big-endian default on MIPS and drop the "eb" suffix from MACHINE_ARCH.jmallett2012-03-291-2/+1
| | | | | | | | | | | | | | | This makes our naming scheme more closely match other systems and the expectations of much third-party software. MIPS builds which are little-endian should require and exhibit no changes. Big-endian TARGET_ARCHes must be changed: From: To: mipseb mips mipsn32eb mipsn32 mips64eb mips64 An entry has been added to UPDATING and some foot-shooting protection (complete with warnings which should become errors in the near future) to the top-level base system Makefile.
* - Apply binutils workaround on mips.mips as well. Though this TARGET_ARCHstas2012-03-241-1/+2
| | | | is deprecated, tinderbox uses it.
* - Update FreeBSD Heimdal distribution to version 1.5.1. This also bringsstas2012-03-2262-855/+1842
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | several new kerberos related libraries and applications to FreeBSD: o kgetcred(1) allows one to manually get a ticket for a particular service. o kf(1) securily forwards ticket to another host through an authenticated and encrypted stream. o kcc(1) is an umbrella program around klist(1), kswitch(1), kgetcred(1) and other user kerberos operations. klist and kswitch are just symlinks to kcc(1) now. o kswitch(1) allows you to easily switch between kerberos credentials if you're running KCM. o hxtool(1) is a certificate management tool to use with PKINIT. o string2key(1) maps a password into key. o kdigest(8) is a userland tool to access the KDC's digest interface. o kimpersonate(8) creates a "fake" ticket for a service. We also now install manpages for some lirbaries that were not installed before, libheimntlm and libhx509. - The new HEIMDAL version no longer supports Kerberos 4. All users are recommended to switch to Kerberos 5. - Weak ciphers are now disabled by default. To enable DES support (used by telnet(8)), use "allow_weak_crypto" option in krb5.conf. - libtelnet, pam_ksu and pam_krb5 are now compiled with error on warnings disabled due to the function they use (krb5_get_err_text(3)) being deprecated. I plan to work on this next. - Heimdal's KDC now require sqlite to operate. We use the bundled version and install it as libheimsqlite. If some other FreeBSD components will require it in the future we can rename it to libbsdsqlite and use for these components as well. - This is not a latest Heimdal version, the new one was released while I was working on the update. I will update it to 1.5.2 soon, as it fixes some important bugs and security issues.
* Don't support OpenLDAP during lib32 build.ume2011-12-061-1/+1
|
* - Make heimdal buildable with WITH_OPENLDAP defined, again.ume2011-12-052-4/+4
| | | | - Our heimdal uses the deprecated OpenLDAP functions.
* Link with -ledit instead of -lreadline.fjoe2011-11-292-4/+4
|
* - Add missing interdependencies to kerberos libraries. Some of thestas2011-09-2712-7/+33
| | | | | | | | | kerberos libraries were not linked properly (missing dependencies), which causes 3rd party applications linking to fail when --as-needed ld flag is used. I also added the --no-undefined ld(1) flag to make sure that there're no missing dependencies. MFC after: 3 days
* The kerberos5 tools are only used as build tools but not otherwise andmarius2011-06-251-1/+1
| | | | | | didn't get installed either. MFC after: 1 week
* Fix a typo.antoine2010-01-091-1/+1
| | | | MFC after: 1 month
* Fix a typo.antoine2010-01-091-1/+1
| | | | MFC after: 1 month
* Link GSS mechanics modules against libgssapi so they will not fail duebland2009-10-122-4/+4
| | | | | | | | unresolved symbol errors when in turn libgssapi was loaded with RTLD_LOCAL flag set (which is the default). Reviewed by: dfr, jhb MFC after: 3 days
* Disconnect closefrom.c as we have it as a system call.delphij2009-06-161-1/+0
|
* Now we have closefrom().delphij2009-06-151-1/+1
|
* Add strndup(3) prototype to string.h.kib2008-12-081-1/+1
| | | | | | | | | | | This change was erronously ommitted from the r185690, and attempt to simply add the prototype to string.h has revealed that several contributed programs defined local prototypes for strndup(), controlled by autoconfed config.h. So, manually change #undef HAVE_STRNDUP to #define HAVE_STRNDUP 1. Next import of the corresponding program would regenerate config.h, overriding the changes in this commit. No objections from: kan
* Add an implementation of the RPCSEC_GSS authentication protocol for RPC. Thisdfr2008-08-062-0/+60
| | | | | | | | is based on an old implementation from the University of Michigan with lots of changes and fixes by me and the addition of a Solaris-compatible API. Sponsored by: Isilon Systems Reviewed by: alfred
* Add roken.h to SRCS. This fixes the compilation of slc during amarius2008-06-181-0/+1
| | | | | buildworld on a host running a world built with WITHOUT_KERBEROS defined.
* Add the hx509 error table.dfr2008-05-151-0/+2
|
* Add manpage links to krb5_principal.3.dfr2008-05-111-0/+29
|
* Don't try to make links to manpages that no longer exist. Fixes installworlddfr2008-05-111-6/+0
| | | | Submitted by: phk
* Update magic sed script for heimdal-1.1dfr2008-05-091-4/+7
|
* Update heimdal_version.dfr2008-05-081-2/+2
| | | | Pointed out by: antoine@
* Fix conflicts after heimdal-1.1 import and add build infrastructure. Importdfr2008-05-0743-292/+2114
| | | | all non-style changes made by heimdal to our own libgssapi.
* While checking over the libraries for 7.0-REL Kris found the followingkensmith2007-11-201-1/+1
| | | | | | | | | | | libraries had not had their versions bumped relative to 6.3-REL but had indeed been changed. We need to bump their version so they can be properly added to the compat6x port: libasn1.so.8 libgssapi.so.8 libhdb.so.8 libkadm5clnt.so.8 libkadm5srv.so.8 libkafs5.so.8 libkrb5.so.8 libobjc.so.2 MFC After: 1 day
* Remove _FREEFALL_CONFIG hackspeter2007-10-181-4/+1
|
* Fix generator glue to only expose extern struct units %s_units[] iskan2007-05-191-1/+6
| | | | | struct units defintition it known. The above construct is treated as an incorrect C by GCC 4.2 otherwise.
* Kerberos/Heimdal doesn't really depend on the INET6 macro.yar2006-07-281-1/+0
| | | | | | | | In the Heimdal distro, only kerberized telnet refers to INET6, but we don't build it, we use contrib/telnet linked with the Kerberos libs instead. Tested with: cmp(1)
* Bump library majro version for gethostbyaddr(3).ume2006-05-211-0/+1
|
* Reimplementation of world/kernel build options. For details, see:ru2006-03-171-5/+5
| | | | | | | | http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html The src.conf(5) manpage is to follow in a few days. Brought to you by: imp, jhb, kris, phk, ru (all bugs are mine)
* NO_MAN is not needed here.ru2006-03-161-1/+0
|
OpenPOWER on IntegriCloud