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