1c23e256eSMark Murray# $FreeBSD$ 2c23e256eSMark Murray 3c6063d0dSWarner Losh.include <src.opts.mk> 49d63429fSEd Maste.include "${SRCTOP}/secure/ssh.mk" 5e1fe3dbaSRuslan Ermilov 6c23e256eSMark MurrayLIB= ssh 70b2766bdSDag-Erling SmørgravPRIVATELIB= true 83ca3047aSKen SmithSHLIB_MAJOR= 5 91c99af1eSEd MasteSRCS= ssh_api.c ssherr.c \ 10f448c3edSGuido Falsi sshbuf.c sshkey.c sshbuf-getput-basic.c \ 11ba681bc9SJohn Baldwin sshbuf-misc.c sshbuf-getput-crypto.c krl.c bitmap.c 12190cef3dSDag-Erling SmørgravSRCS+= authfd.c authfile.c \ 13bc5531deSDag-Erling Smørgrav canohost.c channels.c cipher.c cipher-aes.c cipher-aesctr.c \ 1438a52bd3SEd Maste cleanup.c \ 1519261079SEd Maste compat.c fatal.c hostfile.c \ 1619261079SEd Maste log.c match.c moduli.c nchan.c packet.c \ 1719261079SEd Maste readpass.c ttymodes.c xmalloc.c addr.c addrmatch.c \ 1819261079SEd Maste atomicio.c dispatch.c mac.c misc.c utf8.c \ 191c99af1eSEd Maste monitor_fdpass.c rijndael.c ssh-dss.c ssh-ecdsa.c ssh-ecdsa-sk.c \ 201c99af1eSEd Maste ssh-ed25519-sk.c ssh-rsa.c dh.c \ 21f7167e0eSDag-Erling Smørgrav msg.c progressmeter.c dns.c entropy.c umac.c umac128.c \ 22bc5531deSDag-Erling Smørgrav ssh-pkcs11.c smult_curve25519_ref.c \ 2319261079SEd Maste poly1305.c chacha.c cipher-chachapoly.c cipher-chachapoly-libcrypto.c \ 241c99af1eSEd Maste ssh-ed25519.c digest-openssl.c digest-libc.c \ 25f374ba41SEd Maste hmac.c ed25519.c hash.c \ 26bc5531deSDag-Erling Smørgrav kex.c kexdh.c kexgex.c kexecdh.c kexc25519.c \ 2719261079SEd Maste kexgexc.c kexgexs.c \ 2819261079SEd Maste kexsntrup761x25519.c sntrup761.c kexgen.c \ 2919261079SEd Maste sftp-realpath.c platform-pledge.c platform-tracing.c platform-misc.c \ 3019261079SEd Maste sshbuf-io.c 311c99af1eSEd MasteSRCS+= ssh-sk-client.c 321c99af1eSEd Maste 330bd7d22eSBaptiste DaroussinPACKAGE= ssh 3440e0db94SDag-Erling Smørgrav 3540e0db94SDag-Erling Smørgrav# gss-genr.c should be in $SRCS but causes linking problems, so it is 3640e0db94SDag-Erling Smørgrav# compiled directly into sshd instead. 3740e0db94SDag-Erling Smørgrav 38f0b56c5cSDag-Erling Smørgrav# Portability layer 3947dd1d1bSDag-Erling SmørgravSRCS+= bcrypt_pbkdf.c blowfish.c bsd-misc.c bsd-signal.c explicit_bzero.c \ 402a01feabSEd Maste fmt_scaled.c freezero.c glob.c \ 412a01feabSEd Maste libressl-api-compat.c \ 42*4d3fc8b0SEd Maste mktemp.c \ 432a01feabSEd Maste openssl-compat.c port-net.c \ 4419261079SEd Maste recallocarray.c strtonum.c timingsafe_bcmp.c vis.c xcrypt.c 454d56bc23SDag-Erling Smørgrav 469cfa8b3fSDag-Erling Smørgrav.if ${MK_LDNS} == "no" 479cfa8b3fSDag-Erling SmørgravSRCS+= getrrsetbyname.c 489cfa8b3fSDag-Erling Smørgrav.else 49b71fb1a4SEnji CooperLDNSDIR= ${SRCTOP}/contrib/ldns 509cfa8b3fSDag-Erling SmørgravCFLAGS+= -DHAVE_LDNS=1 -I${LDNSDIR} 519cfa8b3fSDag-Erling SmørgravSRCS+= getrrsetbyname-ldns.c 52ee5a34ecSBaptiste DaroussinLIBADD+= ldns 53c23e256eSMark Murray.endif 54c23e256eSMark Murray 5594ef145eSEnji Cooper.if ${MK_GSSAPI} != "no" && ${MK_KERBEROS_SUPPORT} != "no" 560085282bSDag-Erling SmørgravCFLAGS+= -include krb5_config.h 57e42070a7SBryan DrewerySRCS+= krb5_config.h 58e6a64a84SBjoern A. Zeeb.endif 59e6a64a84SBjoern A. Zeeb 601f474190SStefan Eßer.if defined(LOCALBASE) 611f474190SStefan EßerCFLAGS+= -D_PATH_SSH_ASKPASS_DEFAULT='"${LOCALBASE}/bin/ssh-askpass"' 621f474190SStefan Eßer.endif 631f474190SStefan Eßer 64ab7a2947SRuslan ErmilovNO_LINT= 65dcb22793SDavid E. O'Brien 66ee5a34ecSBaptiste DaroussinLIBADD+= crypto crypt z 67e47a40e7SRuslan Ermilov 68c23e256eSMark Murray.include <bsd.lib.mk> 69b8cba406SRuslan Ermilov 70f0b56c5cSDag-Erling Smørgrav.PATH: ${SSHDIR} ${SSHDIR}/openbsd-compat 71