2000-02-24 12:00:55 -05:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
2014-05-06 00:22:01 -04:00
|
|
|
.include <src.opts.mk>
|
2021-11-02 14:48:33 -04:00
|
|
|
.include "${SRCTOP}/secure/ssh.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
|
2021-10-19 20:09:46 -04:00
|
|
|
SRCS= ssh_api.c ssherr.c \
|
2021-09-09 18:56:24 -04:00
|
|
|
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
|
2018-09-10 12:20:12 -04:00
|
|
|
SRCS+= authfd.c authfile.c \
|
2016-01-19 13:28:23 -05:00
|
|
|
canohost.c channels.c cipher.c cipher-aes.c cipher-aesctr.c \
|
2022-10-19 10:27:11 -04:00
|
|
|
cleanup.c \
|
2021-09-07 21:05:51 -04:00
|
|
|
compat.c fatal.c hostfile.c \
|
|
|
|
|
log.c match.c moduli.c nchan.c packet.c \
|
|
|
|
|
readpass.c ttymodes.c xmalloc.c addr.c addrmatch.c \
|
|
|
|
|
atomicio.c dispatch.c mac.c misc.c utf8.c \
|
2021-10-19 20:09:46 -04:00
|
|
|
monitor_fdpass.c rijndael.c ssh-dss.c ssh-ecdsa.c ssh-ecdsa-sk.c \
|
|
|
|
|
ssh-ed25519-sk.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 \
|
2021-09-07 21:05:51 -04:00
|
|
|
poly1305.c chacha.c cipher-chachapoly.c cipher-chachapoly-libcrypto.c \
|
2021-10-19 20:09:46 -04:00
|
|
|
ssh-ed25519.c digest-openssl.c digest-libc.c \
|
2023-02-06 16:54:56 -05:00
|
|
|
hmac.c ed25519.c hash.c \
|
2016-01-19 13:28:23 -05:00
|
|
|
kex.c kexdh.c kexgex.c kexecdh.c kexc25519.c \
|
2021-09-07 21:05:51 -04:00
|
|
|
kexgexc.c kexgexs.c \
|
|
|
|
|
kexsntrup761x25519.c sntrup761.c kexgen.c \
|
|
|
|
|
sftp-realpath.c platform-pledge.c platform-tracing.c platform-misc.c \
|
|
|
|
|
sshbuf-io.c
|
2021-10-19 20:09:46 -04:00
|
|
|
SRCS+= ssh-sk-client.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
|
2018-05-11 09:22:43 -04:00
|
|
|
SRCS+= bcrypt_pbkdf.c blowfish.c bsd-misc.c bsd-signal.c explicit_bzero.c \
|
2018-10-06 10:38:34 -04:00
|
|
|
fmt_scaled.c freezero.c glob.c \
|
|
|
|
|
libressl-api-compat.c \
|
2023-03-16 10:29:55 -04:00
|
|
|
mktemp.c \
|
2018-10-06 10:38:34 -04:00
|
|
|
openssl-compat.c port-net.c \
|
2021-09-07 21:05:51 -04:00
|
|
|
recallocarray.c strtonum.c 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
|
|
|
|
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
|
|
|
|
|
|
2020-10-27 07:29:11 -04:00
|
|
|
.if defined(LOCALBASE)
|
|
|
|
|
CFLAGS+= -D_PATH_SSH_ASKPASS_DEFAULT='"${LOCALBASE}/bin/ssh-askpass"'
|
|
|
|
|
.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
|