diff options
author | tb <> | 2024-08-08 03:46:50 +0000 |
---|---|---|
committer | tb <> | 2024-08-08 03:46:50 +0000 |
commit | e4193eff26a04437515cec2e16d32a75238a990e (patch) | |
tree | ba0527a9cef72802bfd75ed84ef75b550730544e /src | |
parent | 4912e3c2c2e891320302f54b31042bae879333bc (diff) | |
download | openbsd-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/Makefile | 10 |
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 | ||
3 | PROG= hmactest | 5 | PROG= hmactest |
4 | LDADD= -lcrypto | 6 | LDADD= -lcrypto |
5 | DPADD= ${LIBCRYPTO} | 7 | DPADD= ${LIBCRYPTO} |
6 | WARNINGS= Yes | 8 | WARNINGS= Yes |
7 | CFLAGS+= -DLIBRESSL_INTERNAL -Werror | 9 | CFLAGS+= -DLIBRESSL_INTERNAL |
10 | # The bounded attribute for HMAC_Init_ex() warns for gcc, breaking compilation | ||
11 | .if ${COMPILER_VERSION:L} == "clang" | ||
12 | CFLAGS+= -Werror | ||
13 | .endif | ||
8 | 14 | ||
9 | .include <bsd.regress.mk> | 15 | .include <bsd.regress.mk> |