head	1.37;
access;
symbols
	netbsd-11-0-RC4:1.37
	netbsd-11-0-RC3:1.37
	netbsd-11-0-RC2:1.37
	netbsd-11-0-RC1:1.37
	perseant-exfatfs-base-20250801:1.37
	netbsd-11:1.37.0.24
	netbsd-11-base:1.37
	netbsd-10-1-RELEASE:1.37
	perseant-exfatfs-base-20240630:1.37
	perseant-exfatfs:1.37.0.22
	perseant-exfatfs-base:1.37
	netbsd-8-3-RELEASE:1.37
	netbsd-9-4-RELEASE:1.37
	netbsd-10-0-RELEASE:1.37
	netbsd-10-0-RC6:1.37
	netbsd-10-0-RC5:1.37
	netbsd-10-0-RC4:1.37
	netbsd-10-0-RC3:1.37
	netbsd-10-0-RC2:1.37
	netbsd-10-0-RC1:1.37
	netbsd-10:1.37.0.20
	netbsd-10-base:1.37
	netbsd-9-3-RELEASE:1.37
	cjep_sun2x-base1:1.37
	cjep_sun2x:1.37.0.18
	cjep_sun2x-base:1.37
	cjep_staticlib_x-base1:1.37
	netbsd-9-2-RELEASE:1.37
	cjep_staticlib_x:1.37.0.16
	cjep_staticlib_x-base:1.37
	netbsd-9-1-RELEASE:1.37
	phil-wifi-20200421:1.37
	phil-wifi-20200411:1.37
	is-mlppp:1.37.0.14
	is-mlppp-base:1.37
	phil-wifi-20200406:1.37
	netbsd-8-2-RELEASE:1.37
	netbsd-9-0-RELEASE:1.37
	netbsd-9-0-RC2:1.37
	netbsd-9-0-RC1:1.37
	phil-wifi-20191119:1.37
	netbsd-9:1.37.0.12
	netbsd-9-base:1.37
	phil-wifi-20190609:1.37
	netbsd-8-1-RELEASE:1.37
	netbsd-8-1-RC1:1.37
	pgoyette-compat-merge-20190127:1.37
	pgoyette-compat-20190127:1.37
	pgoyette-compat-20190118:1.37
	pgoyette-compat-1226:1.37
	pgoyette-compat-1126:1.37
	pgoyette-compat-1020:1.37
	pgoyette-compat-0930:1.37
	pgoyette-compat-0906:1.37
	netbsd-7-2-RELEASE:1.36
	pgoyette-compat-0728:1.37
	netbsd-8-0-RELEASE:1.37
	phil-wifi:1.37.0.10
	phil-wifi-base:1.37
	pgoyette-compat-0625:1.37
	netbsd-8-0-RC2:1.37
	pgoyette-compat-0521:1.37
	pgoyette-compat-0502:1.37
	pgoyette-compat-0422:1.37
	netbsd-8-0-RC1:1.37
	pgoyette-compat-0415:1.37
	pgoyette-compat-0407:1.37
	pgoyette-compat-0330:1.37
	pgoyette-compat-0322:1.37
	pgoyette-compat-0315:1.37
	netbsd-7-1-2-RELEASE:1.36
	pgoyette-compat:1.37.0.8
	pgoyette-compat-base:1.37
	netbsd-7-1-1-RELEASE:1.36
	matt-nb8-mediatek:1.37.0.6
	matt-nb8-mediatek-base:1.37
	perseant-stdc-iso10646:1.37.0.4
	perseant-stdc-iso10646-base:1.37
	netbsd-8:1.37.0.2
	netbsd-8-base:1.37
	prg-localcount2-base3:1.36
	prg-localcount2-base2:1.36
	prg-localcount2-base1:1.36
	prg-localcount2:1.36.0.22
	prg-localcount2-base:1.36
	pgoyette-localcount-20170426:1.36
	bouyer-socketcan-base1:1.36
	pgoyette-localcount-20170320:1.36
	netbsd-7-1:1.36.0.20
	netbsd-7-1-RELEASE:1.36
	netbsd-7-1-RC2:1.36
	netbsd-7-nhusb-base-20170116:1.36
	bouyer-socketcan:1.36.0.18
	bouyer-socketcan-base:1.36
	pgoyette-localcount-20170107:1.36
	netbsd-7-1-RC1:1.36
	pgoyette-localcount-20161104:1.36
	netbsd-7-0-2-RELEASE:1.36
	localcount-20160914:1.36
	netbsd-7-nhusb:1.36.0.16
	netbsd-7-nhusb-base:1.36
	pgoyette-localcount-20160806:1.36
	pgoyette-localcount-20160726:1.36
	pgoyette-localcount:1.36.0.14
	pgoyette-localcount-base:1.36
	netbsd-7-0-1-RELEASE:1.36
	netbsd-7-0:1.36.0.12
	netbsd-7-0-RELEASE:1.36
	netbsd-7-0-RC3:1.36
	netbsd-7-0-RC2:1.36
	netbsd-7-0-RC1:1.36
	netbsd-5-2-3-RELEASE:1.31
	netbsd-5-1-5-RELEASE:1.31
	netbsd-6-0-6-RELEASE:1.34
	netbsd-6-1-5-RELEASE:1.34
	netbsd-7:1.36.0.10
	netbsd-7-base:1.36
	yamt-pagecache-base9:1.36
	yamt-pagecache-tag8:1.33.2.2
	netbsd-6-1-4-RELEASE:1.34
	netbsd-6-0-5-RELEASE:1.34
	tls-earlyentropy:1.36.0.8
	tls-earlyentropy-base:1.36
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.36
	riastradh-drm2-base3:1.36
	netbsd-6-1-3-RELEASE:1.34
	netbsd-6-0-4-RELEASE:1.34
	netbsd-5-2-2-RELEASE:1.31
	netbsd-5-1-4-RELEASE:1.31
	netbsd-6-1-2-RELEASE:1.34
	netbsd-6-0-3-RELEASE:1.34
	netbsd-5-2-1-RELEASE:1.31
	netbsd-5-1-3-RELEASE:1.31
	netbsd-6-1-1-RELEASE:1.34
	riastradh-drm2-base2:1.36
	riastradh-drm2-base1:1.36
	riastradh-drm2:1.36.0.4
	riastradh-drm2-base:1.36
	netbsd-6-1:1.34.0.8
	netbsd-6-0-2-RELEASE:1.34
	netbsd-6-1-RELEASE:1.34
	netbsd-6-1-RC4:1.34
	netbsd-6-1-RC3:1.34
	agc-symver:1.36.0.6
	agc-symver-base:1.36
	netbsd-6-1-RC2:1.34
	netbsd-6-1-RC1:1.34
	yamt-pagecache-base8:1.36
	netbsd-5-2:1.31.0.2
	netbsd-6-0-1-RELEASE:1.34
	yamt-pagecache-base7:1.36
	netbsd-5-2-RELEASE:1.31
	netbsd-5-2-RC1:1.31
	matt-nb6-plus-nbase:1.34
	yamt-pagecache-base6:1.36
	netbsd-6-0:1.34.0.6
	netbsd-6-0-RELEASE:1.34
	netbsd-6-0-RC2:1.34
	tls-maxphys:1.36.0.2
	tls-maxphys-base:1.36
	matt-nb6-plus:1.34.0.4
	matt-nb6-plus-base:1.34
	netbsd-6-0-RC1:1.34
	yamt-pagecache-base5:1.35
	yamt-pagecache-base4:1.35
	netbsd-6:1.34.0.2
	netbsd-6-base:1.34
	netbsd-5-1-2-RELEASE:1.31
	netbsd-5-1-1-RELEASE:1.31
	yamt-pagecache-base3:1.33
	yamt-pagecache-base2:1.33
	yamt-pagecache:1.33.0.2
	yamt-pagecache-base:1.33
	cherry-xenmp:1.32.0.2
	cherry-xenmp-base:1.32
	bouyer-quota2-nbase:1.31
	bouyer-quota2:1.31.0.16
	bouyer-quota2-base:1.31
	matt-mips64-premerge-20101231:1.31
	matt-nb5-mips64-premerge-20101231:1.31
	matt-nb5-pq3:1.31.0.14
	matt-nb5-pq3-base:1.31
	netbsd-5-1:1.31.0.12
	netbsd-5-1-RELEASE:1.31
	netbsd-5-1-RC4:1.31
	matt-nb5-mips64-k15:1.31
	netbsd-5-1-RC3:1.31
	netbsd-5-1-RC2:1.31
	netbsd-5-1-RC1:1.31
	netbsd-5-0-2-RELEASE:1.31
	matt-nb5-mips64-premerge-20091211:1.31
	matt-premerge-20091211:1.31
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.31
	matt-nb4-mips64-k7-u2a-k9b:1.31
	matt-nb5-mips64-u1-k1-k5:1.31
	matt-nb5-mips64:1.31.0.10
	netbsd-5-0-1-RELEASE:1.31
	jym-xensuspend-nbase:1.31
	netbsd-5-0:1.31.0.8
	netbsd-5-0-RELEASE:1.31
	netbsd-5-0-RC4:1.31
	netbsd-5-0-RC3:1.31
	netbsd-5-0-RC2:1.31
	jym-xensuspend:1.31.0.6
	jym-xensuspend-base:1.31
	netbsd-5-0-RC1:1.31
	netbsd-5:1.31.0.4
	netbsd-5-base:1.31
	matt-mips64-base2:1.31
	matt-mips64:1.28.0.12
	netbsd-4-0-1-RELEASE:1.27
	wrstuden-revivesa-base-3:1.31
	wrstuden-revivesa-base-2:1.31
	wrstuden-fixsa-newbase:1.27
	wrstuden-revivesa-base-1:1.29
	yamt-pf42-base4:1.29
	yamt-pf42-base3:1.29
	hpcarm-cleanup-nbase:1.29
	yamt-pf42-baseX:1.28
	yamt-pf42-base2:1.29
	wrstuden-revivesa:1.29.0.2
	wrstuden-revivesa-base:1.29
	yamt-pf42:1.28.0.10
	yamt-pf42-base:1.28
	keiichi-mipv6:1.28.0.8
	keiichi-mipv6-base:1.28
	matt-armv6-nbase:1.28
	matt-armv6-prevmlocking:1.28
	wrstuden-fixsa-base-1:1.27
	netbsd-4-0:1.27.0.8
	netbsd-4-0-RELEASE:1.27
	cube-autoconf:1.28.0.6
	cube-autoconf-base:1.28
	netbsd-4-0-RC5:1.27
	netbsd-4-0-RC4:1.27
	netbsd-4-0-RC3:1.27
	netbsd-4-0-RC2:1.27
	netbsd-4-0-RC1:1.27
	matt-armv6:1.28.0.4
	matt-armv6-base:1.28
	matt-mips64-base:1.28
	hpcarm-cleanup:1.28.0.2
	hpcarm-cleanup-base:1.28
	netbsd-3-1-1-RELEASE:1.24
	netbsd-3-0-3-RELEASE:1.24
	wrstuden-fixsa:1.27.0.6
	wrstuden-fixsa-base:1.27
	abandoned-netbsd-4-base:1.27
	abandoned-netbsd-4:1.27.0.2
	netbsd-3-1:1.24.0.6
	netbsd-3-1-RELEASE:1.24
	netbsd-3-0-2-RELEASE:1.24
	netbsd-3-1-RC4:1.24
	netbsd-3-1-RC3:1.24
	netbsd-3-1-RC2:1.24
	netbsd-3-1-RC1:1.24
	netbsd-4:1.27.0.4
	netbsd-4-base:1.27
	netbsd-3-0-1-RELEASE:1.24
	netbsd-3-0:1.24.0.4
	netbsd-3-0-RELEASE:1.24
	netbsd-3-0-RC6:1.24
	netbsd-3-0-RC5:1.24
	netbsd-3-0-RC4:1.24
	netbsd-3-0-RC3:1.24
	netbsd-3-0-RC2:1.24
	netbsd-3-0-RC1:1.24
	netbsd-2-0-3-RELEASE:1.21
	netbsd-2-1:1.21.0.6
	netbsd-2-1-RELEASE:1.21
	netbsd-2-1-RC6:1.21
	netbsd-2-1-RC5:1.21
	netbsd-2-1-RC4:1.21
	netbsd-2-1-RC3:1.21
	netbsd-2-1-RC2:1.21
	netbsd-2-1-RC1:1.21
	netbsd-2-0-2-RELEASE:1.21
	netbsd-3:1.24.0.2
	netbsd-3-base:1.24
	netbsd-2-0-1-RELEASE:1.21
	netbsd-2:1.21.0.4
	netbsd-2-base:1.21
	netbsd-2-0-RELEASE:1.21
	netbsd-2-0-RC5:1.21
	netbsd-2-0-RC4:1.21
	netbsd-2-0-RC3:1.21
	netbsd-2-0-RC2:1.21
	netbsd-2-0-RC1:1.21
	netbsd-2-0:1.21.0.2
	netbsd-2-0-base:1.21
	netbsd-1-6-PATCH002-RELEASE:1.15
	netbsd-1-6-PATCH002:1.15
	netbsd-1-6-PATCH002-RC4:1.15
	netbsd-1-6-PATCH002-RC3:1.15
	netbsd-1-6-PATCH002-RC2:1.15
	netbsd-1-6-PATCH002-RC1:1.15
	netbsd-1-6-PATCH001:1.15
	netbsd-1-6-PATCH001-RELEASE:1.15
	netbsd-1-6-PATCH001-RC3:1.15
	netbsd-1-6-PATCH001-RC2:1.15
	netbsd-1-6-PATCH001-RC1:1.15
	fvdl_fs64_base:1.15
	netbsd-1-6-RELEASE:1.15
	netbsd-1-6-RC3:1.15
	netbsd-1-6-RC2:1.15
	netbsd-1-6-RC1:1.15
	netbsd-1-6:1.15.0.2
	netbsd-1-6-base:1.15
	netbsd-1-5-PATCH003:1.10.2.3
	netbsd-1-5-PATCH002:1.10.2.3
	netbsd-1-5-PATCH001:1.10.2.3
	netbsd-1-5-RELEASE:1.10.2.3
	netbsd-1-5-BETA2:1.10.2.3
	netbsd-1-5-BETA:1.10.2.3
	netbsd-1-4-PATCH003:1.7
	netbsd-1-5-ALPHA2:1.10.2.3
	netbsd-1-5:1.10.0.2
	netbsd-1-5-base:1.10
	minoura-xpg4dl:1.9.0.6
	minoura-xpg4dl-base:1.9
	netbsd-1-4-PATCH002:1.7
	wrstuden-devbsize-19991221:1.9
	wrstuden-devbsize:1.9.0.4
	wrstuden-devbsize-base:1.9
	comdex-fall-1999:1.9.0.2
	comdex-fall-1999-base:1.9
	netbsd-1-4-PATCH001:1.7
	netbsd-1-4-RELEASE:1.7
	netbsd-1-4:1.7.0.2
	netbsd-1-4-base:1.7
	netbsd-1-3-PATCH003:1.6.2.1
	netbsd-1-3-PATCH003-CANDIDATE2:1.6.2.1
	netbsd-1-3-PATCH003-CANDIDATE1:1.6.2.1
	netbsd-1-3-PATCH003-CANDIDATE0:1.6.2.1
	netbsd-1-3-PATCH002:1.6.2.1
	netbsd-1-3-PATCH001:1.6.2.1
	netbsd-1-3-RELEASE:1.6.2.1
	netbsd-1-3-BETA:1.6.2.1
	netbsd-1-3:1.6.0.2
	netbsd-1-3-base:1.6
	netbsd-1-2-PATCH001:1.6
	netbsd-1-2-RELEASE:1.6
	netbsd-1-2-BETA:1.6
	netbsd-1-2:1.6.0.4
	netbsd-1-2-base:1.6
	netbsd-1-1-PATCH001:1.5
	netbsd-1-1-RELEASE:1.5
	netbsd-1-1:1.5.0.4
	netbsd-1-1-base:1.5
	netbsd-1-0-PATCH06:1.5
	netbsd-1-0-PATCH05:1.5
	netbsd-1-0-PATCH04:1.5
	netbsd-1-0-PATCH03:1.5
	netbsd-1-0-PATCH02:1.5
	netbsd-1-0-PATCH1:1.5
	netbsd-1-0-PATCH0:1.5
	netbsd-1-0-RELEASE:1.5
	netbsd-1-0:1.5.0.2
	netbsd-1-0-base:1.5
	netbsd-0-9-RELEASE:1.2
	netbsd-0-9-BETA:1.2
	netbsd-0-9-ALPHA2:1.2
	netbsd-0-9-ALPHA:1.2
	netbsd-0-9:1.2.0.2
	netbsd-0-9-base:1.2
	netbsd-0-8:1.1.1.1
	netbsd-alpha-1:1.1.1.1
	patchkit-0-2-2:1.1.1.1
	WFJ-386bsd-01:1.1.1.1
	WFJ-920714:1.1.1;
locks; strict;
comment	@# @;


1.37
date	2017.05.21.15.28.41;	author riastradh;	state Exp;
branches;
next	1.36;
commitid	qFvwLLy2KgFGNgSz;

1.36
date	2012.08.10.12.20.10;	author joerg;	state Exp;
branches;
next	1.35;

1.35
date	2012.03.21.05.37.44;	author matt;	state Exp;
branches;
next	1.34;

1.34
date	2012.01.09.15.25.33;	author christos;	state Exp;
branches;
next	1.33;

1.33
date	2011.06.20.07.43.58;	author mrg;	state Exp;
branches
	1.33.2.1;
next	1.32;

1.32
date	2011.04.24.19.00.56;	author elric;	state Exp;
branches
	1.32.2.1;
next	1.31;

1.31
date	2008.08.29.00.02.22;	author gmcgarry;	state Exp;
branches;
next	1.30;

1.30
date	2008.07.12.12.29.42;	author gmcgarry;	state Exp;
branches;
next	1.29;

1.29
date	2008.05.03.14.48.31;	author lukem;	state Exp;
branches
	1.29.2.1;
next	1.28;

1.28
date	2007.05.28.12.06.22;	author tls;	state Exp;
branches
	1.28.10.1;
next	1.27;

1.27
date	2006.06.25.03.02.19;	author mrg;	state Exp;
branches;
next	1.26;

1.26
date	2006.05.11.23.16.29;	author mrg;	state Exp;
branches;
next	1.25;

1.25
date	2006.03.20.04.03.22;	author christos;	state Exp;
branches;
next	1.24;

1.24
date	2005.02.19.22.47.10;	author christos;	state Exp;
branches;
next	1.23;

1.23
date	2005.02.19.21.55.52;	author christos;	state Exp;
branches;
next	1.22;

1.22
date	2004.05.23.02.24.51;	author lukem;	state Exp;
branches;
next	1.21;

1.21
date	2003.12.11.09.46.27;	author dyoung;	state Exp;
branches;
next	1.20;

1.20
date	2003.07.23.13.35.14;	author itojun;	state Exp;
branches;
next	1.19;

1.19
date	2003.07.23.13.19.43;	author tron;	state Exp;
branches;
next	1.18;

1.18
date	2003.07.23.08.01.54;	author itojun;	state Exp;
branches;
next	1.17;

1.17
date	2003.07.16.19.35.34;	author itojun;	state Exp;
branches;
next	1.16;

1.16
date	2003.03.28.21.03.48;	author thorpej;	state Exp;
branches;
next	1.15;

1.15
date	2002.03.22.18.10.21;	author thorpej;	state Exp;
branches;
next	1.14;

1.14
date	2002.01.29.17.58.36;	author thorpej;	state Exp;
branches;
next	1.13;

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

1.12
date	2000.06.23.06.01.13;	author thorpej;	state Exp;
branches;
next	1.11;

1.11
date	2000.06.22.06.47.42;	author thorpej;	state Exp;
branches;
next	1.10;

1.10
date	2000.06.20.06.00.34;	author thorpej;	state Exp;
branches
	1.10.2.1;
next	1.9;

1.9
date	99.07.20.09.35.19;	author mrg;	state Exp;
branches
	1.9.6.1;
next	1.8;

1.8
date	99.07.12.22.05.42;	author thorpej;	state Exp;
branches;
next	1.7;

1.7
date	97.10.23.03.24.56;	author lukem;	state Exp;
branches;
next	1.6;

1.6
date	96.02.24.01.15.15;	author jtk;	state Exp;
branches
	1.6.2.1;
next	1.5;

1.5
date	94.02.25.03.13.45;	author cgd;	state Exp;
branches;
next	1.4;

1.4
date	94.02.25.02.52.45;	author cgd;	state Exp;
branches;
next	1.3;

1.3
date	93.08.01.05.39.57;	author mycroft;	state Exp;
branches;
next	1.2;

1.2
date	93.07.16.14.37.04;	author brezak;	state Exp;
branches;
next	1.1;

1.1
date	93.03.21.09.45.37;	author cgd;	state Exp;
branches
	1.1.1.1;
next	;

1.33.2.1
date	2012.04.17.00.05.33;	author yamt;	state Exp;
branches;
next	1.33.2.2;

1.33.2.2
date	2012.10.30.18.59.18;	author yamt;	state Exp;
branches;
next	;

1.32.2.1
date	2011.06.23.14.18.40;	author cherry;	state Exp;
branches;
next	;

1.29.2.1
date	2008.09.18.04.39.25;	author wrstuden;	state Exp;
branches;
next	;

1.28.10.1
date	2008.05.18.12.30.43;	author yamt;	state Exp;
branches;
next	;

1.10.2.1
date	2000.06.20.06.00.34;	author thorpej;	state dead;
branches;
next	1.10.2.2;

1.10.2.2
date	2000.06.22.07.09.02;	author thorpej;	state Exp;
branches;
next	1.10.2.3;

1.10.2.3
date	2000.06.24.06.59.34;	author thorpej;	state Exp;
branches;
next	;

1.9.6.1
date	2000.06.23.16.16.54;	author minoura;	state Exp;
branches;
next	;

1.6.2.1
date	97.11.09.01.00.57;	author lukem;	state Exp;
branches;
next	;

1.1.1.1
date	93.03.21.09.45.37;	author cgd;	state Exp;
branches;
next	;


desc
@@


1.37
log
@Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export.  The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated.  I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S.  Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet...  That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.
@
text
@#	from: @@(#)Makefile	8.2 (Berkeley) 12/15/93
#	$NetBSD: Makefile,v 1.36 2012/08/10 12:20:10 joerg Exp $

USE_FORT?= yes	# network protocol library

LIBISPRIVATE=	yes

.include <bsd.own.mk>

WARNS?=	5

LIB=	telnet
SRCS=	auth.c encrypt.c genget.c getent.c misc.c

CPPFLAGS+= -DHAS_CGETENT
CPPFLAGS+= -I${.CURDIR}

SRCS+=	enc_des.c
CPPFLAGS+= -DENCRYPTION -DAUTHENTICATION
CPPFLAGS+= -DDES_ENCRYPTION

.if ${USE_KERBEROS} != "no"
SRCS+=	kerberos5.c
CPPFLAGS+= -DKRB5
.endif

.if ${USE_PAM} != "no"
SRCS+=	sra.c pk.c
CPPFLAGS+= -DSRA
.endif

.for f in auth enc_des kerberos5 pk
COPTS.${f}.c+=  -Wno-pointer-sign
.endfor

.include <bsd.lib.mk>
@


1.36
log
@Don't depend on HAVE_GCC being always defined.
@
text
@d2 1
a2 1
#	$NetBSD: Makefile,v 1.35 2012/03/21 05:37:44 matt Exp $
a17 1
.if ${MKCRYPTO} != "no"
a20 1
.endif
d27 1
a27 1
.if ${USE_PAM} != "no" && ${MKCRYPTO} != "no"
@


1.35
log
@These directories default to WARNS?=5
@
text
@d2 1
a2 1
#	$NetBSD: Makefile,v 1.34 2012/01/09 15:25:33 christos Exp $
a33 1
.if defined(HAVE_GCC) || defined(HAVE_PCC)
a36 1
.endif
@


1.34
log
@PR/45805: Borodin Oleg: telnet/telnetd with -DAUTHENTICATION -DENCRYPTION
(rfc2941)
- minimal fixes to compile with WARNS=4
- separate kerberos (USE_KERBEROS) from encryption (MKCRYPTO)
@
text
@d2 1
a2 1
#	$NetBSD: Makefile,v 1.33 2011/06/20 07:43:58 mrg Exp $
d10 1
a10 1
WARNS?=	4
@


1.33
log
@remove most of the remaining HAVE_GCC tests that are always true in
the modern world.
@
text
@d2 1
a2 1
#	$NetBSD: Makefile,v 1.32 2011/04/24 19:00:56 elric Exp $
d10 1
a10 1
WARNS?=	1
d18 1
a18 1
.if (${USE_KERBEROS} != "no")
d22 1
d24 1
@


1.33.2.1
log
@sync with head
@
text
@d2 1
a2 1
#	$NetBSD: Makefile,v 1.33 2011/06/20 07:43:58 mrg Exp $
d10 1
a10 1
WARNS?=	5
d18 1
a18 1
.if ${MKCRYPTO} != "no"
a21 1
.endif
a22 1
.if ${USE_KERBEROS} != "no"
@


1.33.2.2
log
@sync with head
@
text
@d2 1
a2 1
#	$NetBSD: Makefile,v 1.33.2.1 2012/04/17 00:05:33 yamt Exp $
d34 1
d38 1
@


1.32
log
@We no longer need to -I/usr/include/krb5.
@
text
@d2 1
a2 1
#	$NetBSD: Makefile,v 1.31 2008/08/29 00:02:22 gmcgarry Exp $
d32 1
a32 1
.if (defined(HAVE_GCC) && ${HAVE_GCC} == 4) || defined(HAVE_PCC)
@


1.32.2.1
log
@Catchup with rmind-uvmplock merge.
@
text
@d2 1
a2 1
#	$NetBSD: Makefile,v 1.33 2011/06/20 07:43:58 mrg Exp $
d32 1
a32 1
.if defined(HAVE_GCC) || defined(HAVE_PCC)
@


1.31
log
@Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC.
@
text
@d2 1
a2 1
#	$NetBSD: Makefile,v 1.30 2008/07/12 12:29:42 gmcgarry Exp $
a24 1
CPPFLAGS+= -I${DESTDIR}/usr/include/krb5
@


1.30
log
@Add test for HAVE_PCC with HAVE_GCC which turn off compiler warning flags.
@
text
@d2 1
a2 1
#	$NetBSD: Makefile,v 1.29 2008/05/03 14:48:31 lukem Exp $
d33 1
a33 1
.if ${HAVE_GCC} == 4 || defined(HAVE_PCC)
@


1.29
log
@Rename MKPRIVATELIB to LIBISPRIVATE, to make it clearer that this is
a variable that is used by in-tree Makefiles to control behaviour.
(MKsomevar variables are generally intended to be controlled by the end-user)
@
text
@d2 1
a2 1
#	$NetBSD: Makefile,v 1.28 2007/05/28 12:06:22 tls Exp $
d33 1
a33 1
.if ${HAVE_GCC} == 4
@


1.29.2.1
log
@Sync with wrstuden-revivesa-base-2.
@
text
@d2 1
a2 1
#	$NetBSD: Makefile,v 1.29 2008/05/03 14:48:31 lukem Exp $
d33 1
a33 1
.if (defined(HAVE_GCC) && ${HAVE_GCC} == 4) || defined(HAVE_PCC)
@


1.28
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
@d2 1
a2 1
#	$NetBSD: Makefile,v 1.27 2006/06/25 03:02:19 mrg Exp $
d6 1
a6 1
MKPRIVATELIB=	yes
@


1.28.10.1
log
@sync with head.
@
text
@d2 1
a2 1
#	$NetBSD: Makefile,v 1.28 2007/05/28 12:06:22 tls Exp $
d6 1
a6 1
LIBISPRIVATE=	yes
@


1.27
log
@make MKCRYPTO=no work again.
@
text
@d2 3
a4 1
#	$NetBSD: Makefile,v 1.26 2006/05/11 23:16:29 mrg Exp $
@


1.26
log
@sprinkle some -fno-strict-aliasing and -Wno-pointer-sign with GCC4.
@
text
@d2 1
a2 1
#	$NetBSD: Makefile,v 1.25 2006/03/20 04:03:22 christos Exp $
d26 1
a26 1
.if (${USE_PAM} != "no")
@


1.25
log
@Goodbye KerberosIV
@
text
@d2 1
a2 1
#	$NetBSD: Makefile,v 1.24 2005/02/19 22:47:10 christos Exp $
d31 6
@


1.24
log
@Fix pk to use BN_ instead of libmp.
@
text
@d2 1
a2 1
#	$NetBSD: Makefile,v 1.23 2005/02/19 21:55:52 christos Exp $
a20 6
.if (${USE_KERBEROS4} != "no")
SRCS+=	kerberos.c
CPPFLAGS+= -DKRB4
CPPFLAGS+= -I${DESTDIR}/usr/include/kerberosIV
.endif

@


1.23
log
@PAM support from FreeBSD.
@
text
@d2 1
a2 1
#	$NetBSD: Makefile,v 1.22 2004/05/23 02:24:51 lukem Exp $
d33 1
a33 1
SRCS+=	sra.c
@


1.22
log
@Use MKPRIVATELIB=yes instead of providing an empty libinstall:: target and
setting NOLINT, NOPIC, NOPROFILE (etc)
@
text
@d2 1
a2 1
#	$NetBSD: Makefile,v 1.21 2003/12/11 09:46:27 dyoung Exp $
d32 5
@


1.21
log
@Fix the checkflist for builds without Kerberos 4 (MKKERBEROS4=no)
and without Kerberos 4 & 5 (MKKERBEROS=no). Previously checkflist
complained of missing files.

* move kerberos- and kerberos 4-only files into new flists,
  distrib/sets/lists/*/krb.*

* make the flist generators grok MKKERBEROS{,4} variables

* fix Makefiles which treat MKKERBEROS=no as MKKERBEROS5=no.
  9 out of 10 experts agree that it is ludicrous to build w/
  KERBEROS4 and w/o KERBEROS5.

* fix header files, also, which treat MKKERBEROS=no as MKKERBEROS5=no.

* omit some Kerberos-only subdirectories from the build as
  MKKERBEROS{,4} indicate

(I acknowledge the sentiment that flists are the wrong way to go,
and that the makefiles should produce the metalog directly.  That
sounds to me like the right way to go, but I am not prepared to do
revamp all the makefiles.  While my approach is expedient, it fits
painlessly within the current build architecture until we are
delivered from flist purgatory, and it does not postpone our
delivery. Fair enough?)
@
text
@d2 1
a2 1
#	$NetBSD: Makefile,v 1.20 2003/07/23 13:35:14 itojun Exp $
d4 1
a4 3
NOPIC=		# defined
NOPROFILE=	# defined
NOLINT=		# defined
a31 2
libinstall::

@


1.20
log
@no longer need to -I/usr/include first (yes, it's still confusing, i admit)
@
text
@d2 1
a2 1
#	$NetBSD: Makefile,v 1.19 2003/07/23 13:19:43 tron Exp $
d18 1
a18 1
.if (${USE_KERBEROS4} != "no") || (${USE_KERBEROS} != "no")
a28 1
.if (${USE_KERBEROS} != "no")
a31 1
.endif
@


1.19
log
@Fix build problem caused by recent "Makefile" changes.
@
text
@d2 1
a2 1
#	$NetBSD: Makefile,v 1.18 2003/07/23 08:01:54 itojun Exp $
d26 1
a26 1
CPPFLAGS+= -I${DESTDIR}/usr/include -I${DESTDIR}/usr/include/kerberosIV
@


1.18
log
@split MKKERBEROS4 from MKKERBEROS.  based on work by lha at stacken.kth.se
(build confirmed with both MKKERBEROS4=yes and MKKERBEROS4=no)
@
text
@d2 1
a2 1
#	$NetBSD: Makefile,v 1.17 2003/07/16 19:35:34 itojun Exp $
d26 1
a26 1
CPPFLAGS+= -I${DESTDIR}/usr/include/kerberosIV
@


1.17
log
@do not build/install shlib
@
text
@d2 1
a2 1
#	$NetBSD: Makefile,v 1.16 2003/03/28 21:03:48 thorpej Exp $
d18 11
a29 1
SRCS+=	enc_des.c kerberos.c
a30 3

CPPFLAGS+= -DENCRYPTION -DAUTHENTICATION
CPPFLAGS+= -DKRB4 -DDES_ENCRYPTION
d33 1
a33 1
CPPFLAGS+= -I${DESTDIR}/usr/include/kerberosIV
@


1.16
log
@Remove GCC 3.3 hack; the libtelnet code has been changed to avoid the
warning.
@
text
@d2 5
a6 1
#	$NetBSD: Makefile,v 1.15 2002/03/22 18:10:21 thorpej Exp $
d28 2
@


1.15
log
@Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

	* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
	  of the infratsructure (libraries, support programs, etc.)

	* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
	  building of support for using the corresponding API
	  in various libraries/programs that can use it.

As discussed on tech-toolchain.
@
text
@d2 1
a2 1
#	$NetBSD: Makefile,v 1.14 2002/01/29 17:58:36 thorpej Exp $
a12 5

# XXX See doc/HACKS gcc-3-libtelnet
.if defined(HAVE_GCC3)
COPTS+=	-O0
.endif
@


1.14
log
@Hack around GCC PR optmization/5230 if HAVE_GCC3 is set.  (GCC 3.x
issues spurious warning when compiling a Duff's device with optimization.)
@
text
@d2 1
a2 1
#	$NetBSD: Makefile,v 1.13 2001/11/05 15:23:31 lukem Exp $
d19 1
a19 1
.if (${MKKERBEROS} != "no")
@


1.13
log
@explicitly set to WARNS?=1
@
text
@d2 1
a2 1
#	$NetBSD: Makefile,v 1.12 2000/06/23 06:01:13 thorpej Exp $
d13 5
@


1.12
log
@Add MK... variables to enable/disable various aspects of building
crypto support into the system.  See share/mk/bsd.README for more
a full description.
@
text
@d2 1
a2 1
#	$NetBSD: Makefile,v 1.11 2000/06/22 06:47:42 thorpej Exp $
d5 2
@


1.11
log
@Bring the telnet situation back into better shape.  Specifically,
pull in just about all of the differences from the crypto-us telnet
suite (which includes Kerberos 4 and connection encryption support).
Also bring in the Kerberos 5 support from the Heimdal telnet, and
frob a little so that it can work with the non-Heimdal telnet suite.

There is still some work left to do, specifically:
- Add Heimdal's ticket forwarding support to the Berkeley Kerberos 4
  module.
- Add connection encryption support to the Heimdal Kerberos 5
  module.  Hints on this can be taken from the MIT Kerberos 5
  module which still exists in crypto-us.

However, even with the shortcomings listed above, this is a
better situation than using the stock Heimdal telnet suite,
which does not understand the IPSec policy stuff, and is also
based on much older code which contains bugs that we have already
fixed in the NetBSD sources.
@
text
@d2 3
a4 1
#	$NetBSD: Makefile,v 1.10 2000/06/20 06:00:34 thorpej Exp $
d9 4
a15 1
CPPFLAGS+= -DHAS_CGETENT
d21 1
a21 1
CPPFLAGS+= -I${.CURDIR}
@


1.10
log
@Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so.  Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.
@
text
@d2 1
a2 1
#	$NetBSD: Makefile,v 1.9 1999/07/20 09:35:19 mrg Exp $
d4 2
a5 5
# XXX XXX XXX
WARNS=0

DIST=	${.CURDIR}/../../crypto/dist
.PATH:	${DIST}/heimdal/appl/telnet/libtelnet .DOTLAST
d7 2
a8 3
LIB=	telnet
SRCS=	auth.c enc_des.c encrypt.c genget.c getent.c misc.c \
	kerberos.c kerberos5.c
d11 4
a14 2
CPPFLAGS+= -I${DIST}/heimdal/appl/telnet/libtelnet
CPPFLAGS+= -I${.CURDIR}/../../include/heimdal
d16 1
a16 4
CPPFLAGS+= -I${DESTDIR}/usr/include/krb5
CPPFLAGS+= -I${DESTDIR}/usr/include/krb
CPPFLAGS+= -I${DESTDIR}/usr/include/openssl
CPPFLAGS+= -DHAVE_CONFIG_H
@


1.10.2.1
log
@file Makefile was added on branch netbsd-1-5 on 2000-06-22 07:09:02 +0000
@
text
@d1 23
@


1.10.2.2
log
@Update from trunk:
Bring the telnet situation back into better shape.  Specifically,
pull in just about all of the differences from the crypto-us telnet
suite (which includes Kerberos 4 and connection encryption support).
Also bring in the Kerberos 5 support from the Heimdal telnet, and
frob a little so that it can work with the non-Heimdal telnet suite.

There is still some work left to do, specifically:
- Add Heimdal's ticket forwarding support to the Berkeley Kerberos 4
  module.
- Add connection encryption support to the Heimdal Kerberos 5
  module.  Hints on this can be taken from the MIT Kerberos 5
  module which still exists in crypto-us.

However, even with the shortcomings listed above, this is a
better situation than using the stock Heimdal telnet suite,
which does not understand the IPSec policy stuff, and is also
based on much older code which contains bugs that we have already
fixed in the NetBSD sources.
@
text
@a0 18
#	from: @@(#)Makefile	8.2 (Berkeley) 12/15/93
#	$NetBSD: Makefile,v 1.10.2.1 2000/06/22 07:09:02 thorpej Exp $

LIB=	telnet
SRCS=	auth.c encrypt.c genget.c getent.c misc.c

SRCS+=	enc_des.c kerberos.c
SRCS+=	kerberos5.c

CPPFLAGS+= -DHAS_CGETENT
CPPFLAGS+= -DENCRYPTION -DAUTHENTICATION
CPPFLAGS+= -DKRB4 -DDES_ENCRYPTION
CPPFLAGS+= -DKRB5
CPPFLAGS+= -I${DESTDIR}/usr/include/krb5
CPPFLAGS+= -I${DESTDIR}/usr/include/kerberosIV
CPPFLAGS+= -I${.CURDIR}

.include <bsd.lib.mk>
@


1.10.2.3
log
@Update from trunk:
Add MK... variables to enable/disable various aspects of building
crypto support into the system.  See share/mk/bsd.README for more
a full description.
@
text
@d2 1
a2 3
#	$NetBSD: Makefile,v 1.10.2.2 2000/06/24 06:59:34 thorpej Exp $

.include <bsd.own.mk>
a6 4
CPPFLAGS+= -DHAS_CGETENT
CPPFLAGS+= -I${.CURDIR}

.if (${MKKERBEROS} != "no")
d10 1
d16 1
a16 1
.endif
@


1.9
log
@optionally include CRYPTOPATH Makefile.frag files.
@
text
@d2 1
a2 1
#	$NetBSD: Makefile,v 1.8 1999/07/12 22:05:42 thorpej Exp $
d4 5
a8 2
SRCTOP=	../..
.include <bsd.crypto.mk>
d11 3
a13 1
SRCS=	auth.c encrypt.c genget.c getent.c misc.c
d15 7
a21 4

.if defined(CRYPTOPATH)
.sinclude "${CRYPTOPATH}/lib/libtelnet/Makefile.frag"
.endif
@


1.9.6.1
log
@Sync w/ netbsd-1-5-base.
@
text
@d2 1
a2 1
#	$NetBSD: Makefile,v 1.10 2000/06/20 06:00:34 thorpej Exp $
d4 2
a5 5
# XXX XXX XXX
WARNS=0

DIST=	${.CURDIR}/../../crypto/dist
.PATH:	${DIST}/heimdal/appl/telnet/libtelnet .DOTLAST
d8 2
a9 2
SRCS=	auth.c enc_des.c encrypt.c genget.c getent.c misc.c \
	kerberos.c kerberos5.c
d11 3
a13 8
CPPFLAGS+= -DHAS_CGETENT
CPPFLAGS+= -I${DIST}/heimdal/appl/telnet/libtelnet
CPPFLAGS+= -I${.CURDIR}/../../include/heimdal
CPPFLAGS+= -I${DESTDIR}/usr/include/kerberosIV
CPPFLAGS+= -I${DESTDIR}/usr/include/krb5
CPPFLAGS+= -I${DESTDIR}/usr/include/krb
CPPFLAGS+= -I${DESTDIR}/usr/include/openssl
CPPFLAGS+= -DHAVE_CONFIG_H
@


1.8
log
@Use bsd.crypto.mk.
@
text
@d2 1
a2 1
#	$NetBSD: Makefile,v 1.7 1997/10/23 03:24:56 lukem Exp $
d12 1
a12 1
.include "${CRYPTOPATH}/lib/libtelnet/Makefile.frag"
@


1.7
log
@use CPPFLAGS instead of CFLAGS
@
text
@d2 4
a5 1
#	$NetBSD: Makefile,v 1.6 1996/02/24 01:15:15 jtk Exp $
d11 3
a13 5
# These are the sources that have encryption stuff in them.
CRYPT_SRC= auth.c enc-proto.h enc_des.c encrypt.c
CRYPT_SRC+= encrypt.h kerberos.c kerberos5.c krb4encpwd.c
CRYPT_SRC+= misc.c spx.c Makefile
NOCRYPT_DIR=${.CURDIR}/Nocrypt
a15 3

nocrypt:
	@@echo "Encryption code already removed."
@


1.6
log
@update libtelnet with changes through 95.10.23 version
@
text
@d2 1
a2 1
#	$NetBSD$
d6 1
a6 1
CFLAGS+= -DHAS_CGETENT
@


1.6.2.1
log
@sync with trunk (approved by thorpej)
@
text
@d2 1
a2 1
#	$NetBSD: Makefile,v 1.7 1997/10/23 03:24:56 lukem Exp $
d6 1
a6 1
CPPFLAGS+= -DHAS_CGETENT
@


1.5
log
@we have cgetent()
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.4 1994/02/25 02:52:45 cgd Exp $
@


1.4
log
@new libtelnet from ftp.cray.com.  Encryption support ripped out, pending
figuring out what to do about it...
@
text
@d2 1
a2 1
#	$Id$
d6 1
a6 4
#SRCS+=	kerberos.c enc_des.c
#SRCS+=	kerberos5.c
#CFLAGS+= -DENCRYPTION -DAUTHENTICATION -DHAS_CGETENT
#CFLAGS+= -DKRB4 -DDES_ENCRYPTION -I/usr/include/kerberosIV
@


1.3
log
@Add RCS identifiers.
@
text
@d1 2
a2 2
#	from: @@(#)Makefile	5.4 (Berkeley) 5/7/91
#	$Id: $
d5 11
a15 8
SRCS=	genget.c getent.c gettytab.c misc.c
.if exists(enc_des.c)
SRCS+=	enc_des.c encrypt.c
.endif
.if exists(kerberos.c)
SRCS+=	kerberos.c auth.c kerberos5.c
CFLAGS+= -I/usr/include/kerberosIV
.endif
a16 1
.PATH:  ${.CURDIR}/../../libexec/getty
d19 2
@


1.2
log
@Be able to build telnet without enc_des.c
@
text
@d1 2
a2 1
#	@@(#)Makefile	5.4 (Berkeley) 5/7/91
@


1.1
log
@Initial revision
@
text
@d4 6
a9 2
SRCS=	auth.c encrypt.c genget.c getent.c gettytab.c misc.c
SRCS+=	kerberos.c enc_des.c
d11 1
@


1.1.1.1
log
@initial import of 386bsd-0.1 sources
@
text
@@
