Commit Graph

25 Commits

Author SHA1 Message Date
Nicolas Williams
cbe156d927 Use OpenSSL 3.x _only_ and implement RFC 8636
- No more OpenSSL 1.x support
 - Remove 1DES and 3DES
 - Remove NETLOGON, NTLM (client and 'digest' service)
2026-01-18 19:06:16 -06:00
Nicolas Williams
7439820618 hcrypto, otp: Remove hcrypto and otp!
We must switch to OpenSSL 3.x, and getting lib/hcrypto to provide
OpenSSL 3.x APIs is too large an undertaking.  Plus the hcrypto backend
is not safe, not secure (probably has timing leaks galore), and no one
has the resources to make it a world-class crypto library, so it just
has to go.
2026-01-18 16:09:31 -06:00
Jeffrey Altman
de6776e66b appl/test: AUTOMAKE_OPTIONS = subdir-objects
Avoid the following warning

   warning: source file '../../kuser/kinit.c' is in a subdirectory,
   but option 'subdir-objects' is disabled
2025-10-09 12:41:39 -04:00
Taylor R Campbell
ad23636db8 Add a test for potential DNS leaks via symbol interposition.
We build variants of kinit and test_acquire_cred that define their
own symbols rk_dns_lookup, gethostbyname, gethostbyname2, and
getaddrinfo to print a message and abort.  For getaddrinfo, we abort
only if the caller failed to specify AI_NUMERICHOST; otherwise we use
dlsym(RTLD_NEXT, "getaddrinfo") instead.

The new test tests/gss/check-nodns is like tests/gss/check-basic, but
uses kinit_auditdns and test_acquire_cred_auditdns to verify that no
DNS resolution happens.

This test should work and be effective on ELF platforms where the
getaddrinfo function is implemented by the symbol `getaddrinfo'.  On
non-ELF platforms it may not be effective -- and on platforms where
the getaddrinfo function is implemented by another symbol (like
`__getaddrinfo50') it may not work, but we can cross that bridge when
we come to it.

Verified manually that the test fails, with the expected error
message and abort, without `block_dns = yes' in krb5-nodns.conf.  No
automatic test of the mechanism for now because it might not work on
some platforms.

XXX check-nodns.in is copypasta of check-basic.in, should factor out
the common parts so they don't get out of sync.
2024-01-08 10:22:02 -06:00
Roland C. Dowdeswell
cc47c8fa7b Turn on -Wextra -Wno-sign-compare -Wno-unused-paramter and fix issues.
We turn on a few extra warnings and fix the fallout that occurs
when building with --enable-developer.  Note that we get different
warnings on different machines and so this will be a work in
progress.  So far, we have built on NetBSD/amd64 5.99.64 (which
uses gcc 4.5.3) and Ubuntu 10.04.3 LTS (which uses gcc 4.4.3).

Notably, we fixed

	1.  a lot of missing structure initialisers,

	2.  unchecked return values for functions that glibc
	    marks as __attribute__((warn-unused-result)),

	3.  made minor modifications to slc and asn1_compile
	    which can generate code which generates warnings,
	    and

	4.  a few stragglers here and there.

We turned off the extended warnings for many programs in appl/ as
they are nearing the end of their useful lifetime, e.g.  rsh, rcp,
popper, ftp and telnet.

Interestingly, glibc's strncmp() macro needed to be worked around
whereas the function calls did not.

We have not yet tried this on 32 bit platforms, so there will be
a few more warnings when we do.
2012-02-20 19:45:41 +00:00
Love Hornquist Astrand
84caf5bbd8 jgssapi_server is a java file 2011-11-09 08:04:52 -08:00
Love Hornquist Astrand
960b5d4c5b include jgssapi_server.c 2011-08-10 17:24:20 -07:00
Love Hörnquist Åstrand
7aaba443bc add NTMakefile and windows directories 2011-07-17 12:16:59 -07: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
535b3a9f8f add nt_gss_common.h
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18708 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-20 20:40:20 +00:00
Love Hörnquist Åstrand
42555fd011 build http_client
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12808 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-10 00:21:55 +00:00
Assar Westerlund
baebf953a8 use LIB_des
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9176 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-11-15 22:51:14 +00:00
Assar Westerlund
4efd8514cd add nt_gss_client and nt_gss_server
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7000 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-09-21 05:06:19 +00:00
Assar Westerlund
e53706c80a use LIB_roken
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5897 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-04-09 18:29:48 +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
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
174e8f039a *_a_* -> *_la_*
*.o -> *.lo
*.a -> *.la


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4924 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-05-23 17:12:24 +00:00
Johan Danielsson
192688e7db libtoolize
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4914 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-05-23 14:23:28 +00:00
Johan Danielsson
606ed684d8 Add uu_client, and uu_server.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3929 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-11 04:17:10 +00:00
Johan Danielsson
7cd9fec174 common.c
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3309 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-31 16:56:11 +00:00
Johan Danielsson
08ca8431aa AUTOMAKE_OPTIONS
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2360 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-16 03:16:27 +00:00
Assar Westerlund
f90fd20caa add gss_common.c
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2293 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-14 12:24:32 +00:00
Assar Westerlund
836a1e611c Add gssapi_{server,client}
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2205 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-12 20:48:18 +00:00
Assar Westerlund
8252cb1a4f new files
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2191 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-12 14:40:15 +00:00