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
|
2016-01-19 18:28:23 +00:00
|
|
|
SRCS+= authfd.c authfile.c bufaux.c bufbn.c bufec.c buffer.c \
|
|
|
|
canohost.c channels.c cipher.c cipher-aes.c cipher-aesctr.c \
|
2004-02-26 11:26:46 +00:00
|
|
|
cipher-bf1.c cipher-ctr.c cipher-3des1.c cleanup.c \
|
2016-01-19 18:28:23 +00:00
|
|
|
compat.c crc32.c deattack.c fatal.c hostfile.c \
|
|
|
|
log.c match.c md-sha256.c moduli.c nchan.c packet.c opacket.c \
|
2008-08-01 02:48:36 +00:00
|
|
|
readpass.c rsa.c ttymodes.c xmalloc.c addrmatch.c \
|
2016-01-19 18:28:23 +00:00
|
|
|
atomicio.c key.c dispatch.c mac.c uidswap.c uuencode.c misc.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 \
|
|
|
|
sc25519.c ge25519.c fe25519.c ed25519.c verify.c hash.c blocks.c \
|
|
|
|
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 \
|
|
|
|
platform-pledge.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
|
2014-03-25 11:05:34 +00:00
|
|
|
SRCS+= bcrypt_pbkdf.c blowfish.c bsd-misc.c explicit_bzero.c fmt_scaled.c \
|
2016-01-20 22:57:10 +00:00
|
|
|
glob.c openssl-compat.c port-tun.c realpath.c strtonum.c \
|
|
|
|
timingsafe_bcmp.c vis.c xcrypt.c xmmap.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
|
|
|
|
LDNSDIR= ${.CURDIR}/../../../contrib/ldns
|
|
|
|
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
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${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
|
|
|
|
|
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
|