head	1.17;
access;
symbols
	perseant-exfatfs-base-20250801:1.17
	perseant-exfatfs-base-20240630:1.17
	perseant-exfatfs:1.17.0.22
	perseant-exfatfs-base:1.17
	cjep_sun2x:1.17.0.20
	cjep_sun2x-base:1.17
	cjep_staticlib_x-base1:1.17
	cjep_staticlib_x:1.17.0.18
	cjep_staticlib_x-base:1.17
	phil-wifi-20200421:1.17
	phil-wifi-20200411:1.17
	phil-wifi-20200406:1.17
	pgoyette-compat-merge-20190127:1.17
	pgoyette-compat-20190127:1.17
	pgoyette-compat-20190118:1.17
	pgoyette-compat-1226:1.17
	pgoyette-compat-1126:1.17
	pgoyette-compat-1020:1.17
	pgoyette-compat-0930:1.17
	pgoyette-compat-0906:1.17
	pgoyette-compat-0728:1.17
	pgoyette-compat-0625:1.17
	pgoyette-compat-0521:1.17
	pgoyette-compat-0502:1.17
	pgoyette-compat-0422:1.17
	pgoyette-compat-0415:1.17
	pgoyette-compat-0407:1.17
	pgoyette-compat-0330:1.17
	pgoyette-compat-0322:1.17
	pgoyette-compat-0315:1.17
	pgoyette-compat:1.17.0.16
	pgoyette-compat-base:1.17
	prg-localcount2-base3:1.17
	prg-localcount2-base2:1.17
	prg-localcount2-base1:1.17
	prg-localcount2:1.17.0.14
	prg-localcount2-base:1.17
	pgoyette-localcount-20170426:1.17
	bouyer-socketcan-base1:1.17
	pgoyette-localcount-20170320:1.17
	bouyer-socketcan:1.17.0.12
	bouyer-socketcan-base:1.17
	pgoyette-localcount-20170107:1.17
	pgoyette-localcount-20161104:1.17
	localcount-20160914:1.17
	pgoyette-localcount-20160806:1.17
	pgoyette-localcount-20160726:1.17
	pgoyette-localcount:1.17.0.10
	pgoyette-localcount-base:1.17
	netbsd-5-2-3-RELEASE:1.16
	netbsd-5-1-5-RELEASE:1.16
	yamt-pagecache-base9:1.17
	yamt-pagecache-tag8:1.17
	tls-earlyentropy:1.17.0.6
	tls-earlyentropy-base:1.17
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.17
	riastradh-drm2-base3:1.17
	netbsd-5-2-2-RELEASE:1.16
	netbsd-5-1-4-RELEASE:1.16
	netbsd-5-2-1-RELEASE:1.16
	netbsd-5-1-3-RELEASE:1.16
	agc-symver:1.17.0.8
	agc-symver-base:1.17
	tls-maxphys-base:1.17
	yamt-pagecache-base8:1.17
	netbsd-5-2:1.16.0.30
	yamt-pagecache-base7:1.17
	netbsd-5-2-RELEASE:1.16
	netbsd-5-2-RC1:1.16
	yamt-pagecache-base6:1.17
	yamt-pagecache-base5:1.17
	yamt-pagecache-base4:1.17
	netbsd-5-1-2-RELEASE:1.16
	netbsd-5-1-1-RELEASE:1.16
	yamt-pagecache-base3:1.17
	yamt-pagecache-base2:1.17
	yamt-pagecache:1.17.0.4
	yamt-pagecache-base:1.17
	bouyer-quota2-nbase:1.17
	bouyer-quota2:1.17.0.2
	bouyer-quota2-base:1.17
	matt-nb5-mips64-premerge-20101231:1.16
	matt-nb5-pq3:1.16.0.28
	matt-nb5-pq3-base:1.16
	netbsd-5-1:1.16.0.26
	netbsd-5-1-RELEASE:1.16
	netbsd-5-1-RC4:1.16
	matt-nb5-mips64-k15:1.16
	netbsd-5-1-RC3:1.16
	netbsd-5-1-RC2:1.16
	netbsd-5-1-RC1:1.16
	netbsd-5-0-2-RELEASE:1.16
	matt-nb5-mips64-premerge-20091211:1.16
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.16
	matt-nb4-mips64-k7-u2a-k9b:1.16
	matt-nb5-mips64-u1-k1-k5:1.16
	matt-nb5-mips64:1.16.0.24
	netbsd-5-0-1-RELEASE:1.16
	jym-xensuspend-nbase:1.16
	netbsd-5-0:1.16.0.22
	netbsd-5-0-RELEASE:1.16
	netbsd-5-0-RC4:1.16
	netbsd-5-0-RC3:1.16
	netbsd-5-0-RC2:1.16
	jym-xensuspend:1.16.0.20
	jym-xensuspend-base:1.16
	netbsd-5-0-RC1:1.16
	netbsd-5:1.16.0.18
	netbsd-5-base:1.16
	matt-mips64-base2:1.16
	matt-mips64:1.16.0.16
	mjf-devfs2:1.16.0.14
	mjf-devfs2-base:1.16
	netbsd-4-0-1-RELEASE:1.15
	wrstuden-revivesa-base-3:1.16
	wrstuden-revivesa-base-2:1.16
	wrstuden-fixsa-newbase:1.15
	wrstuden-revivesa-base-1:1.16
	yamt-pf42-base4:1.16
	yamt-pf42-base3:1.16
	hpcarm-cleanup-nbase:1.16
	yamt-pf42-baseX:1.16
	yamt-pf42-base2:1.16
	wrstuden-revivesa:1.16.0.12
	wrstuden-revivesa-base:1.16
	yamt-pf42:1.16.0.10
	yamt-pf42-base:1.16
	keiichi-mipv6:1.16.0.8
	keiichi-mipv6-base:1.16
	matt-armv6-nbase:1.16
	matt-armv6-prevmlocking:1.16
	wrstuden-fixsa-base-1:1.15
	netbsd-4-0:1.15.0.8
	netbsd-4-0-RELEASE:1.15
	cube-autoconf:1.16.0.6
	cube-autoconf-base:1.16
	netbsd-4-0-RC5:1.15
	netbsd-4-0-RC4:1.15
	netbsd-4-0-RC3:1.15
	netbsd-4-0-RC2:1.15
	netbsd-4-0-RC1:1.15
	matt-armv6:1.16.0.4
	matt-armv6-base:1.16
	matt-mips64-base:1.16
	hpcarm-cleanup:1.16.0.2
	hpcarm-cleanup-base:1.16
	netbsd-3-1-1-RELEASE:1.14
	netbsd-3-0-3-RELEASE:1.14
	wrstuden-fixsa:1.15.0.6
	wrstuden-fixsa-base:1.15
	abandoned-netbsd-4-base:1.15
	abandoned-netbsd-4:1.15.0.2
	netbsd-3-1:1.14.0.12
	netbsd-3-1-RELEASE:1.14
	netbsd-3-0-2-RELEASE:1.14
	netbsd-3-1-RC4:1.14
	netbsd-3-1-RC3:1.14
	netbsd-3-1-RC2:1.14
	netbsd-3-1-RC1:1.14
	netbsd-4:1.15.0.4
	netbsd-4-base:1.15
	netbsd-3-0-1-RELEASE:1.14
	netbsd-3-0:1.14.0.10
	netbsd-3-0-RELEASE:1.14
	netbsd-3-0-RC6:1.14
	netbsd-3-0-RC5:1.14
	netbsd-3-0-RC4:1.14
	netbsd-3-0-RC3:1.14
	netbsd-3-0-RC2:1.14
	netbsd-3-0-RC1:1.14
	netbsd-2-0-3-RELEASE:1.14
	netbsd-2-1:1.14.0.8
	netbsd-2-1-RELEASE:1.14
	netbsd-2-1-RC6:1.14
	netbsd-2-1-RC5:1.14
	netbsd-2-1-RC4:1.14
	netbsd-2-1-RC3:1.14
	netbsd-2-1-RC2:1.14
	netbsd-2-1-RC1:1.14
	netbsd-2-0-2-RELEASE:1.14
	netbsd-3:1.14.0.6
	netbsd-3-base:1.14
	netbsd-2-0-1-RELEASE:1.14
	netbsd-2:1.14.0.4
	netbsd-2-base:1.14
	netbsd-2-0-RELEASE:1.14
	netbsd-2-0-RC5:1.14
	netbsd-2-0-RC4:1.14
	netbsd-2-0-RC3:1.14
	netbsd-2-0-RC2:1.14
	netbsd-2-0-RC1:1.14
	netbsd-2-0:1.14.0.2
	netbsd-2-0-base:1.14
	netbsd-1-6-PATCH002-RELEASE:1.4
	netbsd-1-6-PATCH002:1.4
	netbsd-1-6-PATCH002-RC4:1.4
	netbsd-1-6-PATCH002-RC3:1.4
	netbsd-1-6-PATCH002-RC2:1.4
	netbsd-1-6-PATCH002-RC1:1.4
	netbsd-1-6-PATCH001:1.4
	netbsd-1-6-PATCH001-RELEASE:1.4
	netbsd-1-6-PATCH001-RC3:1.4
	netbsd-1-6-PATCH001-RC2:1.4
	netbsd-1-6-PATCH001-RC1:1.4
	fvdl_fs64_base:1.4
	netbsd-1-6-RELEASE:1.4
	netbsd-1-6-RC3:1.4
	netbsd-1-6-RC2:1.4
	netbsd-1-6-RC1:1.4
	netbsd-1-6:1.4.0.6
	netbsd-1-6-base:1.4
	netbsd-1-5-PATCH003:1.4
	netbsd-1-5-PATCH002:1.4
	netbsd-1-5-PATCH001:1.4
	netbsd-1-5-RELEASE:1.4
	netbsd-1-5-BETA2:1.4
	netbsd-1-5-BETA:1.4
	netbsd-1-5-ALPHA2:1.4
	minoura-xpg4dl:1.4.0.4
	netbsd-1-5:1.4.0.2
	netbsd-1-5-base:1.4
	cryptosrc-intl-20000616:1.1.1.1
	netbsd-cryptosrc-intl:1.1.1;
locks; strict;
comment	@# @;


1.17
date	2009.07.19.23.35.18;	author christos;	state dead;
branches;
next	1.16;

1.16
date	2007.05.28.12.06.18;	author tls;	state Exp;
branches;
next	1.15;

1.15
date	2006.03.20.04.03.22;	author christos;	state Exp;
branches;
next	1.14;

1.14
date	2003.08.03.09.23.14;	author lukem;	state Exp;
branches;
next	1.13;

1.13
date	2003.08.02.18.49.13;	author lukem;	state Exp;
branches;
next	1.12;

1.12
date	2003.07.24.15.14.11;	author itojun;	state Exp;
branches;
next	1.11;

1.11
date	2003.07.24.14.16.30;	author itojun;	state Exp;
branches;
next	1.10;

1.10
date	2003.07.24.02.23.51;	author itojun;	state Exp;
branches;
next	1.9;

1.9
date	2003.07.23.05.46.00;	author itojun;	state Exp;
branches;
next	1.8;

1.8
date	2003.07.23.05.43.44;	author itojun;	state Exp;
branches;
next	1.7;

1.7
date	2003.07.23.05.20.17;	author itojun;	state Exp;
branches;
next	1.6;

1.6
date	2003.04.22.13.17.54;	author tron;	state Exp;
branches;
next	1.5;

1.5
date	2003.04.22.12.07.02;	author tron;	state Exp;
branches;
next	1.4;

1.4
date	2000.06.19.23.36.22;	author thorpej;	state Exp;
branches
	1.4.4.1;
next	1.3;

1.3
date	2000.06.19.19.39.09;	author thorpej;	state Exp;
branches;
next	1.2;

1.2
date	2000.06.17.01.20.50;	author thorpej;	state Exp;
branches;
next	1.1;

1.1
date	2000.06.17.01.08.24;	author thorpej;	state Exp;
branches
	1.1.1.1;
next	;

1.4.4.1
date	2000.06.19.23.36.22;	author minoura;	state dead;
branches;
next	1.4.4.2;

1.4.4.2
date	2000.06.23.16.16.30;	author minoura;	state Exp;
branches;
next	;

1.1.1.1
date	2000.06.17.01.08.24;	author thorpej;	state Exp;
branches;
next	;


desc
@@


1.17
log
@OpenSSL moved to crypto/external
@
text
@#	$NetBSD: Makefile,v 1.16 2007/05/28 12:06:18 tls Exp $

.include <bsd.own.mk>

USE_FORT?= yes	# cryptographic software

LIB=	des
SRCS=	ocbc_cksm.c ocbc_enc.c ocfb64ede.c ocfb64enc.c ocfb_enc.c \
	odes_enc.c oecb3_enc.c oecb_enc.c oede_cbcm_enc.c oenc_read.c \
	oenc_writ.c ofcrypt.c ofcrypt_b.c oofb64ede.c oofb64enc.c \
	oofb_enc.c opcbc_enc.c oqud_cksm.c orand_key.c oread2pwd.c \
	oread_pwd.c orpc_enc.c oset_key.c ostr2key.c oxcbc_enc.c

# NetBSD addition
SRCS+=	ornd_keys.c

CPPFLAGS+=-DOPENSSL_VERSION_PTEXT="\" based on OpenSSL 0.9.6j 10 Apr 2003\""
CPPFLAGS+=-DOPENSSL_cleanse=bzero -DOPENSSL_malloc=malloc

INCS=	des.h
INCSDIR=/usr/include

# pod2man --section=3 --center=libdes --release=0.9.6j des.pod > des.3
# pod2man --section=7 --center=libdes --release=0.9.6j des_modes.pod > des_modes.7
MAN=	des.3 des_modes.7

MLINKS+=des.3 des_cbc_cksum.3 \
	des.3 des_cfb64_encrypt.3 \
	des.3 des_cfb_encrypt.3 \
	des.3 des_crypt.3 \
	des.3 des_ecb2_encrypt.3 \
	des.3 des_ecb3_encrypt.3 \
	des.3 des_ecb_encrypt.3 \
	des.3 des_ede2_cbc_encrypt.3 \
	des.3 des_ede2_cfb64_encrypt.3 \
	des.3 des_ede2_ofb64_encrypt.3 \
	des.3 des_ede3_cbc_encrypt.3 \
	des.3 des_ede3_cbcm_encrypt.3 \
	des.3 des_ede3_cfb64_encrypt.3 \
	des.3 des_ede3_ofb64_encrypt.3 \
	des.3 des_enc_read.3 \
	des.3 des_enc_write.3 \
	des.3 des_fcrypt.3 \
	des.3 des_is_weak_key.3 \
	des.3 des_key_sched.3 \
	des.3 des_ncbc_encrypt.3 \
	des.3 des_ofb64_encrypt.3 \
	des.3 des_ofb_encrypt.3 \
	des.3 des_pcbc_encrypt.3 \
	des.3 des_quad_cksum.3 \
	des.3 des_random_key.3 \
	des.3 des_read_2passwords.3 \
	des.3 des_read_password.3 \
	des.3 des_read_pw_string.3 \
	des.3 des_set_key.3 \
	des.3 des_set_key_checked.3 \
	des.3 des_set_key_unchecked.3 \
	des.3 des_set_odd_parity.3 \
	des.3 des_string_to_2keys.3 \
	des.3 des_string_to_key.3 \
	des.3 des_xcbc_encrypt.3

.include <bsd.lib.mk>
@


1.16
log
@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.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 2006/03/20 04:03:22 christos Exp $
@


1.15
log
@Goodbye KerberosIV
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14 2003/08/03 09:23:14 lukem Exp $
d5 2
@


1.14
log
@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.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.13 2003/08/02 18:49:13 lukem Exp $
a20 2
INCSYMLINKS=../des.h ${INCSDIR}/kerberosIV/des.h

@


1.13
log
@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>.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 2003/07/24 15:14:11 itojun Exp $
d21 1
a21 2
SYMLINKS=../des.h ${INCSDIR}/kerberosIV/des.h
incinstall:: linksinstall
@


1.12
log
@arename *.c so that it won't collide w/ libcrypto DES_xx files.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 2003/07/24 14:16:30 itojun Exp $
d20 3
@


1.11
log
@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.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 2003/07/24 02:23:51 itojun Exp $
d6 5
a10 5
SRCS=	cbc_cksm.c cbc_enc.c cfb64ede.c cfb64enc.c cfb_enc.c \
	des_enc.c ecb3_enc.c ecb_enc.c ede_cbcm_enc.c enc_read.c \
	enc_writ.c fcrypt.c fcrypt_b.c ofb64ede.c ofb64enc.c \
	ofb_enc.c pcbc_enc.c qud_cksm.c rand_key.c read2pwd.c \
	read_pwd.c rpc_enc.c set_key.c str2key.c xcbc_enc.c
d13 1
a13 1
SRCS+=	rnd_keys.c
@


1.10
log
@don't provide crypt() here.  use libcrypt.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 2003/07/23 05:46:00 itojun Exp $
d24 36
@


1.9
log
@install des_modes(7) from libdes, not from libcrypto
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 2003/07/23 05:43:44 itojun Exp $
d11 2
@


1.8
log
@install des.3 from libdes, not from libcrypto.
(eventually libcrypto will switch to DES_xx)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2003/07/23 05:20:17 itojun Exp $
d20 2
a21 1
MAN=	des.3
@


1.7
log
@split libdes from libcrypto.  libdes bumps shlib major.
(no dependency in libraries)

libdes provides des_xx functions based on openssl 0.9.6j.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2003/04/22 13:17:54 tron Exp $
d18 3
@


1.6
log
@Revert last commit now that "bsd.lib.mk" is fixed.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2003/04/22 12:07:02 tron Exp $
d3 15
a17 5
.BEGIN:
.ifmake !print-shlib-major && !print-shlib-minor
	@@echo "This is a dummy directory; don't build in here."
	@@false
.endif
@


1.5
log
@Define "LIB" to get "bsd.lib.mk" working again.
@
text
@d1 1
a1 3
#	$NetBSD: Makefile,v 1.4 2000/06/19 23:36:22 thorpej Exp $

LIB=	libdes
@


1.4
log
@Use the .ifmake syntax that's described in make(1).
@
text
@d1 3
a3 1
#	$NetBSD: Makefile,v 1.3 2000/06/19 19:39:09 thorpej Exp $
@


1.4.4.1
log
@file Makefile was added on branch minoura-xpg4dl on 2000-06-23 16:16:30 +0000
@
text
@d1 9
@


1.4.4.2
log
@Sync w/ netbsd-1-5-base.
@
text
@a0 9
#	$NetBSD: Makefile,v 1.4.4.1 2000/06/23 16:16:30 minoura Exp $

.BEGIN:
.ifmake !print-shlib-major && !print-shlib-minor
	@@echo "This is a dummy directory; don't build in here."
	@@false
.endif

.include <bsd.lib.mk>
@


1.3
log
@Gut this out; libcrypto's Makefile will set up appropriate links
to supply a libdes with the appropriate major/minor number.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2000/06/17 01:20:50 thorpej Exp $
d4 1
a4 1
.if !make(print-shlib-major) && !make(print-shlib-minor)
@


1.2
log
@Fixup libdes build.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1.1.1 2000/06/17 01:08:24 thorpej Exp $
d3 5
a7 24
LIB=	des

#.if (${MACHINE_ARCH} == "i386")
#DES_ENC= asm/dx86-elf.cpp asm/yx86-elf.cpp
#.else
DES_ENC= des_enc.c fcrypt_b.c
#.endif

SRCS=	cbc_cksm.c cbc_enc.c  cfb64enc.c cfb_enc.c  \
	ecb3_enc.c ecb_enc.c  enc_read.c enc_writ.c \
	fcrypt.c ofb64enc.c ofb_enc.c  pcbc_enc.c \
	qud_cksm.c rand_key.c read_pwd.c rpc_enc.c  set_key.c  \
	$(DES_ENC) read2pwd.c \
	fcrypt.c xcbc_enc.c \
	str2key.c  cfb64ede.c ofb64ede.c supp.c ede_cbcm_enc.c

CPPFLAGS+=	-D_POSIX_SOURCE -I. -I${.CURDIR}
CPPFLAGS+=      -I${DIST}/openssl/crypto/des -I${DIST}/openssl/crypto

DIST=		${.CURDIR}/../../crypto/dist
.PATH: ${DIST}/openssl/crypto/des ${DIST}/openssl/crypto ${DIST}/openssl

INCS=	des.h 
INCSDIR=/usr/include
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 1999/06/30 03:10:06 mcr Exp $
d22 1
a22 1
DIST=		${.CURDIR}/../../dist
d26 1
a26 1
INCSDIR=/usr/include/openssl
@


1.1.1.1
log
@libdes build bits, from cryptosrc-intl.
@
text
@@
