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
commit9d335986042400f1b3b1458569ba52106358ab13 (patch)
treeba0527a9cef72802bfd75ed84ef75b550730544e /src
parentb9438afa9855c2b756138bedccbf2aa98590f1d2 (diff)
downloadopenbsd-9d335986042400f1b3b1458569ba52106358ab13.tar.gz
openbsd-9d335986042400f1b3b1458569ba52106358ab13.tar.bz2
openbsd-9d335986042400f1b3b1458569ba52106358ab13.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>