8 SRCS= authfd.c authfile.c bufaux.c bufbn.c buffer.c \
9 canohost.c channels.c cipher.c cipher-aes.c \
10 cipher-bf1.c cipher-ctr.c cipher-3des1.c cleanup.c \
11 compat.c compress.c crc32.c deattack.c fatal.c hostfile.c \
12 krl.c log.c match.c md-sha256.c moduli.c nchan.c packet.c \
13 readpass.c rsa.c ttymodes.c xmalloc.c addrmatch.c \
14 atomicio.c key.c dispatch.c kex.c mac.c uidswap.c uuencode.c misc.c \
15 monitor_fdpass.c rijndael.c ssh-dss.c ssh-ecdsa.c ssh-rsa.c dh.c \
16 kexdh.c kexgex.c kexdhc.c kexgexc.c bufec.c kexecdh.c kexecdhc.c \
17 msg.c progressmeter.c dns.c entropy.c umac.c umac128.c jpake.c \
18 schnorr.c ssh-pkcs11.c
20 # gss-genr.c should be in $SRCS but causes linking problems, so it is
21 # compiled directly into sshd instead.
24 SRCS+= bsd-misc.c fmt_scaled.c glob.c \
25 openssl-compat.c port-tun.c strtonum.c timingsafe_bcmp.c \
26 vis.c xcrypt.c xmmap.c
28 .if ${MK_LDNS} == "no"
29 SRCS+= getrrsetbyname.c
31 LDNSDIR= ${.CURDIR}/../../../contrib/ldns
32 CFLAGS+= -DHAVE_LDNS=1 -I${LDNSDIR}
33 SRCS+= getrrsetbyname-ldns.c
39 CFLAGS+= -I${SSHDIR} -include ssh_namespace.h
41 .if ${MK_KERBEROS_SUPPORT} != "no"
42 CFLAGS+= -include krb5_config.h
43 DPADD+= ${LIBGSSAPI} ${LIBKRB5} ${LIBHX509} ${LIBASN1} ${LIBCOM_ERR} ${LIBMD} ${LIBROKEN}
44 LDADD+= -lgssapi -lkrb5 -lhx509 -lasn1 -lcom_err -lmd -lroken
47 .if ${MK_OPENSSH_NONE_CIPHER} != "no"
48 CFLAGS+= -DNONE_CIPHER_ENABLED
53 DPADD+= ${LIBCRYPTO} ${LIBCRYPT} ${LIBZ}
54 LDADD+= -lcrypto -lcrypt -lz
58 .PATH: ${SSHDIR} ${SSHDIR}/openbsd-compat
60 ${OBJS} ${POBJS} ${SOBJS}: ssh_namespace.h
61 .if ${MK_KERBEROS_SUPPORT} != "no"
62 ${OBJS} ${POBJS} ${SOBJS}: krb5_config.h