2000-02-24 12:00:55 -05:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
2014-05-06 00:22:01 -04:00
|
|
|
.include <src.opts.mk>
|
2006-03-17 13:54:44 -05:00
|
|
|
|
2000-02-24 12:00:55 -05:00
|
|
|
LIB= ssh
|
2013-09-08 06:04:26 -04:00
|
|
|
PRIVATELIB= true
|
2009-07-19 13:25:24 -04:00
|
|
|
SHLIB_MAJOR= 5
|
2016-01-19 13:28:23 -05:00
|
|
|
SRCS= ssh_api.c ssherr.c sshbuf.c sshkey.c sshbuf-getput-basic.c \
|
2016-01-19 19:03:28 -05:00
|
|
|
sshbuf-misc.c sshbuf-getput-crypto.c krl.c bitmap.c
|
2016-01-19 13:28:23 -05: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 06:26:46 -05:00
|
|
|
cipher-bf1.c cipher-ctr.c cipher-3des1.c cleanup.c \
|
2016-01-19 13:28:23 -05: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-07-31 22:48:36 -04:00
|
|
|
readpass.c rsa.c ttymodes.c xmalloc.c addrmatch.c \
|
2017-05-08 21:48:02 -04:00
|
|
|
atomicio.c key.c dispatch.c mac.c uidswap.c uuencode.c misc.c utf8.c \
|
2011-05-04 03:34:44 -04:00
|
|
|
monitor_fdpass.c rijndael.c ssh-dss.c ssh-ecdsa.c ssh-rsa.c dh.c \
|
2014-01-31 08:12:02 -05:00
|
|
|
msg.c progressmeter.c dns.c entropy.c umac.c umac128.c \
|
2016-01-19 13:28:23 -05: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-10 19:15:29 -05:00
|
|
|
kexdhs.c kexgexs.c kexecdhs.c kexc25519s.c \
|
2017-05-08 21:48:02 -04:00
|
|
|
platform-pledge.c platform-tracing.c
|
2015-03-05 15:25:09 -05:00
|
|
|
PACKAGE= ssh
|
2005-06-07 05:31:28 -04:00
|
|
|
|
|
|
|
|
# gss-genr.c should be in $SRCS but causes linking problems, so it is
|
|
|
|
|
# compiled directly into sshd instead.
|
|
|
|
|
|
2002-06-25 15:10:09 -04:00
|
|
|
# Portability layer
|
2014-03-25 07:05:34 -04:00
|
|
|
SRCS+= bcrypt_pbkdf.c blowfish.c bsd-misc.c explicit_bzero.c fmt_scaled.c \
|
2016-01-20 17:57:10 -05:00
|
|
|
glob.c openssl-compat.c port-tun.c realpath.c strtonum.c \
|
2017-03-05 20:37:05 -05:00
|
|
|
timingsafe_bcmp.c vis.c xcrypt.c
|
2001-05-04 00:21:25 -04:00
|
|
|
|
2013-09-10 18:26:11 -04:00
|
|
|
.if ${MK_LDNS} == "no"
|
|
|
|
|
SRCS+= getrrsetbyname.c
|
|
|
|
|
.else
|
2017-03-04 06:35:30 -05:00
|
|
|
LDNSDIR= ${SRCTOP}/contrib/ldns
|
2013-09-10 18:26:11 -04:00
|
|
|
CFLAGS+= -DHAVE_LDNS=1 -I${LDNSDIR}
|
|
|
|
|
SRCS+= getrrsetbyname-ldns.c
|
2014-11-25 16:18:18 -05:00
|
|
|
LIBADD+= ldns
|
2002-11-06 17:54:58 -05:00
|
|
|
.endif
|
2002-09-25 05:58:00 -04:00
|
|
|
|
2006-05-13 09:47:45 -04:00
|
|
|
CFLAGS+= -I${SSHDIR} -include ssh_namespace.h
|
2015-12-07 11:08:09 -05:00
|
|
|
SRCS+= ssh_namespace.h
|
2004-01-08 06:41:02 -05:00
|
|
|
|
2017-01-02 15:29:50 -05:00
|
|
|
.if ${MK_GSSAPI} != "no" && ${MK_KERBEROS_SUPPORT} != "no"
|
2013-09-23 16:35:54 -04:00
|
|
|
CFLAGS+= -include krb5_config.h
|
2015-12-07 11:08:09 -05:00
|
|
|
SRCS+= krb5_config.h
|
2013-01-16 20:51:04 -05:00
|
|
|
.endif
|
|
|
|
|
|
2004-12-21 04:33:47 -05:00
|
|
|
NO_LINT=
|
2000-02-24 12:00:55 -05:00
|
|
|
|
2014-11-25 16:18:18 -05:00
|
|
|
LIBADD+= crypto crypt z
|
2002-02-08 08:42:58 -05:00
|
|
|
|
2000-02-24 12:00:55 -05:00
|
|
|
.include <bsd.lib.mk>
|
2001-03-26 09:53:33 -05:00
|
|
|
|
2002-11-06 17:54:58 -05:00
|
|
|
.PATH: ${SSHDIR} ${SSHDIR}/openbsd-compat
|