freebsd-src/usr.bin/telnet/Makefile
Cy Schubert 78d4557a9b telnet: Add Support for MIT KRB5 build
MIT KRB5 does not support telnet. This is because telnet uses 3DES
encryption, which requires 3DES encrypted keys in the KDC database.
As MIT had deprecated and removed 3DES support about a decade ago,
telnet is not supported.

Sponsored by:		The FreeBSD Foundation
Reviewed by:		markj
Differential revision:	https://reviews.freebsd.org/D50785
2025-06-15 19:49:36 -07:00

39 lines
803 B
Makefile

.include <src.opts.mk>
PACKAGE= telnet
TELNETDIR= ${SRCTOP}/contrib/telnet
.PATH: ${TELNETDIR}/telnet
PROG= telnet
SRCS= commands.c main.c network.c ring.c sys_bsd.c \
telnet.c terminal.c utilities.c
CFLAGS+= -DKLUDGELINEMODE -DUSE_TERMIO -DENV_HACK -DOPIE \
-I${TELNETDIR} -I${TELNETDIR}/libtelnet/
.if ${MK_INET6_SUPPORT} != "no"
CFLAGS+= -DINET6
.endif
WARNS?= 2
LIBADD= telnet tinfow
CFLAGS+= -DIPSEC
LIBADD+= ipsec
.if ${MK_OPENSSL} != "no"
SRCS+= authenc.c
CFLAGS+= -DENCRYPTION -DAUTHENTICATION -DIPSEC
LIBADD+= mp crypto ipsec pam
.endif
.if ${MK_KERBEROS_SUPPORT} != "no" && ${MK_MITKRB5} != "yes"
# MIT KRB5 deprecated and removed 3DES. Therefore no telnet support.
CFLAGS+= -DKRB5 -DFORWARD -Dnet_write=telnet_net_write
LIBADD+= krb5 roken
.endif
.include <bsd.prog.mk>