2000-02-24 17:00:55 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2014-05-06 04:22:01 +00:00
|
|
|
.include <src.opts.mk>
|
2006-03-17 18:54:44 +00:00
|
|
|
|
2000-02-24 17:00:55 +00:00
|
|
|
LIB= ssh
|
2013-09-08 10:04:26 +00:00
|
|
|
PRIVATELIB= true
|
2009-07-19 17:25:24 +00:00
|
|
|
SHLIB_MAJOR= 5
|
2016-01-19 18:28:23 +00:00
|
|
|
SRCS= ssh_api.c ssherr.c sshbuf.c sshkey.c sshbuf-getput-basic.c \
|
2016-01-20 00:03:28 +00:00
|
|
|
sshbuf-misc.c sshbuf-getput-crypto.c krl.c bitmap.c
|
2018-09-10 16:20:12 +00:00
|
|
|
SRCS+= authfd.c authfile.c \
|
2016-01-19 18:28:23 +00:00
|
|
|
canohost.c channels.c cipher.c cipher-aes.c cipher-aesctr.c \
|
2018-05-08 23:13:11 +00:00
|
|
|
cipher-ctr.c cleanup.c \
|
|
|
|
compat.c crc32.c fatal.c hostfile.c \
|
|
|
|
log.c match.c moduli.c nchan.c packet.c opacket.c \
|
|
|
|
readpass.c ttymodes.c xmalloc.c addrmatch.c \
|
2018-09-10 16:20:12 +00:00
|
|
|
atomicio.c dispatch.c mac.c uuencode.c misc.c utf8.c \
|
2011-05-04 07:34:44 +00:00
|
|
|
monitor_fdpass.c rijndael.c ssh-dss.c ssh-ecdsa.c ssh-rsa.c dh.c \
|
2014-01-31 13:12:02 +00:00
|
|
|
msg.c progressmeter.c dns.c entropy.c umac.c umac128.c \
|
2016-01-19 18:28:23 +00:00
|
|
|
ssh-pkcs11.c smult_curve25519_ref.c \
|
|
|
|
poly1305.c chacha.c cipher-chachapoly.c \
|
|
|
|
ssh-ed25519.c digest-openssl.c digest-libc.c hmac.c \
|
2018-05-11 13:22:43 +00:00
|
|
|
sc25519.c ge25519.c fe25519.c ed25519.c verify.c hash.c \
|
2016-01-19 18:28:23 +00:00
|
|
|
kex.c kexdh.c kexgex.c kexecdh.c kexc25519.c \
|
|
|
|
kexdhc.c kexgexc.c kexecdhc.c kexc25519c.c \
|
2016-03-11 00:15:29 +00:00
|
|
|
kexdhs.c kexgexs.c kexecdhs.c kexc25519s.c \
|
2018-05-08 23:13:11 +00:00
|
|
|
platform-pledge.c platform-tracing.c platform-misc.c
|
2015-03-05 20:25:09 +00:00
|
|
|
PACKAGE= ssh
|
2005-06-07 09:31:28 +00:00
|
|
|
|
|
|
|
# gss-genr.c should be in $SRCS but causes linking problems, so it is
|
|
|
|
# compiled directly into sshd instead.
|
|
|
|
|
2002-06-25 19:10:09 +00:00
|
|
|
# Portability layer
|
2018-05-11 13:22:43 +00:00
|
|
|
SRCS+= bcrypt_pbkdf.c blowfish.c bsd-misc.c bsd-signal.c explicit_bzero.c \
|
2018-10-06 14:38:34 +00:00
|
|
|
fmt_scaled.c freezero.c glob.c \
|
|
|
|
libressl-api-compat.c \
|
|
|
|
openssl-compat.c port-net.c \
|
2018-05-11 13:22:43 +00:00
|
|
|
realpath.c recallocarray.c strtonum.c timingsafe_bcmp.c vis.c xcrypt.c
|
2001-05-04 04:21:25 +00:00
|
|
|
|
2013-09-10 22:26:11 +00:00
|
|
|
.if ${MK_LDNS} == "no"
|
|
|
|
SRCS+= getrrsetbyname.c
|
|
|
|
.else
|
2017-03-04 11:35:30 +00:00
|
|
|
LDNSDIR= ${SRCTOP}/contrib/ldns
|
2013-09-10 22:26:11 +00:00
|
|
|
CFLAGS+= -DHAVE_LDNS=1 -I${LDNSDIR}
|
|
|
|
SRCS+= getrrsetbyname-ldns.c
|
2014-11-25 21:18:18 +00:00
|
|
|
LIBADD+= ldns
|
2002-11-06 22:54:58 +00:00
|
|
|
.endif
|
2002-09-25 09:58:00 +00:00
|
|
|
|
2006-05-13 13:47:45 +00:00
|
|
|
CFLAGS+= -I${SSHDIR} -include ssh_namespace.h
|
2015-12-07 16:08:09 +00:00
|
|
|
SRCS+= ssh_namespace.h
|
2004-01-08 11:41:02 +00:00
|
|
|
|
2017-01-02 20:29:50 +00:00
|
|
|
.if ${MK_GSSAPI} != "no" && ${MK_KERBEROS_SUPPORT} != "no"
|
2013-09-23 20:35:54 +00:00
|
|
|
CFLAGS+= -include krb5_config.h
|
2015-12-07 16:08:09 +00:00
|
|
|
SRCS+= krb5_config.h
|
2013-01-17 01:51:04 +00:00
|
|
|
.endif
|
|
|
|
|
2020-10-27 11:29:11 +00:00
|
|
|
.if defined(LOCALBASE)
|
|
|
|
CFLAGS+= -D_PATH_SSH_ASKPASS_DEFAULT='"${LOCALBASE}/bin/ssh-askpass"'
|
|
|
|
.endif
|
|
|
|
|
2004-12-21 09:33:47 +00:00
|
|
|
NO_LINT=
|
2000-02-24 17:00:55 +00:00
|
|
|
|
2014-11-25 21:18:18 +00:00
|
|
|
LIBADD+= crypto crypt z
|
2002-02-08 13:42:58 +00:00
|
|
|
|
2000-02-24 17:00:55 +00:00
|
|
|
.include <bsd.lib.mk>
|
2001-03-26 14:53:33 +00:00
|
|
|
|
2002-11-06 22:54:58 +00:00
|
|
|
.PATH: ${SSHDIR} ${SSHDIR}/openbsd-compat
|