Commit Graph

31 Commits

Author SHA1 Message Date
christos 46edb91e9f bump shared libraries. 2009-01-11 03:07:47 +00:00
christos ab903bdde4 support 64 bit time_t 2008-12-28 23:20:03 +00:00
tls 4147a3c54a Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry.  RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros.  Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default.  Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.
2007-05-28 12:06:17 +00:00
christos 7656da5443 fix the man page. 2006-03-20 21:33:26 +00:00
christos 5ba05ac599 Nobody should be using des_ks_struct (Jukka Salmi) 2006-03-20 21:31:08 +00:00
christos 85e611dd01 Goodbye KerberosIV 2006-03-20 04:03:10 +00:00
christos 14339635d2 restore struct des_ks_struct used by krb4. Nothing uses it here, so GC it
when KRB4 is ejected.
2006-03-19 19:39:26 +00:00
christos e1b2ea7ce9 Change des_key_schedule to be an array of DES_LONG instead of abusing
struct and union semantics.
2006-03-19 19:35:00 +00:00
martin e35adea403 Fix wrong buffer size calculation. From Henning Petersen in PR lib/32291. 2005-12-13 12:59:48 +00:00
wiz 4bbfee09ca Various typo fixes from Jonathon Gray via jmc@openbsd. 2003-11-17 11:16:10 +00:00
lukem 64b5a0fe7b Add INCSYMLINKS to <bsd.inc.mk> and <bsd.kinc.mk>, and use that instead of
SYMLINKS to install symlinked header files.  INCSYMLINKS are installed with
'make includes'.  This avoids using SYMLINKS and hacks with the 'linkinstall'
target in <bsd.links.mk>, as linksinstall occurs in 'make install' and hacks
to get it to occur in 'make includes' weren't robust, as seen in lib/libdes.

Yet more improvements to bsd.README.
2003-08-03 09:23:14 +00:00
lukem 61be5790f1 Un-obsolete kerberosIV/des.h, and make it a symlink to ../des.h.
It can't be obsoleted because that causes builds with an old
${DESTDIR}/usr/include/kerberosIV/des.h to fail in directories which
have CPPFLAGS+=-I${DESTDIR}/usr/include/kerberosIV so that their #include
of <krb.h> works (and any subsequent #include <foo.h> by <krb.h>).
(Note: gcc3 won't work with a hack such as prepending -I${DESTDIR}/usr/include
before -I${DESTDIR}/usr/include/kerberosIV.)

Affected directories include lib/libkafs, and any thirdparty source
which used a similar -I/usr/include/kerberosIV hack to use <krb.h>.
2003-08-02 18:49:10 +00:00
itojun bf6a317418 arename *.c so that it won't collide w/ libcrypto DES_xx files. 2003-07-24 15:14:11 +00:00
itojun f4401cd869 upgrade openssl to 0.9.7b. (AES is now supported)
alter des.h to be friendly with openssl/des.h (you can include both in the
same file)
make libkrb to depend on libdes.  bump major.
massage various portioin of heimdal to be friendly with openssl 0.9.7b.
2003-07-24 14:16:30 +00:00
itojun 5d70d89eb1 don't provide crypt() here. use libcrypt. 2003-07-24 02:23:51 +00:00
itojun e9ce38e623 des_random_key() returns 1 on success 2003-07-23 05:57:01 +00:00
itojun df738798b1 install des_modes(7) from libdes, not from libcrypto 2003-07-23 05:46:00 +00:00
itojun 80af8890f3 install des.3 from libdes, not from libcrypto.
(eventually libcrypto will switch to DES_xx)
2003-07-23 05:43:44 +00:00
itojun b372c5a1f3 avoid arg name in prototype 2003-07-23 05:43:43 +00:00
itojun 98cf94c860 install des.3 from libdes, not from libcrypto.
(eventually libcrypto will switch to DES_xx)
2003-07-23 05:43:43 +00:00
itojun 9f89c3577c split libdes from libcrypto. libdes bumps shlib major.
(no dependency in libraries)

libdes provides des_xx functions based on openssl 0.9.6j.
2003-07-23 05:20:17 +00:00
itojun 8cf58d7c5b DES code from openssl 0.9.6j 2003-07-23 04:57:33 +00:00
tron 82451d010e Revert last commit now that "bsd.lib.mk" is fixed. 2003-04-22 13:17:54 +00:00
tron 37ae1ea947 Define "LIB" to get "bsd.lib.mk" working again. 2003-04-22 12:07:02 +00:00
jdarrow 48ee0561fe Belatedly bump libdes shared library major number, due to bump of
libcrypto shared major when we moved from OpenSSL 0.9.5 to 0.9.6.

Add note to libcrypto shlib_version file to remind people to also
update libdes shlib_version.
2002-08-20 13:49:55 +00:00
thorpej 9afca06751 Add cleaned up versions of des_set_random_generator_seed(),
des_new_random_key(), and des_init_random_number_generator()
from the crypto-us libdes.
2000-06-21 19:47:37 +00:00
thorpej 0b8498ceb3 Use the .ifmake syntax that's described in make(1). 2000-06-19 23:36:22 +00:00
thorpej 8401bbdeaa Gut this out; libcrypto's Makefile will set up appropriate links
to supply a libdes with the appropriate major/minor number.
2000-06-19 19:39:09 +00:00
thorpej 59511dc318 For Kerberos libraries which existed both in MIT and Heimdal and the
MIT shlib major was larger, bump the Heimdal shlib major to MIT major + 1,
so that exising installed programs using MIT libraries will continue to
function after the transition to Hiemdal.
2000-06-17 06:58:22 +00:00
thorpej 66db4224da Fixup libdes build. 2000-06-17 01:20:50 +00:00
thorpej 6db93367c5 libdes build bits, from cryptosrc-intl. 2000-06-17 01:08:24 +00:00