upstream commit

another libssh casualty

OpenBSD-Regress-ID: 839b970560246de23e7c50215095fb527a5a83ec
This commit is contained in:
djm@openbsd.org 2017-12-21 05:46:35 +00:00 committed by Damien Miller
parent 5fb4fb5a01
commit f6b50bf84d
1 changed files with 21 additions and 11 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.2 2017/04/17 11:02:31 jsg Exp $ # $OpenBSD: Makefile,v 1.3 2017/12/21 05:46:35 djm Exp $
.include <bsd.own.mk> .include <bsd.own.mk>
.include <bsd.obj.mk> .include <bsd.obj.mk>
@ -9,6 +9,25 @@ OPENSSL?= yes
PROG= kexfuzz PROG= kexfuzz
SRCS= kexfuzz.c SRCS= kexfuzz.c
SSHREL=../../../../../usr.bin/ssh
.PATH: ${.CURDIR}/${SSHREL}
# From usr.bin/ssh
SRCS+=sshbuf-getput-basic.c sshbuf-getput-crypto.c sshbuf-misc.c sshbuf.c
SRCS+=atomicio.c sshkey.c authfile.c cipher.c log.c ssh-rsa.c ssh-dss.c
SRCS+=ssh-ecdsa.c ssh-ed25519.c mac.c umac.c umac128.c hmac.c misc.c
SRCS+=ssherr.c uidswap.c cleanup.c xmalloc.c match.c krl.c fatal.c
SRCS+=addrmatch.c bitmap.c packet.c dispatch.c canohost.c ssh_api.c
SRCS+=kex.c kexc25519.c kexc25519c.c kexc25519s.c kexdh.c kexdhc.c kexdhs.c
SRCS+=kexecdh.c kexecdhc.c kexecdhs.c kexgex.c kexgexc.c kexgexs.c
SRCS+=dh.c compat.c
SRCS+=ed25519.c hash.c ge25519.c fe25519.c sc25519.c verify.c
SRCS+=cipher-chachapoly.c chacha.c poly1305.c
SRCS+=smult_curve25519_ref.c
SRCS+=digest-openssl.c
#SRCS+=digest-libc.c
NOMAN= 1 NOMAN= 1
.if (${OPENSSL:L} == "yes") .if (${OPENSSL:L} == "yes")
@ -49,23 +68,14 @@ CDIAGFLAGS+= -Wswitch
CDIAGFLAGS+= -Wtrigraphs CDIAGFLAGS+= -Wtrigraphs
CDIAGFLAGS+= -Wuninitialized CDIAGFLAGS+= -Wuninitialized
CDIAGFLAGS+= -Wunused CDIAGFLAGS+= -Wunused
CDIAGFLAGS+= -Wno-unused-parameter
.if ${COMPILER_VERSION:L} != "gcc3" .if ${COMPILER_VERSION:L} != "gcc3"
CDIAGFLAGS+= -Wpointer-sign
CDIAGFLAGS+= -Wold-style-definition CDIAGFLAGS+= -Wold-style-definition
.endif .endif
SSHREL=../../../../../usr.bin/ssh
CFLAGS+=-I${.CURDIR}/${SSHREL} CFLAGS+=-I${.CURDIR}/${SSHREL}
.if exists(${.CURDIR}/${SSHREL}/lib/${__objdir})
LDADD+=-L${.CURDIR}/${SSHREL}/lib/${__objdir} -lssh
DPADD+=${.CURDIR}/${SSHREL}/lib/${__objdir}/libssh.a
.else
LDADD+=-L${.CURDIR}/${SSHREL}/lib -lssh
DPADD+=${.CURDIR}/${SSHREL}/lib/libssh.a
.endif
LDADD+= -lutil -lz LDADD+= -lutil -lz
DPADD+= ${LIBUTIL} ${LIBZ} DPADD+= ${LIBUTIL} ${LIBZ}