diff options
Diffstat (limited to 'regress/lib/libcrypto')
40 files changed, 143 insertions, 65 deletions
diff --git a/regress/lib/libcrypto/aead/Makefile b/regress/lib/libcrypto/aead/Makefile index 3f4f302efe6..e25112884a3 100644 --- a/regress/lib/libcrypto/aead/Makefile +++ b/regress/lib/libcrypto/aead/Makefile @@ -1,8 +1,10 @@ -# $OpenBSD: Makefile,v 1.1 2014/05/15 13:56:14 jsing Exp $ +# $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:45 miod Exp $ PROG= aeadtest LDADD= -lcrypto DPADD= ${LIBCRYPTO} +WARNINGS= Yes +CFLAGS+= -Werror REGRESS_TARGETS=regress-aeadtest diff --git a/regress/lib/libcrypto/aeswrap/Makefile b/regress/lib/libcrypto/aeswrap/Makefile index c869e5f4d25..45234533c52 100644 --- a/regress/lib/libcrypto/aeswrap/Makefile +++ b/regress/lib/libcrypto/aeswrap/Makefile @@ -1,7 +1,9 @@ -# $OpenBSD: Makefile,v 1.2 2014/05/30 15:17:43 jsing Exp $ +# $OpenBSD: Makefile,v 1.3 2014/06/01 11:11:45 miod Exp $ PROG= aes_wrap LDADD= -lcrypto DPADD= ${LIBCRYPTO} +WARNINGS= Yes +CFLAGS+= -Werror .include <bsd.regress.mk> diff --git a/regress/lib/libcrypto/aeswrap/aes_wrap.c b/regress/lib/libcrypto/aeswrap/aes_wrap.c index b5157d715cf..c0c56327f1f 100644 --- a/regress/lib/libcrypto/aeswrap/aes_wrap.c +++ b/regress/lib/libcrypto/aeswrap/aes_wrap.c @@ -53,9 +53,13 @@ #include <stdio.h> #include <stdlib.h> +#include <string.h> #include <openssl/aes.h> +int AES_wrap_unwrap_test(const unsigned char *, int, const unsigned char *, + const unsigned char *, const unsigned char *, int); + int AES_wrap_unwrap_test(const unsigned char *kek, int keybits, const unsigned char *iv, const unsigned char *eout, @@ -150,7 +154,6 @@ main(int argc, char **argv) 0xfb, 0x98, 0x8b, 0x9b, 0x7a, 0x02, 0xdd, 0x21 }; - AES_KEY wctx, xctx; int ret, nfailures = 0; ret = AES_wrap_unwrap_test(kek, 128, NULL, e1, key, 16); if (ret == 0) diff --git a/regress/lib/libcrypto/base64/Makefile b/regress/lib/libcrypto/base64/Makefile index d16badf297a..6ae6583b383 100644 --- a/regress/lib/libcrypto/base64/Makefile +++ b/regress/lib/libcrypto/base64/Makefile @@ -1,7 +1,9 @@ -# $OpenBSD: Makefile,v 1.1 2014/05/03 15:07:46 jsing Exp $ +# $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:45 miod Exp $ PROG= base64test LDADD= -lcrypto DPADD= ${LIBCRYPTO} +WARNINGS= Yes +CFLAGS+= -Werror .include <bsd.regress.mk> diff --git a/regress/lib/libcrypto/bf/Makefile b/regress/lib/libcrypto/bf/Makefile index aabd1af912a..b43e61dd4b1 100644 --- a/regress/lib/libcrypto/bf/Makefile +++ b/regress/lib/libcrypto/bf/Makefile @@ -1,7 +1,9 @@ -# $OpenBSD: Makefile,v 1.1 2014/04/15 18:01:17 miod Exp $ +# $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:45 miod Exp $ PROG= bftest LDADD= -lcrypto DPADD= ${LIBCRYPTO} +WARNINGS= Yes +CFLAGS+= -Werror .include <bsd.regress.mk> diff --git a/regress/lib/libcrypto/bn/Makefile b/regress/lib/libcrypto/bn/Makefile index 63fa7019d5c..ecc2e79075c 100644 --- a/regress/lib/libcrypto/bn/Makefile +++ b/regress/lib/libcrypto/bn/Makefile @@ -1,7 +1,9 @@ -# $OpenBSD: Makefile,v 1.1 2014/04/15 18:01:15 miod Exp $ +# $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:45 miod Exp $ PROG= bntest LDADD= -lcrypto DPADD= ${LIBCRYPTO} +WARNINGS= Yes +CFLAGS+= -Werror .include <bsd.regress.mk> diff --git a/regress/lib/libcrypto/cast/Makefile b/regress/lib/libcrypto/cast/Makefile index cf35524fac1..0ee8e85e298 100644 --- a/regress/lib/libcrypto/cast/Makefile +++ b/regress/lib/libcrypto/cast/Makefile @@ -1,7 +1,9 @@ -# $OpenBSD: Makefile,v 1.1 2014/04/15 18:01:17 miod Exp $ +# $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:45 miod Exp $ PROG= casttest LDADD= -lcrypto DPADD= ${LIBCRYPTO} +WARNINGS= Yes +CFLAGS+= -Werror .include <bsd.regress.mk> diff --git a/regress/lib/libcrypto/chacha/Makefile b/regress/lib/libcrypto/chacha/Makefile index b09dda17a1c..182879c693d 100644 --- a/regress/lib/libcrypto/chacha/Makefile +++ b/regress/lib/libcrypto/chacha/Makefile @@ -1,7 +1,9 @@ -# $OpenBSD: Makefile,v 1.1 2014/05/01 13:15:22 jsing Exp $ +# $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:45 miod Exp $ PROG= chachatest LDADD= -lcrypto DPADD= ${LIBCRYPTO} +WARNINGS= Yes +CFLAGS+= -Werror .include <bsd.regress.mk> diff --git a/regress/lib/libcrypto/chacha/chachatest.c b/regress/lib/libcrypto/chacha/chachatest.c index ff67fbf59a8..aa10939d7ee 100644 --- a/regress/lib/libcrypto/chacha/chachatest.c +++ b/regress/lib/libcrypto/chacha/chachatest.c @@ -227,7 +227,7 @@ main(int argc, char **argv) { struct chacha_tv *tv; unsigned char *in, *out; - int i, j; + size_t i, j; for (i = 0; i < N_VECTORS; i++) { tv = &chacha_test_vectors[i]; diff --git a/regress/lib/libcrypto/cts128/Makefile b/regress/lib/libcrypto/cts128/Makefile index 4423e9c20bf..31dd52bfcec 100644 --- a/regress/lib/libcrypto/cts128/Makefile +++ b/regress/lib/libcrypto/cts128/Makefile @@ -1,7 +1,9 @@ -# $OpenBSD: Makefile,v 1.1 2014/05/31 14:39:06 jsing Exp $ +# $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:46 miod Exp $ PROG= cts128test LDADD= -lcrypto DPADD= ${LIBCRYPTO} +WARNINGS= Yes +CFLAGS+= -Werror .include <bsd.regress.mk> diff --git a/regress/lib/libcrypto/cts128/cts128test.c b/regress/lib/libcrypto/cts128/cts128test.c index 84a3e0d46b0..d910f3d4b83 100644 --- a/regress/lib/libcrypto/cts128/cts128test.c +++ b/regress/lib/libcrypto/cts128/cts128test.c @@ -12,6 +12,9 @@ #include <openssl/aes.h> #include <openssl/modes.h> +void test_vector(const unsigned char *vector,size_t len); +void test_nistvector(const unsigned char *vector,size_t len); + /* test vectors from RFC 3962 */ static const unsigned char test_key[16] = "chicken teriyaki"; static const unsigned char test_input[64] = @@ -44,12 +47,15 @@ static const unsigned char vector_64[64] = static AES_KEY encks, decks; -void test_vector(const unsigned char *vector,size_t len) -{ unsigned char iv[sizeof(test_iv)]; +void +test_vector(const unsigned char *vector,size_t len) +{ + unsigned char iv[sizeof(test_iv)]; unsigned char cleartext[64],ciphertext[64]; size_t tail; - printf("vector_%d\n",len); fflush(stdout); + printf("vector_%zu\n",len); + fflush(stdout); if ((tail=len%16) == 0) tail = 16; tail += 16; @@ -58,41 +64,43 @@ void test_vector(const unsigned char *vector,size_t len) memcpy(iv,test_iv,sizeof(test_iv)); CRYPTO_cts128_encrypt_block(test_input,ciphertext,len,&encks,iv,(block128_f)AES_encrypt); if (memcmp(ciphertext,vector,len)) - fprintf(stderr,"output_%d mismatch\n",len), exit(1); + fprintf(stderr,"output_%zu mismatch\n",len), exit(1); if (memcmp(iv,vector+len-tail,sizeof(iv))) - fprintf(stderr,"iv_%d mismatch\n",len), exit(1); + fprintf(stderr,"iv_%zu mismatch\n",len), exit(1); /* test block-based decryption */ memcpy(iv,test_iv,sizeof(test_iv)); CRYPTO_cts128_decrypt_block(ciphertext,cleartext,len,&decks,iv,(block128_f)AES_decrypt); if (memcmp(cleartext,test_input,len)) - fprintf(stderr,"input_%d mismatch\n",len), exit(2); + fprintf(stderr,"input_%zu mismatch\n",len), exit(2); if (memcmp(iv,vector+len-tail,sizeof(iv))) - fprintf(stderr,"iv_%d mismatch\n",len), exit(2); + fprintf(stderr,"iv_%zu mismatch\n",len), exit(2); /* test streamed encryption */ memcpy(iv,test_iv,sizeof(test_iv)); CRYPTO_cts128_encrypt(test_input,ciphertext,len,&encks,iv,(cbc128_f)AES_cbc_encrypt); if (memcmp(ciphertext,vector,len)) - fprintf(stderr,"output_%d mismatch\n",len), exit(3); + fprintf(stderr,"output_%zu mismatch\n",len), exit(3); if (memcmp(iv,vector+len-tail,sizeof(iv))) - fprintf(stderr,"iv_%d mismatch\n",len), exit(3); + fprintf(stderr,"iv_%zu mismatch\n",len), exit(3); /* test streamed decryption */ memcpy(iv,test_iv,sizeof(test_iv)); CRYPTO_cts128_decrypt(ciphertext,cleartext,len,&decks,iv,(cbc128_f)AES_cbc_encrypt); if (memcmp(cleartext,test_input,len)) - fprintf(stderr,"input_%d mismatch\n",len), exit(4); + fprintf(stderr,"input_%zu mismatch\n",len), exit(4); if (memcmp(iv,vector+len-tail,sizeof(iv))) - fprintf(stderr,"iv_%d mismatch\n",len), exit(4); + fprintf(stderr,"iv_%zu mismatch\n",len), exit(4); } -void test_nistvector(const unsigned char *vector,size_t len) -{ unsigned char iv[sizeof(test_iv)]; +void +test_nistvector(const unsigned char *vector,size_t len) +{ + unsigned char iv[sizeof(test_iv)]; unsigned char cleartext[64],ciphertext[64],nistvector[64]; size_t tail; - printf("nistvector_%d\n",len); fflush(stdout); + printf("nistvector_%zu\n",len); fflush(stdout); if ((tail=len%16) == 0) tail = 16; @@ -108,36 +116,37 @@ void test_nistvector(const unsigned char *vector,size_t len) memcpy(iv,test_iv,sizeof(test_iv)); CRYPTO_nistcts128_encrypt_block(test_input,ciphertext,len,&encks,iv,(block128_f)AES_encrypt); if (memcmp(ciphertext,nistvector,len)) - fprintf(stderr,"output_%d mismatch\n",len), exit(1); + fprintf(stderr,"output_%zu mismatch\n",len), exit(1); if (memcmp(iv,nistvector+len-tail,sizeof(iv))) - fprintf(stderr,"iv_%d mismatch\n",len), exit(1); + fprintf(stderr,"iv_%zu mismatch\n",len), exit(1); /* test block-based decryption */ memcpy(iv,test_iv,sizeof(test_iv)); CRYPTO_nistcts128_decrypt_block(ciphertext,cleartext,len,&decks,iv,(block128_f)AES_decrypt); if (memcmp(cleartext,test_input,len)) - fprintf(stderr,"input_%d mismatch\n",len), exit(2); + fprintf(stderr,"input_%zu mismatch\n",len), exit(2); if (memcmp(iv,nistvector+len-tail,sizeof(iv))) - fprintf(stderr,"iv_%d mismatch\n",len), exit(2); + fprintf(stderr,"iv_%zu mismatch\n",len), exit(2); /* test streamed encryption */ memcpy(iv,test_iv,sizeof(test_iv)); CRYPTO_nistcts128_encrypt(test_input,ciphertext,len,&encks,iv,(cbc128_f)AES_cbc_encrypt); if (memcmp(ciphertext,nistvector,len)) - fprintf(stderr,"output_%d mismatch\n",len), exit(3); + fprintf(stderr,"output_%zu mismatch\n",len), exit(3); if (memcmp(iv,nistvector+len-tail,sizeof(iv))) - fprintf(stderr,"iv_%d mismatch\n",len), exit(3); + fprintf(stderr,"iv_%zu mismatch\n",len), exit(3); /* test streamed decryption */ memcpy(iv,test_iv,sizeof(test_iv)); CRYPTO_nistcts128_decrypt(ciphertext,cleartext,len,&decks,iv,(cbc128_f)AES_cbc_encrypt); if (memcmp(cleartext,test_input,len)) - fprintf(stderr,"input_%d mismatch\n",len), exit(4); + fprintf(stderr,"input_%zu mismatch\n",len), exit(4); if (memcmp(iv,nistvector+len-tail,sizeof(iv))) - fprintf(stderr,"iv_%d mismatch\n",len), exit(4); + fprintf(stderr,"iv_%zu mismatch\n",len), exit(4); } -int main() +int +main(int argc, char *argv[]) { AES_set_encrypt_key(test_key,128,&encks); AES_set_decrypt_key(test_key,128,&decks); diff --git a/regress/lib/libcrypto/des/Makefile b/regress/lib/libcrypto/des/Makefile index b8047fc804d..b79698341dc 100644 --- a/regress/lib/libcrypto/des/Makefile +++ b/regress/lib/libcrypto/des/Makefile @@ -1,7 +1,9 @@ -# $OpenBSD: Makefile,v 1.1 2014/04/15 18:01:18 miod Exp $ +# $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:46 miod Exp $ PROG= destest LDADD= -lcrypto DPADD= ${LIBCRYPTO} +WARNINGS= Yes +CFLAGS+= -Werror .include <bsd.regress.mk> diff --git a/regress/lib/libcrypto/dh/Makefile b/regress/lib/libcrypto/dh/Makefile index 8618cbb8582..66e42eeb318 100644 --- a/regress/lib/libcrypto/dh/Makefile +++ b/regress/lib/libcrypto/dh/Makefile @@ -1,7 +1,9 @@ -# $OpenBSD: Makefile,v 1.1 2014/04/15 18:01:18 miod Exp $ +# $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:46 miod Exp $ PROG= dhtest LDADD= -lcrypto DPADD= ${LIBCRYPTO} +WARNINGS= Yes +CFLAGS+= -Werror .include <bsd.regress.mk> diff --git a/regress/lib/libcrypto/dsa/Makefile b/regress/lib/libcrypto/dsa/Makefile index 79f8b0a5a64..b18840dec62 100644 --- a/regress/lib/libcrypto/dsa/Makefile +++ b/regress/lib/libcrypto/dsa/Makefile @@ -1,8 +1,10 @@ -# $OpenBSD: Makefile,v 1.1 2014/04/15 18:01:18 miod Exp $ +# $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:46 miod Exp $ PROG= dsatest LDADD= -lcrypto DPADD= ${LIBCRYPTO} +WARNINGS= Yes +CFLAGS+= -Werror REGRESS_TARGETS=regress-dsatest diff --git a/regress/lib/libcrypto/dsa/dsatest.c b/regress/lib/libcrypto/dsa/dsatest.c index 3131f429e2a..dcab96424c9 100644 --- a/regress/lib/libcrypto/dsa/dsatest.c +++ b/regress/lib/libcrypto/dsa/dsatest.c @@ -130,10 +130,6 @@ int main(int argc, char **argv) if (bio_err == NULL) bio_err=BIO_new_fp(stderr,BIO_NOCLOSE); - CRYPTO_malloc_debug_init(); - CRYPTO_dbg_set_options(V_CRYPTO_MDEBUG_ALL); - CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON); - ERR_load_crypto_strings(); BIO_printf(bio_err,"test generation of DSA parameters\n"); diff --git a/regress/lib/libcrypto/ec/Makefile b/regress/lib/libcrypto/ec/Makefile index 63ee5215cfd..f0ee5a04655 100644 --- a/regress/lib/libcrypto/ec/Makefile +++ b/regress/lib/libcrypto/ec/Makefile @@ -1,7 +1,9 @@ -# $OpenBSD: Makefile,v 1.1 2014/04/15 18:01:16 miod Exp $ +# $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:46 miod Exp $ PROG= ectest LDADD= -lcrypto DPADD= ${LIBCRYPTO} +WARNINGS= Yes +CFLAGS+= -Werror .include <bsd.regress.mk> diff --git a/regress/lib/libcrypto/ecdh/Makefile b/regress/lib/libcrypto/ecdh/Makefile index 0d4b8a9724e..433648e93af 100644 --- a/regress/lib/libcrypto/ecdh/Makefile +++ b/regress/lib/libcrypto/ecdh/Makefile @@ -1,7 +1,9 @@ -# $OpenBSD: Makefile,v 1.1 2014/04/15 18:01:16 miod Exp $ +# $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:46 miod Exp $ PROG= ecdhtest LDADD= -lcrypto DPADD= ${LIBCRYPTO} +WARNINGS= Yes +CFLAGS+= -Werror .include <bsd.regress.mk> diff --git a/regress/lib/libcrypto/ecdsa/Makefile b/regress/lib/libcrypto/ecdsa/Makefile index b1ab2579a81..59a43f7bbfb 100644 --- a/regress/lib/libcrypto/ecdsa/Makefile +++ b/regress/lib/libcrypto/ecdsa/Makefile @@ -1,7 +1,9 @@ -# $OpenBSD: Makefile,v 1.1 2014/04/15 18:01:16 miod Exp $ +# $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:46 miod Exp $ PROG= ecdsatest LDADD= -lcrypto DPADD= ${LIBCRYPTO} +WARNINGS= Yes +CFLAGS+= -Werror .include <bsd.regress.mk> diff --git a/regress/lib/libcrypto/engine/Makefile b/regress/lib/libcrypto/engine/Makefile index c77c8b8e79d..b63454181b6 100644 --- a/regress/lib/libcrypto/engine/Makefile +++ b/regress/lib/libcrypto/engine/Makefile @@ -1,7 +1,9 @@ -# $OpenBSD: Makefile,v 1.1 2014/04/17 07:52:08 jsg Exp $ +# $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:46 miod Exp $ PROG= enginetest LDADD= -lcrypto DPADD= ${LIBCRYPTO} +WARNINGS= Yes +CFLAGS+= -Werror .include <bsd.regress.mk> diff --git a/regress/lib/libcrypto/evp/Makefile b/regress/lib/libcrypto/evp/Makefile index 2d72c16d35a..ce012a18498 100644 --- a/regress/lib/libcrypto/evp/Makefile +++ b/regress/lib/libcrypto/evp/Makefile @@ -1,8 +1,10 @@ -# $OpenBSD: Makefile,v 1.1 2014/04/15 18:01:18 miod Exp $ +# $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:46 miod Exp $ PROG= evptest LDADD= -lcrypto DPADD= ${LIBCRYPTO} +WARNINGS= Yes +CFLAGS+= -Werror REGRESS_TARGETS=regress-evptest diff --git a/regress/lib/libcrypto/exp/Makefile b/regress/lib/libcrypto/exp/Makefile index 72f279d737e..3c2cac8976a 100644 --- a/regress/lib/libcrypto/exp/Makefile +++ b/regress/lib/libcrypto/exp/Makefile @@ -1,7 +1,9 @@ -# $OpenBSD: Makefile,v 1.1 2014/04/15 18:01:16 miod Exp $ +# $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:46 miod Exp $ PROG= exptest LDADD= -lcrypto DPADD= ${LIBCRYPTO} +WARNINGS= Yes +CFLAGS+= -Werror .include <bsd.regress.mk> diff --git a/regress/lib/libcrypto/gcm128/Makefile b/regress/lib/libcrypto/gcm128/Makefile index c1ce651f519..1119fc3c1e2 100644 --- a/regress/lib/libcrypto/gcm128/Makefile +++ b/regress/lib/libcrypto/gcm128/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.2 2014/05/31 14:39:06 jsing Exp $ +# $OpenBSD: Makefile,v 1.3 2014/06/01 11:11:46 miod Exp $ PROG= gcm128test SRC= ${.CURDIR}/../../../../lib/libssl/src/crypto/modes @@ -6,5 +6,7 @@ CFLAGS+=-I${SRC} LDADD= -lcrypto DPADD= ${LIBCRYPTO} +#WARNINGS= Yes +#CFLAGS+= -Werror .include <bsd.regress.mk> diff --git a/regress/lib/libcrypto/gcm128/gcm128test.c b/regress/lib/libcrypto/gcm128/gcm128test.c index 5ed8e0a7140..57267b8dbfa 100644 --- a/regress/lib/libcrypto/gcm128/gcm128test.c +++ b/regress/lib/libcrypto/gcm128/gcm128test.c @@ -327,7 +327,8 @@ static const u8 IV20[64]={0xff,0xff,0xff,0xff}, /* this results in 0xff in count ret++, printf ("decrypt test#%d failed.\n",n); \ } while(0) -int main() +int +main(int argc, char **argv) { GCM128_CONTEXT ctx; AES_KEY key; diff --git a/regress/lib/libcrypto/hmac/Makefile b/regress/lib/libcrypto/hmac/Makefile index 84d20e5c7ca..727bacc03dc 100644 --- a/regress/lib/libcrypto/hmac/Makefile +++ b/regress/lib/libcrypto/hmac/Makefile @@ -1,7 +1,9 @@ -# $OpenBSD: Makefile,v 1.1 2014/04/15 18:01:17 miod Exp $ +# $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:46 miod Exp $ PROG= hmactest LDADD= -lcrypto DPADD= ${LIBCRYPTO} +WARNINGS= Yes +CFLAGS+= -Werror .include <bsd.regress.mk> diff --git a/regress/lib/libcrypto/idea/Makefile b/regress/lib/libcrypto/idea/Makefile index 27d882be455..d6898768644 100644 --- a/regress/lib/libcrypto/idea/Makefile +++ b/regress/lib/libcrypto/idea/Makefile @@ -1,7 +1,9 @@ -# $OpenBSD: Makefile,v 1.1 2014/04/15 18:01:17 miod Exp $ +# $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:46 miod Exp $ PROG= ideatest LDADD= -lcrypto DPADD= ${LIBCRYPTO} +WARNINGS= Yes +CFLAGS+= -Werror .include <bsd.regress.mk> diff --git a/regress/lib/libcrypto/ige/Makefile b/regress/lib/libcrypto/ige/Makefile index 05ff82f9315..3e3fa98e31f 100644 --- a/regress/lib/libcrypto/ige/Makefile +++ b/regress/lib/libcrypto/ige/Makefile @@ -1,7 +1,9 @@ -# $OpenBSD: Makefile,v 1.1 2014/04/15 18:01:18 miod Exp $ +# $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:46 miod Exp $ PROG= igetest LDADD= -lcrypto DPADD= ${LIBCRYPTO} +WARNINGS= Yes +CFLAGS+= -Werror .include <bsd.regress.mk> diff --git a/regress/lib/libcrypto/md4/Makefile b/regress/lib/libcrypto/md4/Makefile index bd6de6e6fee..b142120e12c 100644 --- a/regress/lib/libcrypto/md4/Makefile +++ b/regress/lib/libcrypto/md4/Makefile @@ -1,7 +1,9 @@ -# $OpenBSD: Makefile,v 1.1 2014/04/15 18:01:17 miod Exp $ +# $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:46 miod Exp $ PROG= md4test LDADD= -lcrypto DPADD= ${LIBCRYPTO} +WARNINGS= Yes +CFLAGS+= -Werror .include <bsd.regress.mk> diff --git a/regress/lib/libcrypto/md5/Makefile b/regress/lib/libcrypto/md5/Makefile index 81958a93b4a..0c1de513b58 100644 --- a/regress/lib/libcrypto/md5/Makefile +++ b/regress/lib/libcrypto/md5/Makefile @@ -1,7 +1,9 @@ -# $OpenBSD: Makefile,v 1.1 2014/04/15 18:01:17 miod Exp $ +# $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:46 miod Exp $ PROG= md5test LDADD= -lcrypto DPADD= ${LIBCRYPTO} +WARNINGS= Yes +CFLAGS+= -Werror .include <bsd.regress.mk> diff --git a/regress/lib/libcrypto/mdc2/Makefile b/regress/lib/libcrypto/mdc2/Makefile index 6bac6d71835..9aa57ab23aa 100644 --- a/regress/lib/libcrypto/mdc2/Makefile +++ b/regress/lib/libcrypto/mdc2/Makefile @@ -1,7 +1,9 @@ -# $OpenBSD: Makefile,v 1.1 2014/04/15 18:01:17 miod Exp $ +# $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:46 miod Exp $ PROG= mdc2test LDADD= -lcrypto DPADD= ${LIBCRYPTO} +WARNINGS= Yes +CFLAGS+= -Werror .include <bsd.regress.mk> diff --git a/regress/lib/libcrypto/poly1305/Makefile b/regress/lib/libcrypto/poly1305/Makefile index 956b46973a5..47e8065e9a0 100644 --- a/regress/lib/libcrypto/poly1305/Makefile +++ b/regress/lib/libcrypto/poly1305/Makefile @@ -1,7 +1,9 @@ -# $OpenBSD: Makefile,v 1.1 2014/05/14 14:46:35 jsing Exp $ +# $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:46 miod Exp $ PROG= poly1305test LDADD= -lcrypto DPADD= ${LIBCRYPTO} +WARNINGS= Yes +CFLAGS+= -Werror .include <bsd.regress.mk> diff --git a/regress/lib/libcrypto/pqueue/Makefile b/regress/lib/libcrypto/pqueue/Makefile index 09c6213e05b..654ec95682d 100644 --- a/regress/lib/libcrypto/pqueue/Makefile +++ b/regress/lib/libcrypto/pqueue/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.4 2014/05/15 19:23:14 miod Exp $ +# $OpenBSD: Makefile,v 1.5 2014/06/01 11:11:46 miod Exp $ PROG= pq_test SRC= ${.CURDIR}/../../../../lib/libssl/src/ssl @@ -6,6 +6,8 @@ CFLAGS+= -I${SRC} LDADD= -lssl -lcrypto DPADD= ${LIBSSL} ${LIBCRYPTO} +WARNINGS= Yes +CFLAGS+= -Werror REGRESS_TARGETS= regress-pq_test diff --git a/regress/lib/libcrypto/rand/Makefile b/regress/lib/libcrypto/rand/Makefile index 4715f059835..4ceadcee0ad 100644 --- a/regress/lib/libcrypto/rand/Makefile +++ b/regress/lib/libcrypto/rand/Makefile @@ -1,7 +1,9 @@ -# $OpenBSD: Makefile,v 1.1 2014/04/15 18:01:18 miod Exp $ +# $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:46 miod Exp $ PROG= randtest LDADD= -lcrypto DPADD= ${LIBCRYPTO} +WARNINGS= Yes +CFLAGS+= -Werror .include <bsd.regress.mk> diff --git a/regress/lib/libcrypto/rc2/Makefile b/regress/lib/libcrypto/rc2/Makefile index 1cdf6127ecb..91d642ac329 100644 --- a/regress/lib/libcrypto/rc2/Makefile +++ b/regress/lib/libcrypto/rc2/Makefile @@ -1,7 +1,9 @@ -# $OpenBSD: Makefile,v 1.1 2014/04/15 18:01:17 miod Exp $ +# $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:46 miod Exp $ PROG= rc2test LDADD= -lcrypto DPADD= ${LIBCRYPTO} +WARNINGS= Yes +CFLAGS+= -Werror .include <bsd.regress.mk> diff --git a/regress/lib/libcrypto/rc4/Makefile b/regress/lib/libcrypto/rc4/Makefile index 2936d171fde..37651f7f2de 100644 --- a/regress/lib/libcrypto/rc4/Makefile +++ b/regress/lib/libcrypto/rc4/Makefile @@ -1,7 +1,9 @@ -# $OpenBSD: Makefile,v 1.1 2014/04/15 18:01:17 miod Exp $ +# $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:46 miod Exp $ PROG= rc4test LDADD= -lcrypto DPADD= ${LIBCRYPTO} +WARNINGS= Yes +CFLAGS+= -Werror .include <bsd.regress.mk> diff --git a/regress/lib/libcrypto/rmd/Makefile b/regress/lib/libcrypto/rmd/Makefile index 813b2047f9e..8f92e69ac16 100644 --- a/regress/lib/libcrypto/rmd/Makefile +++ b/regress/lib/libcrypto/rmd/Makefile @@ -1,7 +1,9 @@ -# $OpenBSD: Makefile,v 1.1 2014/04/15 18:01:17 miod Exp $ +# $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:46 miod Exp $ PROG= rmdtest LDADD= -lcrypto DPADD= ${LIBCRYPTO} +WARNINGS= Yes +CFLAGS+= -Werror .include <bsd.regress.mk> diff --git a/regress/lib/libcrypto/sha/Makefile b/regress/lib/libcrypto/sha/Makefile index cb444cd991a..6863772ff8c 100644 --- a/regress/lib/libcrypto/sha/Makefile +++ b/regress/lib/libcrypto/sha/Makefile @@ -1,7 +1,9 @@ -# $OpenBSD: Makefile,v 1.1 2014/04/15 18:01:17 miod Exp $ +# $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:46 miod Exp $ PROG= shatest LDADD= -lcrypto DPADD= ${LIBCRYPTO} +WARNINGS= Yes +CFLAGS+= -Werror .include <bsd.regress.mk> diff --git a/regress/lib/libcrypto/sha1/Makefile b/regress/lib/libcrypto/sha1/Makefile index 517cd65ecc0..57530ea3842 100644 --- a/regress/lib/libcrypto/sha1/Makefile +++ b/regress/lib/libcrypto/sha1/Makefile @@ -1,7 +1,9 @@ -# $OpenBSD: Makefile,v 1.1 2014/04/15 18:01:17 miod Exp $ +# $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:46 miod Exp $ PROG= sha1test LDADD= -lcrypto DPADD= ${LIBCRYPTO} +WARNINGS= Yes +CFLAGS+= -Werror .include <bsd.regress.mk> diff --git a/regress/lib/libcrypto/sha256/Makefile b/regress/lib/libcrypto/sha256/Makefile index 7c4bdc1035f..b97b9926de1 100644 --- a/regress/lib/libcrypto/sha256/Makefile +++ b/regress/lib/libcrypto/sha256/Makefile @@ -1,7 +1,9 @@ -# $OpenBSD: Makefile,v 1.1 2014/05/30 15:38:28 jsing Exp $ +# $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:46 miod Exp $ PROG= sha256test LDADD= -lcrypto DPADD= ${LIBCRYPTO} +WARNINGS= Yes +CFLAGS+= -Werror .include <bsd.regress.mk> diff --git a/regress/lib/libcrypto/sha512/Makefile b/regress/lib/libcrypto/sha512/Makefile index 176da35c2dd..31658f9f074 100644 --- a/regress/lib/libcrypto/sha512/Makefile +++ b/regress/lib/libcrypto/sha512/Makefile @@ -1,7 +1,9 @@ -# $OpenBSD: Makefile,v 1.1 2014/05/30 15:38:28 jsing Exp $ +# $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:46 miod Exp $ PROG= sha512test LDADD= -lcrypto DPADD= ${LIBCRYPTO} +WARNINGS= Yes +CFLAGS+= -Werror .include <bsd.regress.mk> diff --git a/regress/lib/libcrypto/utf8/Makefile b/regress/lib/libcrypto/utf8/Makefile index 8c9f5f8a958..b5767ac2049 100644 --- a/regress/lib/libcrypto/utf8/Makefile +++ b/regress/lib/libcrypto/utf8/Makefile @@ -1,9 +1,10 @@ -# $OpenBSD: Makefile,v 1.2 2014/05/22 03:36:23 guenther Exp $ +# $OpenBSD: Makefile,v 1.3 2014/06/01 11:11:46 miod Exp $ PROG= utf8test CPPFLAGS+=-I${.CURDIR}/../../../../lib/libssl/src/crypto/asn1 LDADD= -lcrypto DPADD= ${LIBCRYPTO} WARNINGS=Yes +CFLAGS+= -Werror .include <bsd.regress.mk> |