diff options
author | miod <> | 2014-06-01 11:11:46 +0000 |
---|---|---|
committer | miod <> | 2014-06-01 11:11:46 +0000 |
commit | 8feed9c0b8cf35589d2442426a7f5c022f055e9d (patch) | |
tree | 764f224e0d43a606966be44aaee32715ee508747 | |
parent | e356b447e74b757810a71e2bf8e431b22fd6e328 (diff) | |
download | openbsd-8feed9c0b8cf35589d2442426a7f5c022f055e9d.tar.gz openbsd-8feed9c0b8cf35589d2442426a7f5c022f055e9d.tar.bz2 openbsd-8feed9c0b8cf35589d2442426a7f5c022f055e9d.zip |
Build these tests with WARNINGS=Yes and -Werror, and do the necessary
fixes to keep building.
40 files changed, 143 insertions, 65 deletions
diff --git a/src/regress/lib/libcrypto/aead/Makefile b/src/regress/lib/libcrypto/aead/Makefile index 3f4f302efe..e25112884a 100644 --- a/src/regress/lib/libcrypto/aead/Makefile +++ b/src/regress/lib/libcrypto/aead/Makefile | |||
@@ -1,8 +1,10 @@ | |||
1 | # $OpenBSD: Makefile,v 1.1 2014/05/15 13:56:14 jsing Exp $ | 1 | # $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:45 miod Exp $ |
2 | 2 | ||
3 | PROG= aeadtest | 3 | PROG= aeadtest |
4 | LDADD= -lcrypto | 4 | LDADD= -lcrypto |
5 | DPADD= ${LIBCRYPTO} | 5 | DPADD= ${LIBCRYPTO} |
6 | WARNINGS= Yes | ||
7 | CFLAGS+= -Werror | ||
6 | 8 | ||
7 | REGRESS_TARGETS=regress-aeadtest | 9 | REGRESS_TARGETS=regress-aeadtest |
8 | 10 | ||
diff --git a/src/regress/lib/libcrypto/aeswrap/Makefile b/src/regress/lib/libcrypto/aeswrap/Makefile index c869e5f4d2..45234533c5 100644 --- a/src/regress/lib/libcrypto/aeswrap/Makefile +++ b/src/regress/lib/libcrypto/aeswrap/Makefile | |||
@@ -1,7 +1,9 @@ | |||
1 | # $OpenBSD: Makefile,v 1.2 2014/05/30 15:17:43 jsing Exp $ | 1 | # $OpenBSD: Makefile,v 1.3 2014/06/01 11:11:45 miod Exp $ |
2 | 2 | ||
3 | PROG= aes_wrap | 3 | PROG= aes_wrap |
4 | LDADD= -lcrypto | 4 | LDADD= -lcrypto |
5 | DPADD= ${LIBCRYPTO} | 5 | DPADD= ${LIBCRYPTO} |
6 | WARNINGS= Yes | ||
7 | CFLAGS+= -Werror | ||
6 | 8 | ||
7 | .include <bsd.regress.mk> | 9 | .include <bsd.regress.mk> |
diff --git a/src/regress/lib/libcrypto/aeswrap/aes_wrap.c b/src/regress/lib/libcrypto/aeswrap/aes_wrap.c index b5157d715c..c0c56327f1 100644 --- a/src/regress/lib/libcrypto/aeswrap/aes_wrap.c +++ b/src/regress/lib/libcrypto/aeswrap/aes_wrap.c | |||
@@ -53,9 +53,13 @@ | |||
53 | 53 | ||
54 | #include <stdio.h> | 54 | #include <stdio.h> |
55 | #include <stdlib.h> | 55 | #include <stdlib.h> |
56 | #include <string.h> | ||
56 | 57 | ||
57 | #include <openssl/aes.h> | 58 | #include <openssl/aes.h> |
58 | 59 | ||
60 | int AES_wrap_unwrap_test(const unsigned char *, int, const unsigned char *, | ||
61 | const unsigned char *, const unsigned char *, int); | ||
62 | |||
59 | int | 63 | int |
60 | AES_wrap_unwrap_test(const unsigned char *kek, int keybits, | 64 | AES_wrap_unwrap_test(const unsigned char *kek, int keybits, |
61 | const unsigned char *iv, const unsigned char *eout, | 65 | const unsigned char *iv, const unsigned char *eout, |
@@ -150,7 +154,6 @@ main(int argc, char **argv) | |||
150 | 0xfb, 0x98, 0x8b, 0x9b, 0x7a, 0x02, 0xdd, 0x21 | 154 | 0xfb, 0x98, 0x8b, 0x9b, 0x7a, 0x02, 0xdd, 0x21 |
151 | }; | 155 | }; |
152 | 156 | ||
153 | AES_KEY wctx, xctx; | ||
154 | int ret, nfailures = 0; | 157 | int ret, nfailures = 0; |
155 | ret = AES_wrap_unwrap_test(kek, 128, NULL, e1, key, 16); | 158 | ret = AES_wrap_unwrap_test(kek, 128, NULL, e1, key, 16); |
156 | if (ret == 0) | 159 | if (ret == 0) |
diff --git a/src/regress/lib/libcrypto/base64/Makefile b/src/regress/lib/libcrypto/base64/Makefile index d16badf297..6ae6583b38 100644 --- a/src/regress/lib/libcrypto/base64/Makefile +++ b/src/regress/lib/libcrypto/base64/Makefile | |||
@@ -1,7 +1,9 @@ | |||
1 | # $OpenBSD: Makefile,v 1.1 2014/05/03 15:07:46 jsing Exp $ | 1 | # $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:45 miod Exp $ |
2 | 2 | ||
3 | PROG= base64test | 3 | PROG= base64test |
4 | LDADD= -lcrypto | 4 | LDADD= -lcrypto |
5 | DPADD= ${LIBCRYPTO} | 5 | DPADD= ${LIBCRYPTO} |
6 | WARNINGS= Yes | ||
7 | CFLAGS+= -Werror | ||
6 | 8 | ||
7 | .include <bsd.regress.mk> | 9 | .include <bsd.regress.mk> |
diff --git a/src/regress/lib/libcrypto/bf/Makefile b/src/regress/lib/libcrypto/bf/Makefile index 056384939a..b43e61dd4b 100644 --- a/src/regress/lib/libcrypto/bf/Makefile +++ b/src/regress/lib/libcrypto/bf/Makefile | |||
@@ -1,7 +1,9 @@ | |||
1 | # $OpenBSD: Makefile,v 1.1.1.1 2014/04/15 18:01:17 miod Exp $ | 1 | # $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:45 miod Exp $ |
2 | 2 | ||
3 | PROG= bftest | 3 | PROG= bftest |
4 | LDADD= -lcrypto | 4 | LDADD= -lcrypto |
5 | DPADD= ${LIBCRYPTO} | 5 | DPADD= ${LIBCRYPTO} |
6 | WARNINGS= Yes | ||
7 | CFLAGS+= -Werror | ||
6 | 8 | ||
7 | .include <bsd.regress.mk> | 9 | .include <bsd.regress.mk> |
diff --git a/src/regress/lib/libcrypto/bn/Makefile b/src/regress/lib/libcrypto/bn/Makefile index 30bc0ef297..ecc2e79075 100644 --- a/src/regress/lib/libcrypto/bn/Makefile +++ b/src/regress/lib/libcrypto/bn/Makefile | |||
@@ -1,7 +1,9 @@ | |||
1 | # $OpenBSD: Makefile,v 1.1.1.1 2014/04/15 18:01:15 miod Exp $ | 1 | # $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:45 miod Exp $ |
2 | 2 | ||
3 | PROG= bntest | 3 | PROG= bntest |
4 | LDADD= -lcrypto | 4 | LDADD= -lcrypto |
5 | DPADD= ${LIBCRYPTO} | 5 | DPADD= ${LIBCRYPTO} |
6 | WARNINGS= Yes | ||
7 | CFLAGS+= -Werror | ||
6 | 8 | ||
7 | .include <bsd.regress.mk> | 9 | .include <bsd.regress.mk> |
diff --git a/src/regress/lib/libcrypto/cast/Makefile b/src/regress/lib/libcrypto/cast/Makefile index 9e14207b4a..0ee8e85e29 100644 --- a/src/regress/lib/libcrypto/cast/Makefile +++ b/src/regress/lib/libcrypto/cast/Makefile | |||
@@ -1,7 +1,9 @@ | |||
1 | # $OpenBSD: Makefile,v 1.1.1.1 2014/04/15 18:01:17 miod Exp $ | 1 | # $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:45 miod Exp $ |
2 | 2 | ||
3 | PROG= casttest | 3 | PROG= casttest |
4 | LDADD= -lcrypto | 4 | LDADD= -lcrypto |
5 | DPADD= ${LIBCRYPTO} | 5 | DPADD= ${LIBCRYPTO} |
6 | WARNINGS= Yes | ||
7 | CFLAGS+= -Werror | ||
6 | 8 | ||
7 | .include <bsd.regress.mk> | 9 | .include <bsd.regress.mk> |
diff --git a/src/regress/lib/libcrypto/chacha/Makefile b/src/regress/lib/libcrypto/chacha/Makefile index b09dda17a1..182879c693 100644 --- a/src/regress/lib/libcrypto/chacha/Makefile +++ b/src/regress/lib/libcrypto/chacha/Makefile | |||
@@ -1,7 +1,9 @@ | |||
1 | # $OpenBSD: Makefile,v 1.1 2014/05/01 13:15:22 jsing Exp $ | 1 | # $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:45 miod Exp $ |
2 | 2 | ||
3 | PROG= chachatest | 3 | PROG= chachatest |
4 | LDADD= -lcrypto | 4 | LDADD= -lcrypto |
5 | DPADD= ${LIBCRYPTO} | 5 | DPADD= ${LIBCRYPTO} |
6 | WARNINGS= Yes | ||
7 | CFLAGS+= -Werror | ||
6 | 8 | ||
7 | .include <bsd.regress.mk> | 9 | .include <bsd.regress.mk> |
diff --git a/src/regress/lib/libcrypto/chacha/chachatest.c b/src/regress/lib/libcrypto/chacha/chachatest.c index ff67fbf59a..aa10939d7e 100644 --- a/src/regress/lib/libcrypto/chacha/chachatest.c +++ b/src/regress/lib/libcrypto/chacha/chachatest.c | |||
@@ -227,7 +227,7 @@ main(int argc, char **argv) | |||
227 | { | 227 | { |
228 | struct chacha_tv *tv; | 228 | struct chacha_tv *tv; |
229 | unsigned char *in, *out; | 229 | unsigned char *in, *out; |
230 | int i, j; | 230 | size_t i, j; |
231 | 231 | ||
232 | for (i = 0; i < N_VECTORS; i++) { | 232 | for (i = 0; i < N_VECTORS; i++) { |
233 | tv = &chacha_test_vectors[i]; | 233 | tv = &chacha_test_vectors[i]; |
diff --git a/src/regress/lib/libcrypto/cts128/Makefile b/src/regress/lib/libcrypto/cts128/Makefile index 4423e9c20b..31dd52bfce 100644 --- a/src/regress/lib/libcrypto/cts128/Makefile +++ b/src/regress/lib/libcrypto/cts128/Makefile | |||
@@ -1,7 +1,9 @@ | |||
1 | # $OpenBSD: Makefile,v 1.1 2014/05/31 14:39:06 jsing Exp $ | 1 | # $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:46 miod Exp $ |
2 | 2 | ||
3 | PROG= cts128test | 3 | PROG= cts128test |
4 | LDADD= -lcrypto | 4 | LDADD= -lcrypto |
5 | DPADD= ${LIBCRYPTO} | 5 | DPADD= ${LIBCRYPTO} |
6 | WARNINGS= Yes | ||
7 | CFLAGS+= -Werror | ||
6 | 8 | ||
7 | .include <bsd.regress.mk> | 9 | .include <bsd.regress.mk> |
diff --git a/src/regress/lib/libcrypto/cts128/cts128test.c b/src/regress/lib/libcrypto/cts128/cts128test.c index 84a3e0d46b..d910f3d4b8 100644 --- a/src/regress/lib/libcrypto/cts128/cts128test.c +++ b/src/regress/lib/libcrypto/cts128/cts128test.c | |||
@@ -12,6 +12,9 @@ | |||
12 | #include <openssl/aes.h> | 12 | #include <openssl/aes.h> |
13 | #include <openssl/modes.h> | 13 | #include <openssl/modes.h> |
14 | 14 | ||
15 | void test_vector(const unsigned char *vector,size_t len); | ||
16 | void test_nistvector(const unsigned char *vector,size_t len); | ||
17 | |||
15 | /* test vectors from RFC 3962 */ | 18 | /* test vectors from RFC 3962 */ |
16 | static const unsigned char test_key[16] = "chicken teriyaki"; | 19 | static const unsigned char test_key[16] = "chicken teriyaki"; |
17 | static const unsigned char test_input[64] = | 20 | static const unsigned char test_input[64] = |
@@ -44,12 +47,15 @@ static const unsigned char vector_64[64] = | |||
44 | 47 | ||
45 | static AES_KEY encks, decks; | 48 | static AES_KEY encks, decks; |
46 | 49 | ||
47 | void test_vector(const unsigned char *vector,size_t len) | 50 | void |
48 | { unsigned char iv[sizeof(test_iv)]; | 51 | test_vector(const unsigned char *vector,size_t len) |
52 | { | ||
53 | unsigned char iv[sizeof(test_iv)]; | ||
49 | unsigned char cleartext[64],ciphertext[64]; | 54 | unsigned char cleartext[64],ciphertext[64]; |
50 | size_t tail; | 55 | size_t tail; |
51 | 56 | ||
52 | printf("vector_%d\n",len); fflush(stdout); | 57 | printf("vector_%zu\n",len); |
58 | fflush(stdout); | ||
53 | 59 | ||
54 | if ((tail=len%16) == 0) tail = 16; | 60 | if ((tail=len%16) == 0) tail = 16; |
55 | tail += 16; | 61 | tail += 16; |
@@ -58,41 +64,43 @@ void test_vector(const unsigned char *vector,size_t len) | |||
58 | memcpy(iv,test_iv,sizeof(test_iv)); | 64 | memcpy(iv,test_iv,sizeof(test_iv)); |
59 | CRYPTO_cts128_encrypt_block(test_input,ciphertext,len,&encks,iv,(block128_f)AES_encrypt); | 65 | CRYPTO_cts128_encrypt_block(test_input,ciphertext,len,&encks,iv,(block128_f)AES_encrypt); |
60 | if (memcmp(ciphertext,vector,len)) | 66 | if (memcmp(ciphertext,vector,len)) |
61 | fprintf(stderr,"output_%d mismatch\n",len), exit(1); | 67 | fprintf(stderr,"output_%zu mismatch\n",len), exit(1); |
62 | if (memcmp(iv,vector+len-tail,sizeof(iv))) | 68 | if (memcmp(iv,vector+len-tail,sizeof(iv))) |
63 | fprintf(stderr,"iv_%d mismatch\n",len), exit(1); | 69 | fprintf(stderr,"iv_%zu mismatch\n",len), exit(1); |
64 | 70 | ||
65 | /* test block-based decryption */ | 71 | /* test block-based decryption */ |
66 | memcpy(iv,test_iv,sizeof(test_iv)); | 72 | memcpy(iv,test_iv,sizeof(test_iv)); |
67 | CRYPTO_cts128_decrypt_block(ciphertext,cleartext,len,&decks,iv,(block128_f)AES_decrypt); | 73 | CRYPTO_cts128_decrypt_block(ciphertext,cleartext,len,&decks,iv,(block128_f)AES_decrypt); |
68 | if (memcmp(cleartext,test_input,len)) | 74 | if (memcmp(cleartext,test_input,len)) |
69 | fprintf(stderr,"input_%d mismatch\n",len), exit(2); | 75 | fprintf(stderr,"input_%zu mismatch\n",len), exit(2); |
70 | if (memcmp(iv,vector+len-tail,sizeof(iv))) | 76 | if (memcmp(iv,vector+len-tail,sizeof(iv))) |
71 | fprintf(stderr,"iv_%d mismatch\n",len), exit(2); | 77 | fprintf(stderr,"iv_%zu mismatch\n",len), exit(2); |
72 | 78 | ||
73 | /* test streamed encryption */ | 79 | /* test streamed encryption */ |
74 | memcpy(iv,test_iv,sizeof(test_iv)); | 80 | memcpy(iv,test_iv,sizeof(test_iv)); |
75 | CRYPTO_cts128_encrypt(test_input,ciphertext,len,&encks,iv,(cbc128_f)AES_cbc_encrypt); | 81 | CRYPTO_cts128_encrypt(test_input,ciphertext,len,&encks,iv,(cbc128_f)AES_cbc_encrypt); |
76 | if (memcmp(ciphertext,vector,len)) | 82 | if (memcmp(ciphertext,vector,len)) |
77 | fprintf(stderr,"output_%d mismatch\n",len), exit(3); | 83 | fprintf(stderr,"output_%zu mismatch\n",len), exit(3); |
78 | if (memcmp(iv,vector+len-tail,sizeof(iv))) | 84 | if (memcmp(iv,vector+len-tail,sizeof(iv))) |
79 | fprintf(stderr,"iv_%d mismatch\n",len), exit(3); | 85 | fprintf(stderr,"iv_%zu mismatch\n",len), exit(3); |
80 | 86 | ||
81 | /* test streamed decryption */ | 87 | /* test streamed decryption */ |
82 | memcpy(iv,test_iv,sizeof(test_iv)); | 88 | memcpy(iv,test_iv,sizeof(test_iv)); |
83 | CRYPTO_cts128_decrypt(ciphertext,cleartext,len,&decks,iv,(cbc128_f)AES_cbc_encrypt); | 89 | CRYPTO_cts128_decrypt(ciphertext,cleartext,len,&decks,iv,(cbc128_f)AES_cbc_encrypt); |
84 | if (memcmp(cleartext,test_input,len)) | 90 | if (memcmp(cleartext,test_input,len)) |
85 | fprintf(stderr,"input_%d mismatch\n",len), exit(4); | 91 | fprintf(stderr,"input_%zu mismatch\n",len), exit(4); |
86 | if (memcmp(iv,vector+len-tail,sizeof(iv))) | 92 | if (memcmp(iv,vector+len-tail,sizeof(iv))) |
87 | fprintf(stderr,"iv_%d mismatch\n",len), exit(4); | 93 | fprintf(stderr,"iv_%zu mismatch\n",len), exit(4); |
88 | } | 94 | } |
89 | 95 | ||
90 | void test_nistvector(const unsigned char *vector,size_t len) | 96 | void |
91 | { unsigned char iv[sizeof(test_iv)]; | 97 | test_nistvector(const unsigned char *vector,size_t len) |
98 | { | ||
99 | unsigned char iv[sizeof(test_iv)]; | ||
92 | unsigned char cleartext[64],ciphertext[64],nistvector[64]; | 100 | unsigned char cleartext[64],ciphertext[64],nistvector[64]; |
93 | size_t tail; | 101 | size_t tail; |
94 | 102 | ||
95 | printf("nistvector_%d\n",len); fflush(stdout); | 103 | printf("nistvector_%zu\n",len); fflush(stdout); |
96 | 104 | ||
97 | if ((tail=len%16) == 0) tail = 16; | 105 | if ((tail=len%16) == 0) tail = 16; |
98 | 106 | ||
@@ -108,36 +116,37 @@ void test_nistvector(const unsigned char *vector,size_t len) | |||
108 | memcpy(iv,test_iv,sizeof(test_iv)); | 116 | memcpy(iv,test_iv,sizeof(test_iv)); |
109 | CRYPTO_nistcts128_encrypt_block(test_input,ciphertext,len,&encks,iv,(block128_f)AES_encrypt); | 117 | CRYPTO_nistcts128_encrypt_block(test_input,ciphertext,len,&encks,iv,(block128_f)AES_encrypt); |
110 | if (memcmp(ciphertext,nistvector,len)) | 118 | if (memcmp(ciphertext,nistvector,len)) |
111 | fprintf(stderr,"output_%d mismatch\n",len), exit(1); | 119 | fprintf(stderr,"output_%zu mismatch\n",len), exit(1); |
112 | if (memcmp(iv,nistvector+len-tail,sizeof(iv))) | 120 | if (memcmp(iv,nistvector+len-tail,sizeof(iv))) |
113 | fprintf(stderr,"iv_%d mismatch\n",len), exit(1); | 121 | fprintf(stderr,"iv_%zu mismatch\n",len), exit(1); |
114 | 122 | ||
115 | /* test block-based decryption */ | 123 | /* test block-based decryption */ |
116 | memcpy(iv,test_iv,sizeof(test_iv)); | 124 | memcpy(iv,test_iv,sizeof(test_iv)); |
117 | CRYPTO_nistcts128_decrypt_block(ciphertext,cleartext,len,&decks,iv,(block128_f)AES_decrypt); | 125 | CRYPTO_nistcts128_decrypt_block(ciphertext,cleartext,len,&decks,iv,(block128_f)AES_decrypt); |
118 | if (memcmp(cleartext,test_input,len)) | 126 | if (memcmp(cleartext,test_input,len)) |
119 | fprintf(stderr,"input_%d mismatch\n",len), exit(2); | 127 | fprintf(stderr,"input_%zu mismatch\n",len), exit(2); |
120 | if (memcmp(iv,nistvector+len-tail,sizeof(iv))) | 128 | if (memcmp(iv,nistvector+len-tail,sizeof(iv))) |
121 | fprintf(stderr,"iv_%d mismatch\n",len), exit(2); | 129 | fprintf(stderr,"iv_%zu mismatch\n",len), exit(2); |
122 | 130 | ||
123 | /* test streamed encryption */ | 131 | /* test streamed encryption */ |
124 | memcpy(iv,test_iv,sizeof(test_iv)); | 132 | memcpy(iv,test_iv,sizeof(test_iv)); |
125 | CRYPTO_nistcts128_encrypt(test_input,ciphertext,len,&encks,iv,(cbc128_f)AES_cbc_encrypt); | 133 | CRYPTO_nistcts128_encrypt(test_input,ciphertext,len,&encks,iv,(cbc128_f)AES_cbc_encrypt); |
126 | if (memcmp(ciphertext,nistvector,len)) | 134 | if (memcmp(ciphertext,nistvector,len)) |
127 | fprintf(stderr,"output_%d mismatch\n",len), exit(3); | 135 | fprintf(stderr,"output_%zu mismatch\n",len), exit(3); |
128 | if (memcmp(iv,nistvector+len-tail,sizeof(iv))) | 136 | if (memcmp(iv,nistvector+len-tail,sizeof(iv))) |
129 | fprintf(stderr,"iv_%d mismatch\n",len), exit(3); | 137 | fprintf(stderr,"iv_%zu mismatch\n",len), exit(3); |
130 | 138 | ||
131 | /* test streamed decryption */ | 139 | /* test streamed decryption */ |
132 | memcpy(iv,test_iv,sizeof(test_iv)); | 140 | memcpy(iv,test_iv,sizeof(test_iv)); |
133 | CRYPTO_nistcts128_decrypt(ciphertext,cleartext,len,&decks,iv,(cbc128_f)AES_cbc_encrypt); | 141 | CRYPTO_nistcts128_decrypt(ciphertext,cleartext,len,&decks,iv,(cbc128_f)AES_cbc_encrypt); |
134 | if (memcmp(cleartext,test_input,len)) | 142 | if (memcmp(cleartext,test_input,len)) |
135 | fprintf(stderr,"input_%d mismatch\n",len), exit(4); | 143 | fprintf(stderr,"input_%zu mismatch\n",len), exit(4); |
136 | if (memcmp(iv,nistvector+len-tail,sizeof(iv))) | 144 | if (memcmp(iv,nistvector+len-tail,sizeof(iv))) |
137 | fprintf(stderr,"iv_%d mismatch\n",len), exit(4); | 145 | fprintf(stderr,"iv_%zu mismatch\n",len), exit(4); |
138 | } | 146 | } |
139 | 147 | ||
140 | int main() | 148 | int |
149 | main(int argc, char *argv[]) | ||
141 | { | 150 | { |
142 | AES_set_encrypt_key(test_key,128,&encks); | 151 | AES_set_encrypt_key(test_key,128,&encks); |
143 | AES_set_decrypt_key(test_key,128,&decks); | 152 | AES_set_decrypt_key(test_key,128,&decks); |
diff --git a/src/regress/lib/libcrypto/des/Makefile b/src/regress/lib/libcrypto/des/Makefile index cd251bc24c..b79698341d 100644 --- a/src/regress/lib/libcrypto/des/Makefile +++ b/src/regress/lib/libcrypto/des/Makefile | |||
@@ -1,7 +1,9 @@ | |||
1 | # $OpenBSD: Makefile,v 1.1.1.1 2014/04/15 18:01:18 miod Exp $ | 1 | # $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:46 miod Exp $ |
2 | 2 | ||
3 | PROG= destest | 3 | PROG= destest |
4 | LDADD= -lcrypto | 4 | LDADD= -lcrypto |
5 | DPADD= ${LIBCRYPTO} | 5 | DPADD= ${LIBCRYPTO} |
6 | WARNINGS= Yes | ||
7 | CFLAGS+= -Werror | ||
6 | 8 | ||
7 | .include <bsd.regress.mk> | 9 | .include <bsd.regress.mk> |
diff --git a/src/regress/lib/libcrypto/dh/Makefile b/src/regress/lib/libcrypto/dh/Makefile index d4af5ed57e..66e42eeb31 100644 --- a/src/regress/lib/libcrypto/dh/Makefile +++ b/src/regress/lib/libcrypto/dh/Makefile | |||
@@ -1,7 +1,9 @@ | |||
1 | # $OpenBSD: Makefile,v 1.1.1.1 2014/04/15 18:01:18 miod Exp $ | 1 | # $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:46 miod Exp $ |
2 | 2 | ||
3 | PROG= dhtest | 3 | PROG= dhtest |
4 | LDADD= -lcrypto | 4 | LDADD= -lcrypto |
5 | DPADD= ${LIBCRYPTO} | 5 | DPADD= ${LIBCRYPTO} |
6 | WARNINGS= Yes | ||
7 | CFLAGS+= -Werror | ||
6 | 8 | ||
7 | .include <bsd.regress.mk> | 9 | .include <bsd.regress.mk> |
diff --git a/src/regress/lib/libcrypto/dsa/Makefile b/src/regress/lib/libcrypto/dsa/Makefile index cce7c3b0f6..b18840dec6 100644 --- a/src/regress/lib/libcrypto/dsa/Makefile +++ b/src/regress/lib/libcrypto/dsa/Makefile | |||
@@ -1,8 +1,10 @@ | |||
1 | # $OpenBSD: Makefile,v 1.1.1.1 2014/04/15 18:01:18 miod Exp $ | 1 | # $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:46 miod Exp $ |
2 | 2 | ||
3 | PROG= dsatest | 3 | PROG= dsatest |
4 | LDADD= -lcrypto | 4 | LDADD= -lcrypto |
5 | DPADD= ${LIBCRYPTO} | 5 | DPADD= ${LIBCRYPTO} |
6 | WARNINGS= Yes | ||
7 | CFLAGS+= -Werror | ||
6 | 8 | ||
7 | REGRESS_TARGETS=regress-dsatest | 9 | REGRESS_TARGETS=regress-dsatest |
8 | 10 | ||
diff --git a/src/regress/lib/libcrypto/dsa/dsatest.c b/src/regress/lib/libcrypto/dsa/dsatest.c index 3131f429e2..dcab96424c 100644 --- a/src/regress/lib/libcrypto/dsa/dsatest.c +++ b/src/regress/lib/libcrypto/dsa/dsatest.c | |||
@@ -130,10 +130,6 @@ int main(int argc, char **argv) | |||
130 | if (bio_err == NULL) | 130 | if (bio_err == NULL) |
131 | bio_err=BIO_new_fp(stderr,BIO_NOCLOSE); | 131 | bio_err=BIO_new_fp(stderr,BIO_NOCLOSE); |
132 | 132 | ||
133 | CRYPTO_malloc_debug_init(); | ||
134 | CRYPTO_dbg_set_options(V_CRYPTO_MDEBUG_ALL); | ||
135 | CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON); | ||
136 | |||
137 | ERR_load_crypto_strings(); | 133 | ERR_load_crypto_strings(); |
138 | 134 | ||
139 | BIO_printf(bio_err,"test generation of DSA parameters\n"); | 135 | BIO_printf(bio_err,"test generation of DSA parameters\n"); |
diff --git a/src/regress/lib/libcrypto/ec/Makefile b/src/regress/lib/libcrypto/ec/Makefile index f6dbef5b9b..f0ee5a0465 100644 --- a/src/regress/lib/libcrypto/ec/Makefile +++ b/src/regress/lib/libcrypto/ec/Makefile | |||
@@ -1,7 +1,9 @@ | |||
1 | # $OpenBSD: Makefile,v 1.1.1.1 2014/04/15 18:01:16 miod Exp $ | 1 | # $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:46 miod Exp $ |
2 | 2 | ||
3 | PROG= ectest | 3 | PROG= ectest |
4 | LDADD= -lcrypto | 4 | LDADD= -lcrypto |
5 | DPADD= ${LIBCRYPTO} | 5 | DPADD= ${LIBCRYPTO} |
6 | WARNINGS= Yes | ||
7 | CFLAGS+= -Werror | ||
6 | 8 | ||
7 | .include <bsd.regress.mk> | 9 | .include <bsd.regress.mk> |
diff --git a/src/regress/lib/libcrypto/ecdh/Makefile b/src/regress/lib/libcrypto/ecdh/Makefile index 5eb18a3205..433648e93a 100644 --- a/src/regress/lib/libcrypto/ecdh/Makefile +++ b/src/regress/lib/libcrypto/ecdh/Makefile | |||
@@ -1,7 +1,9 @@ | |||
1 | # $OpenBSD: Makefile,v 1.1.1.1 2014/04/15 18:01:16 miod Exp $ | 1 | # $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:46 miod Exp $ |
2 | 2 | ||
3 | PROG= ecdhtest | 3 | PROG= ecdhtest |
4 | LDADD= -lcrypto | 4 | LDADD= -lcrypto |
5 | DPADD= ${LIBCRYPTO} | 5 | DPADD= ${LIBCRYPTO} |
6 | WARNINGS= Yes | ||
7 | CFLAGS+= -Werror | ||
6 | 8 | ||
7 | .include <bsd.regress.mk> | 9 | .include <bsd.regress.mk> |
diff --git a/src/regress/lib/libcrypto/ecdsa/Makefile b/src/regress/lib/libcrypto/ecdsa/Makefile index c171b51e56..59a43f7bbf 100644 --- a/src/regress/lib/libcrypto/ecdsa/Makefile +++ b/src/regress/lib/libcrypto/ecdsa/Makefile | |||
@@ -1,7 +1,9 @@ | |||
1 | # $OpenBSD: Makefile,v 1.1.1.1 2014/04/15 18:01:16 miod Exp $ | 1 | # $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:46 miod Exp $ |
2 | 2 | ||
3 | PROG= ecdsatest | 3 | PROG= ecdsatest |
4 | LDADD= -lcrypto | 4 | LDADD= -lcrypto |
5 | DPADD= ${LIBCRYPTO} | 5 | DPADD= ${LIBCRYPTO} |
6 | WARNINGS= Yes | ||
7 | CFLAGS+= -Werror | ||
6 | 8 | ||
7 | .include <bsd.regress.mk> | 9 | .include <bsd.regress.mk> |
diff --git a/src/regress/lib/libcrypto/engine/Makefile b/src/regress/lib/libcrypto/engine/Makefile index c77c8b8e79..b63454181b 100644 --- a/src/regress/lib/libcrypto/engine/Makefile +++ b/src/regress/lib/libcrypto/engine/Makefile | |||
@@ -1,7 +1,9 @@ | |||
1 | # $OpenBSD: Makefile,v 1.1 2014/04/17 07:52:08 jsg Exp $ | 1 | # $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:46 miod Exp $ |
2 | 2 | ||
3 | PROG= enginetest | 3 | PROG= enginetest |
4 | LDADD= -lcrypto | 4 | LDADD= -lcrypto |
5 | DPADD= ${LIBCRYPTO} | 5 | DPADD= ${LIBCRYPTO} |
6 | WARNINGS= Yes | ||
7 | CFLAGS+= -Werror | ||
6 | 8 | ||
7 | .include <bsd.regress.mk> | 9 | .include <bsd.regress.mk> |
diff --git a/src/regress/lib/libcrypto/evp/Makefile b/src/regress/lib/libcrypto/evp/Makefile index 11acf06a01..ce012a1849 100644 --- a/src/regress/lib/libcrypto/evp/Makefile +++ b/src/regress/lib/libcrypto/evp/Makefile | |||
@@ -1,8 +1,10 @@ | |||
1 | # $OpenBSD: Makefile,v 1.1.1.1 2014/04/15 18:01:18 miod Exp $ | 1 | # $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:46 miod Exp $ |
2 | 2 | ||
3 | PROG= evptest | 3 | PROG= evptest |
4 | LDADD= -lcrypto | 4 | LDADD= -lcrypto |
5 | DPADD= ${LIBCRYPTO} | 5 | DPADD= ${LIBCRYPTO} |
6 | WARNINGS= Yes | ||
7 | CFLAGS+= -Werror | ||
6 | 8 | ||
7 | REGRESS_TARGETS=regress-evptest | 9 | REGRESS_TARGETS=regress-evptest |
8 | 10 | ||
diff --git a/src/regress/lib/libcrypto/exp/Makefile b/src/regress/lib/libcrypto/exp/Makefile index e55fabe549..3c2cac8976 100644 --- a/src/regress/lib/libcrypto/exp/Makefile +++ b/src/regress/lib/libcrypto/exp/Makefile | |||
@@ -1,7 +1,9 @@ | |||
1 | # $OpenBSD: Makefile,v 1.1.1.1 2014/04/15 18:01:16 miod Exp $ | 1 | # $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:46 miod Exp $ |
2 | 2 | ||
3 | PROG= exptest | 3 | PROG= exptest |
4 | LDADD= -lcrypto | 4 | LDADD= -lcrypto |
5 | DPADD= ${LIBCRYPTO} | 5 | DPADD= ${LIBCRYPTO} |
6 | WARNINGS= Yes | ||
7 | CFLAGS+= -Werror | ||
6 | 8 | ||
7 | .include <bsd.regress.mk> | 9 | .include <bsd.regress.mk> |
diff --git a/src/regress/lib/libcrypto/gcm128/Makefile b/src/regress/lib/libcrypto/gcm128/Makefile index c1ce651f51..1119fc3c1e 100644 --- a/src/regress/lib/libcrypto/gcm128/Makefile +++ b/src/regress/lib/libcrypto/gcm128/Makefile | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: Makefile,v 1.2 2014/05/31 14:39:06 jsing Exp $ | 1 | # $OpenBSD: Makefile,v 1.3 2014/06/01 11:11:46 miod Exp $ |
2 | 2 | ||
3 | PROG= gcm128test | 3 | PROG= gcm128test |
4 | SRC= ${.CURDIR}/../../../../lib/libssl/src/crypto/modes | 4 | SRC= ${.CURDIR}/../../../../lib/libssl/src/crypto/modes |
@@ -6,5 +6,7 @@ CFLAGS+=-I${SRC} | |||
6 | 6 | ||
7 | LDADD= -lcrypto | 7 | LDADD= -lcrypto |
8 | DPADD= ${LIBCRYPTO} | 8 | DPADD= ${LIBCRYPTO} |
9 | #WARNINGS= Yes | ||
10 | #CFLAGS+= -Werror | ||
9 | 11 | ||
10 | .include <bsd.regress.mk> | 12 | .include <bsd.regress.mk> |
diff --git a/src/regress/lib/libcrypto/gcm128/gcm128test.c b/src/regress/lib/libcrypto/gcm128/gcm128test.c index 5ed8e0a714..57267b8dbf 100644 --- a/src/regress/lib/libcrypto/gcm128/gcm128test.c +++ b/src/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 | |||
327 | ret++, printf ("decrypt test#%d failed.\n",n); \ | 327 | ret++, printf ("decrypt test#%d failed.\n",n); \ |
328 | } while(0) | 328 | } while(0) |
329 | 329 | ||
330 | int main() | 330 | int |
331 | main(int argc, char **argv) | ||
331 | { | 332 | { |
332 | GCM128_CONTEXT ctx; | 333 | GCM128_CONTEXT ctx; |
333 | AES_KEY key; | 334 | AES_KEY key; |
diff --git a/src/regress/lib/libcrypto/hmac/Makefile b/src/regress/lib/libcrypto/hmac/Makefile index 0bcb8f49aa..727bacc03d 100644 --- a/src/regress/lib/libcrypto/hmac/Makefile +++ b/src/regress/lib/libcrypto/hmac/Makefile | |||
@@ -1,7 +1,9 @@ | |||
1 | # $OpenBSD: Makefile,v 1.1.1.1 2014/04/15 18:01:17 miod Exp $ | 1 | # $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:46 miod Exp $ |
2 | 2 | ||
3 | PROG= hmactest | 3 | PROG= hmactest |
4 | LDADD= -lcrypto | 4 | LDADD= -lcrypto |
5 | DPADD= ${LIBCRYPTO} | 5 | DPADD= ${LIBCRYPTO} |
6 | WARNINGS= Yes | ||
7 | CFLAGS+= -Werror | ||
6 | 8 | ||
7 | .include <bsd.regress.mk> | 9 | .include <bsd.regress.mk> |
diff --git a/src/regress/lib/libcrypto/idea/Makefile b/src/regress/lib/libcrypto/idea/Makefile index 8188c68a4c..d689876864 100644 --- a/src/regress/lib/libcrypto/idea/Makefile +++ b/src/regress/lib/libcrypto/idea/Makefile | |||
@@ -1,7 +1,9 @@ | |||
1 | # $OpenBSD: Makefile,v 1.1.1.1 2014/04/15 18:01:17 miod Exp $ | 1 | # $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:46 miod Exp $ |
2 | 2 | ||
3 | PROG= ideatest | 3 | PROG= ideatest |
4 | LDADD= -lcrypto | 4 | LDADD= -lcrypto |
5 | DPADD= ${LIBCRYPTO} | 5 | DPADD= ${LIBCRYPTO} |
6 | WARNINGS= Yes | ||
7 | CFLAGS+= -Werror | ||
6 | 8 | ||
7 | .include <bsd.regress.mk> | 9 | .include <bsd.regress.mk> |
diff --git a/src/regress/lib/libcrypto/ige/Makefile b/src/regress/lib/libcrypto/ige/Makefile index 587259f412..3e3fa98e31 100644 --- a/src/regress/lib/libcrypto/ige/Makefile +++ b/src/regress/lib/libcrypto/ige/Makefile | |||
@@ -1,7 +1,9 @@ | |||
1 | # $OpenBSD: Makefile,v 1.1.1.1 2014/04/15 18:01:18 miod Exp $ | 1 | # $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:46 miod Exp $ |
2 | 2 | ||
3 | PROG= igetest | 3 | PROG= igetest |
4 | LDADD= -lcrypto | 4 | LDADD= -lcrypto |
5 | DPADD= ${LIBCRYPTO} | 5 | DPADD= ${LIBCRYPTO} |
6 | WARNINGS= Yes | ||
7 | CFLAGS+= -Werror | ||
6 | 8 | ||
7 | .include <bsd.regress.mk> | 9 | .include <bsd.regress.mk> |
diff --git a/src/regress/lib/libcrypto/md4/Makefile b/src/regress/lib/libcrypto/md4/Makefile index ca015fa404..b142120e12 100644 --- a/src/regress/lib/libcrypto/md4/Makefile +++ b/src/regress/lib/libcrypto/md4/Makefile | |||
@@ -1,7 +1,9 @@ | |||
1 | # $OpenBSD: Makefile,v 1.1.1.1 2014/04/15 18:01:17 miod Exp $ | 1 | # $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:46 miod Exp $ |
2 | 2 | ||
3 | PROG= md4test | 3 | PROG= md4test |
4 | LDADD= -lcrypto | 4 | LDADD= -lcrypto |
5 | DPADD= ${LIBCRYPTO} | 5 | DPADD= ${LIBCRYPTO} |
6 | WARNINGS= Yes | ||
7 | CFLAGS+= -Werror | ||
6 | 8 | ||
7 | .include <bsd.regress.mk> | 9 | .include <bsd.regress.mk> |
diff --git a/src/regress/lib/libcrypto/md5/Makefile b/src/regress/lib/libcrypto/md5/Makefile index 80dcb50dec..0c1de513b5 100644 --- a/src/regress/lib/libcrypto/md5/Makefile +++ b/src/regress/lib/libcrypto/md5/Makefile | |||
@@ -1,7 +1,9 @@ | |||
1 | # $OpenBSD: Makefile,v 1.1.1.1 2014/04/15 18:01:17 miod Exp $ | 1 | # $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:46 miod Exp $ |
2 | 2 | ||
3 | PROG= md5test | 3 | PROG= md5test |
4 | LDADD= -lcrypto | 4 | LDADD= -lcrypto |
5 | DPADD= ${LIBCRYPTO} | 5 | DPADD= ${LIBCRYPTO} |
6 | WARNINGS= Yes | ||
7 | CFLAGS+= -Werror | ||
6 | 8 | ||
7 | .include <bsd.regress.mk> | 9 | .include <bsd.regress.mk> |
diff --git a/src/regress/lib/libcrypto/mdc2/Makefile b/src/regress/lib/libcrypto/mdc2/Makefile index 09674f96bf..9aa57ab23a 100644 --- a/src/regress/lib/libcrypto/mdc2/Makefile +++ b/src/regress/lib/libcrypto/mdc2/Makefile | |||
@@ -1,7 +1,9 @@ | |||
1 | # $OpenBSD: Makefile,v 1.1.1.1 2014/04/15 18:01:17 miod Exp $ | 1 | # $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:46 miod Exp $ |
2 | 2 | ||
3 | PROG= mdc2test | 3 | PROG= mdc2test |
4 | LDADD= -lcrypto | 4 | LDADD= -lcrypto |
5 | DPADD= ${LIBCRYPTO} | 5 | DPADD= ${LIBCRYPTO} |
6 | WARNINGS= Yes | ||
7 | CFLAGS+= -Werror | ||
6 | 8 | ||
7 | .include <bsd.regress.mk> | 9 | .include <bsd.regress.mk> |
diff --git a/src/regress/lib/libcrypto/poly1305/Makefile b/src/regress/lib/libcrypto/poly1305/Makefile index 956b46973a..47e8065e9a 100644 --- a/src/regress/lib/libcrypto/poly1305/Makefile +++ b/src/regress/lib/libcrypto/poly1305/Makefile | |||
@@ -1,7 +1,9 @@ | |||
1 | # $OpenBSD: Makefile,v 1.1 2014/05/14 14:46:35 jsing Exp $ | 1 | # $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:46 miod Exp $ |
2 | 2 | ||
3 | PROG= poly1305test | 3 | PROG= poly1305test |
4 | LDADD= -lcrypto | 4 | LDADD= -lcrypto |
5 | DPADD= ${LIBCRYPTO} | 5 | DPADD= ${LIBCRYPTO} |
6 | WARNINGS= Yes | ||
7 | CFLAGS+= -Werror | ||
6 | 8 | ||
7 | .include <bsd.regress.mk> | 9 | .include <bsd.regress.mk> |
diff --git a/src/regress/lib/libcrypto/pqueue/Makefile b/src/regress/lib/libcrypto/pqueue/Makefile index 09c6213e05..654ec95682 100644 --- a/src/regress/lib/libcrypto/pqueue/Makefile +++ b/src/regress/lib/libcrypto/pqueue/Makefile | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: Makefile,v 1.4 2014/05/15 19:23:14 miod Exp $ | 1 | # $OpenBSD: Makefile,v 1.5 2014/06/01 11:11:46 miod Exp $ |
2 | 2 | ||
3 | PROG= pq_test | 3 | PROG= pq_test |
4 | SRC= ${.CURDIR}/../../../../lib/libssl/src/ssl | 4 | SRC= ${.CURDIR}/../../../../lib/libssl/src/ssl |
@@ -6,6 +6,8 @@ CFLAGS+= -I${SRC} | |||
6 | 6 | ||
7 | LDADD= -lssl -lcrypto | 7 | LDADD= -lssl -lcrypto |
8 | DPADD= ${LIBSSL} ${LIBCRYPTO} | 8 | DPADD= ${LIBSSL} ${LIBCRYPTO} |
9 | WARNINGS= Yes | ||
10 | CFLAGS+= -Werror | ||
9 | 11 | ||
10 | REGRESS_TARGETS= regress-pq_test | 12 | REGRESS_TARGETS= regress-pq_test |
11 | 13 | ||
diff --git a/src/regress/lib/libcrypto/rand/Makefile b/src/regress/lib/libcrypto/rand/Makefile index 4284f49df8..4ceadcee0a 100644 --- a/src/regress/lib/libcrypto/rand/Makefile +++ b/src/regress/lib/libcrypto/rand/Makefile | |||
@@ -1,7 +1,9 @@ | |||
1 | # $OpenBSD: Makefile,v 1.1.1.1 2014/04/15 18:01:18 miod Exp $ | 1 | # $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:46 miod Exp $ |
2 | 2 | ||
3 | PROG= randtest | 3 | PROG= randtest |
4 | LDADD= -lcrypto | 4 | LDADD= -lcrypto |
5 | DPADD= ${LIBCRYPTO} | 5 | DPADD= ${LIBCRYPTO} |
6 | WARNINGS= Yes | ||
7 | CFLAGS+= -Werror | ||
6 | 8 | ||
7 | .include <bsd.regress.mk> | 9 | .include <bsd.regress.mk> |
diff --git a/src/regress/lib/libcrypto/rc2/Makefile b/src/regress/lib/libcrypto/rc2/Makefile index 5681e0c923..91d642ac32 100644 --- a/src/regress/lib/libcrypto/rc2/Makefile +++ b/src/regress/lib/libcrypto/rc2/Makefile | |||
@@ -1,7 +1,9 @@ | |||
1 | # $OpenBSD: Makefile,v 1.1.1.1 2014/04/15 18:01:17 miod Exp $ | 1 | # $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:46 miod Exp $ |
2 | 2 | ||
3 | PROG= rc2test | 3 | PROG= rc2test |
4 | LDADD= -lcrypto | 4 | LDADD= -lcrypto |
5 | DPADD= ${LIBCRYPTO} | 5 | DPADD= ${LIBCRYPTO} |
6 | WARNINGS= Yes | ||
7 | CFLAGS+= -Werror | ||
6 | 8 | ||
7 | .include <bsd.regress.mk> | 9 | .include <bsd.regress.mk> |
diff --git a/src/regress/lib/libcrypto/rc4/Makefile b/src/regress/lib/libcrypto/rc4/Makefile index 0e6cf27b71..37651f7f2d 100644 --- a/src/regress/lib/libcrypto/rc4/Makefile +++ b/src/regress/lib/libcrypto/rc4/Makefile | |||
@@ -1,7 +1,9 @@ | |||
1 | # $OpenBSD: Makefile,v 1.1.1.1 2014/04/15 18:01:17 miod Exp $ | 1 | # $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:46 miod Exp $ |
2 | 2 | ||
3 | PROG= rc4test | 3 | PROG= rc4test |
4 | LDADD= -lcrypto | 4 | LDADD= -lcrypto |
5 | DPADD= ${LIBCRYPTO} | 5 | DPADD= ${LIBCRYPTO} |
6 | WARNINGS= Yes | ||
7 | CFLAGS+= -Werror | ||
6 | 8 | ||
7 | .include <bsd.regress.mk> | 9 | .include <bsd.regress.mk> |
diff --git a/src/regress/lib/libcrypto/rmd/Makefile b/src/regress/lib/libcrypto/rmd/Makefile index 2100f99b38..8f92e69ac1 100644 --- a/src/regress/lib/libcrypto/rmd/Makefile +++ b/src/regress/lib/libcrypto/rmd/Makefile | |||
@@ -1,7 +1,9 @@ | |||
1 | # $OpenBSD: Makefile,v 1.1.1.1 2014/04/15 18:01:17 miod Exp $ | 1 | # $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:46 miod Exp $ |
2 | 2 | ||
3 | PROG= rmdtest | 3 | PROG= rmdtest |
4 | LDADD= -lcrypto | 4 | LDADD= -lcrypto |
5 | DPADD= ${LIBCRYPTO} | 5 | DPADD= ${LIBCRYPTO} |
6 | WARNINGS= Yes | ||
7 | CFLAGS+= -Werror | ||
6 | 8 | ||
7 | .include <bsd.regress.mk> | 9 | .include <bsd.regress.mk> |
diff --git a/src/regress/lib/libcrypto/sha/Makefile b/src/regress/lib/libcrypto/sha/Makefile index a6bdec61ea..6863772ff8 100644 --- a/src/regress/lib/libcrypto/sha/Makefile +++ b/src/regress/lib/libcrypto/sha/Makefile | |||
@@ -1,7 +1,9 @@ | |||
1 | # $OpenBSD: Makefile,v 1.1.1.1 2014/04/15 18:01:17 miod Exp $ | 1 | # $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:46 miod Exp $ |
2 | 2 | ||
3 | PROG= shatest | 3 | PROG= shatest |
4 | LDADD= -lcrypto | 4 | LDADD= -lcrypto |
5 | DPADD= ${LIBCRYPTO} | 5 | DPADD= ${LIBCRYPTO} |
6 | WARNINGS= Yes | ||
7 | CFLAGS+= -Werror | ||
6 | 8 | ||
7 | .include <bsd.regress.mk> | 9 | .include <bsd.regress.mk> |
diff --git a/src/regress/lib/libcrypto/sha1/Makefile b/src/regress/lib/libcrypto/sha1/Makefile index 8dfe4fcc8a..57530ea384 100644 --- a/src/regress/lib/libcrypto/sha1/Makefile +++ b/src/regress/lib/libcrypto/sha1/Makefile | |||
@@ -1,7 +1,9 @@ | |||
1 | # $OpenBSD: Makefile,v 1.1.1.1 2014/04/15 18:01:17 miod Exp $ | 1 | # $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:46 miod Exp $ |
2 | 2 | ||
3 | PROG= sha1test | 3 | PROG= sha1test |
4 | LDADD= -lcrypto | 4 | LDADD= -lcrypto |
5 | DPADD= ${LIBCRYPTO} | 5 | DPADD= ${LIBCRYPTO} |
6 | WARNINGS= Yes | ||
7 | CFLAGS+= -Werror | ||
6 | 8 | ||
7 | .include <bsd.regress.mk> | 9 | .include <bsd.regress.mk> |
diff --git a/src/regress/lib/libcrypto/sha256/Makefile b/src/regress/lib/libcrypto/sha256/Makefile index 7c4bdc1035..b97b9926de 100644 --- a/src/regress/lib/libcrypto/sha256/Makefile +++ b/src/regress/lib/libcrypto/sha256/Makefile | |||
@@ -1,7 +1,9 @@ | |||
1 | # $OpenBSD: Makefile,v 1.1 2014/05/30 15:38:28 jsing Exp $ | 1 | # $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:46 miod Exp $ |
2 | 2 | ||
3 | PROG= sha256test | 3 | PROG= sha256test |
4 | LDADD= -lcrypto | 4 | LDADD= -lcrypto |
5 | DPADD= ${LIBCRYPTO} | 5 | DPADD= ${LIBCRYPTO} |
6 | WARNINGS= Yes | ||
7 | CFLAGS+= -Werror | ||
6 | 8 | ||
7 | .include <bsd.regress.mk> | 9 | .include <bsd.regress.mk> |
diff --git a/src/regress/lib/libcrypto/sha512/Makefile b/src/regress/lib/libcrypto/sha512/Makefile index 176da35c2d..31658f9f07 100644 --- a/src/regress/lib/libcrypto/sha512/Makefile +++ b/src/regress/lib/libcrypto/sha512/Makefile | |||
@@ -1,7 +1,9 @@ | |||
1 | # $OpenBSD: Makefile,v 1.1 2014/05/30 15:38:28 jsing Exp $ | 1 | # $OpenBSD: Makefile,v 1.2 2014/06/01 11:11:46 miod Exp $ |
2 | 2 | ||
3 | PROG= sha512test | 3 | PROG= sha512test |
4 | LDADD= -lcrypto | 4 | LDADD= -lcrypto |
5 | DPADD= ${LIBCRYPTO} | 5 | DPADD= ${LIBCRYPTO} |
6 | WARNINGS= Yes | ||
7 | CFLAGS+= -Werror | ||
6 | 8 | ||
7 | .include <bsd.regress.mk> | 9 | .include <bsd.regress.mk> |
diff --git a/src/regress/lib/libcrypto/utf8/Makefile b/src/regress/lib/libcrypto/utf8/Makefile index 8c9f5f8a95..b5767ac204 100644 --- a/src/regress/lib/libcrypto/utf8/Makefile +++ b/src/regress/lib/libcrypto/utf8/Makefile | |||
@@ -1,9 +1,10 @@ | |||
1 | # $OpenBSD: Makefile,v 1.2 2014/05/22 03:36:23 guenther Exp $ | 1 | # $OpenBSD: Makefile,v 1.3 2014/06/01 11:11:46 miod Exp $ |
2 | 2 | ||
3 | PROG= utf8test | 3 | PROG= utf8test |
4 | CPPFLAGS+=-I${.CURDIR}/../../../../lib/libssl/src/crypto/asn1 | 4 | CPPFLAGS+=-I${.CURDIR}/../../../../lib/libssl/src/crypto/asn1 |
5 | LDADD= -lcrypto | 5 | LDADD= -lcrypto |
6 | DPADD= ${LIBCRYPTO} | 6 | DPADD= ${LIBCRYPTO} |
7 | WARNINGS=Yes | 7 | WARNINGS=Yes |
8 | CFLAGS+= -Werror | ||
8 | 9 | ||
9 | .include <bsd.regress.mk> | 10 | .include <bsd.regress.mk> |