diff options
| author | tb <> | 2024-08-08 03:46:50 +0000 |
|---|---|---|
| committer | tb <> | 2024-08-08 03:46:50 +0000 |
| commit | 9d335986042400f1b3b1458569ba52106358ab13 (patch) | |
| tree | ba0527a9cef72802bfd75ed84ef75b550730544e /src | |
| parent | b9438afa9855c2b756138bedccbf2aa98590f1d2 (diff) | |
| download | openbsd-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/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> |
