summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2024-08-08 03:46:50 +0000
committertb <>2024-08-08 03:46:50 +0000
commite4193eff26a04437515cec2e16d32a75238a990e (patch)
treeba0527a9cef72802bfd75ed84ef75b550730544e /src
parent4912e3c2c2e891320302f54b31042bae879333bc (diff)
downloadopenbsd-e4193eff26a04437515cec2e16d32a75238a990e.tar.gz
openbsd-e4193eff26a04437515cec2e16d32a75238a990e.tar.bz2
openbsd-e4193eff26a04437515cec2e16d32a75238a990e.zip
hmac test: fix build with gcc
The bounded attribute leads to failing regress compilation with gcc due to a test passing a negative length to exercise a chck. noticed and fixed suggested by claudio
Diffstat (limited to 'src')
-rw-r--r--src/regress/lib/libcrypto/hmac/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/regress/lib/libcrypto/hmac/Makefile b/src/regress/lib/libcrypto/hmac/Makefile
index 6705336211..19ec43dce0 100644
--- a/src/regress/lib/libcrypto/hmac/Makefile
+++ b/src/regress/lib/libcrypto/hmac/Makefile
@@ -1,9 +1,15 @@
1# $OpenBSD: Makefile,v 1.3 2014/07/08 15:53:52 jsing Exp $ 1# $OpenBSD: Makefile,v 1.4 2024/08/08 03:46:50 tb Exp $
2
3.include <bsd.own.mk>
2 4
3PROG= hmactest 5PROG= hmactest
4LDADD= -lcrypto 6LDADD= -lcrypto
5DPADD= ${LIBCRYPTO} 7DPADD= ${LIBCRYPTO}
6WARNINGS= Yes 8WARNINGS= Yes
7CFLAGS+= -DLIBRESSL_INTERNAL -Werror 9CFLAGS+= -DLIBRESSL_INTERNAL
10# The bounded attribute for HMAC_Init_ex() warns for gcc, breaking compilation
11.if ${COMPILER_VERSION:L} == "clang"
12CFLAGS+= -Werror
13.endif
8 14
9.include <bsd.regress.mk> 15.include <bsd.regress.mk>