1c23e256eSMark Murray# $FreeBSD$ 2c23e256eSMark Murray 3c6063d0dSWarner Losh.include <src.opts.mk> 4e1fe3dbaSRuslan Ermilov 5c23e256eSMark MurrayLIB= ssh 60b2766bdSDag-Erling SmørgravPRIVATELIB= true 73ca3047aSKen SmithSHLIB_MAJOR= 5 8*1c99af1eSEd 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 \ 134f52dfbbSDag-Erling Smørgrav cipher-ctr.c 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 \ 18*1c99af1eSEd Maste monitor_fdpass.c rijndael.c ssh-dss.c ssh-ecdsa.c ssh-ecdsa-sk.c \ 19*1c99af1eSEd 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 \ 23*1c99af1eSEd Maste ssh-ed25519.c digest-openssl.c digest-libc.c \ 24*1c99af1eSEd Maste hmac.c sc25519.c ge25519.c fe25519.c ed25519.c verify.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 30*1c99af1eSEd MasteSRCS+= ssh-sk-client.c 31*1c99af1eSEd 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 \ 412a01feabSEd Maste openssl-compat.c port-net.c \ 4219261079SEd Maste recallocarray.c strtonum.c timingsafe_bcmp.c vis.c xcrypt.c 434d56bc23SDag-Erling Smørgrav 449cfa8b3fSDag-Erling Smørgrav.if ${MK_LDNS} == "no" 459cfa8b3fSDag-Erling SmørgravSRCS+= getrrsetbyname.c 469cfa8b3fSDag-Erling Smørgrav.else 47b71fb1a4SEnji CooperLDNSDIR= ${SRCTOP}/contrib/ldns 489cfa8b3fSDag-Erling SmørgravCFLAGS+= -DHAVE_LDNS=1 -I${LDNSDIR} 499cfa8b3fSDag-Erling SmørgravSRCS+= getrrsetbyname-ldns.c 50ee5a34ecSBaptiste DaroussinLIBADD+= ldns 51c23e256eSMark Murray.endif 52c23e256eSMark Murray 53ed22e27dSDag-Erling SmørgravCFLAGS+= -I${SSHDIR} -include ssh_namespace.h 54e42070a7SBryan DrewerySRCS+= ssh_namespace.h 559387ab35SRuslan Ermilov 5694ef145eSEnji Cooper.if ${MK_GSSAPI} != "no" && ${MK_KERBEROS_SUPPORT} != "no" 570085282bSDag-Erling SmørgravCFLAGS+= -include krb5_config.h 58e42070a7SBryan DrewerySRCS+= krb5_config.h 59e6a64a84SBjoern A. Zeeb.endif 60e6a64a84SBjoern A. Zeeb 611f474190SStefan Eßer.if defined(LOCALBASE) 621f474190SStefan EßerCFLAGS+= -D_PATH_SSH_ASKPASS_DEFAULT='"${LOCALBASE}/bin/ssh-askpass"' 631f474190SStefan Eßer.endif 641f474190SStefan Eßer 65ab7a2947SRuslan ErmilovNO_LINT= 66dcb22793SDavid E. O'Brien 67ee5a34ecSBaptiste DaroussinLIBADD+= crypto crypt z 68e47a40e7SRuslan Ermilov 69c23e256eSMark Murray.include <bsd.lib.mk> 70b8cba406SRuslan Ermilov 71f0b56c5cSDag-Erling Smørgrav.PATH: ${SSHDIR} ${SSHDIR}/openbsd-compat 72