1{- use File::Spec::Functions; 2 our $ex_inc = $withargs{fuzzer_include} && 3 (file_name_is_absolute($withargs{fuzzer_include}) ? 4 $withargs{fuzzer_include} : catdir(updir(), $withargs{fuzzer_include})); 5 our $ex_lib = $withargs{fuzzer_lib} && 6 (file_name_is_absolute($withargs{fuzzer_lib}) ? 7 $withargs{fuzzer_lib} : catfile(updir(), $withargs{fuzzer_lib})); 8 "" 9-} 10 11IF[{- !$disabled{"fuzz-afl"} || !$disabled{"fuzz-libfuzzer"} -}] 12 PROGRAMS{noinst}=asn1 asn1parse bignum bndiv client conf crl server smime 13 PROGRAMS{noinst}=punycode pem decoder hashtable acert 14 PROGRAMS{noinst}=v3name 15 PROGRAMS{noinst}=provider 16 17 IF[{- !$disabled{"cmp"} -}] 18 PROGRAMS{noinst}=cmp 19 ENDIF 20 21 IF[{- !$disabled{"cms"} -}] 22 PROGRAMS{noinst}=cms 23 ENDIF 24 25 IF[{- !$disabled{"ct"} -}] 26 PROGRAMS{noinst}=ct 27 ENDIF 28 29 IF[{- !$disabled{"ocsp"} -}] 30 PROGRAMS{noinst}=x509 31 ENDIF 32 33 IF[{- !$disabled{"quic"} -}] 34 PROGRAMS{noinst}=quic-client quic-srtm quic-lcidm quic-rcidm 35 ENDIF 36 37 IF[{- !$disabled{"dtls"} -}] 38 PROGRAMS{noinst}=dtlsclient dtlsserver 39 ENDIF 40 41 SOURCE[asn1]=asn1.c driver.c fuzz_rand.c 42 INCLUDE[asn1]=../include {- $ex_inc -} 43 DEPEND[asn1]=../libcrypto ../libssl {- $ex_lib -} 44 45 SOURCE[asn1parse]=asn1parse.c driver.c 46 INCLUDE[asn1parse]=../include {- $ex_inc -} 47 DEPEND[asn1parse]=../libcrypto {- $ex_lib -} 48 49 SOURCE[bignum]=bignum.c driver.c 50 INCLUDE[bignum]=../include {- $ex_inc -} 51 DEPEND[bignum]=../libcrypto {- $ex_lib -} 52 53 SOURCE[bndiv]=bndiv.c driver.c 54 INCLUDE[bndiv]=../include {- $ex_inc -} 55 DEPEND[bndiv]=../libcrypto {- $ex_lib -} 56 57 SOURCE[client]=client.c driver.c fuzz_rand.c 58 INCLUDE[client]=../include {- $ex_inc -} 59 DEPEND[client]=../libcrypto ../libssl {- $ex_lib -} 60 61 SOURCE[cmp]=cmp.c driver.c fuzz_rand.c 62 INCLUDE[cmp]=../include {- $ex_inc -} 63 DEPEND[cmp]=../libcrypto {- $ex_lib -} 64 65 SOURCE[cms]=cms.c driver.c 66 INCLUDE[cms]=../include {- $ex_inc -} 67 DEPEND[cms]=../libcrypto {- $ex_lib -} 68 69 SOURCE[conf]=conf.c driver.c 70 INCLUDE[conf]=../include {- $ex_inc -} 71 DEPEND[conf]=../libcrypto {- $ex_lib -} 72 73 SOURCE[crl]=crl.c driver.c 74 INCLUDE[crl]=../include {- $ex_inc -} 75 DEPEND[crl]=../libcrypto {- $ex_lib -} 76 77 SOURCE[ct]=ct.c driver.c 78 INCLUDE[ct]=../include {- $ex_inc -} 79 DEPEND[ct]=../libcrypto {- $ex_lib -} 80 81 SOURCE[dtlsclient]=dtlsclient.c driver.c fuzz_rand.c 82 INCLUDE[dtlsclient]=../include {- $ex_inc -} 83 DEPEND[dtlsclient]=../libcrypto ../libssl {- $ex_lib -} 84 85 SOURCE[dtlsserver]=dtlsserver.c driver.c fuzz_rand.c 86 INCLUDE[dtlsserver]=../include {- $ex_inc -} 87 DEPEND[dtlsserver]=../libcrypto ../libssl {- $ex_lib -} 88 89 SOURCE[pem]=pem.c driver.c 90 INCLUDE[pem]=../include {- $ex_inc -} 91 DEPEND[pem]=../libcrypto.a {- $ex_lib -} 92 93 SOURCE[decoder]=decoder.c driver.c fuzz_rand.c 94 INCLUDE[decoder]=../include {- $ex_inc -} 95 DEPEND[decoder]=../libcrypto {- $ex_lib -} 96 97 SOURCE[hashtable]=hashtable.c driver.c 98 INCLUDE[hashtable]=../include {- $ex_inc -} 99 DEPEND[hashtable]=../libcrypto {- $ex_lib -} 100 101 SOURCE[acert]=acert.c driver.c 102 INCLUDE[acert]=../include {- $ex_inc -} 103 DEPEND[acert]=../libcrypto {- $ex_lib -} 104 105 SOURCE[punycode]=punycode.c driver.c 106 INCLUDE[punycode]=../include {- $ex_inc -} 107 DEPEND[punycode]=../libcrypto.a {- $ex_lib -} 108 109 SOURCE[smime]=smime.c driver.c 110 INCLUDE[smime]=../include {- $ex_inc -} 111 DEPEND[smime]=../libcrypto ../libssl {- $ex_lib -} 112 113 SOURCE[v3name]=v3name.c driver.c 114 INCLUDE[v3name]=../include {- $ex_inc -} 115 DEPEND[v3name]=../libcrypto.a {- $ex_lib -} 116 117 SOURCE[quic-client]=quic-client.c driver.c fuzz_rand.c 118 INCLUDE[quic-client]=../include {- $ex_inc -} 119 DEPEND[quic-client]=../libcrypto.a ../libssl.a {- $ex_lib -} 120 121 SOURCE[quic-srtm]=quic-srtm.c driver.c fuzz_rand.c 122 INCLUDE[quic-srtm]=../include {- $ex_inc -} 123 DEPEND[quic-srtm]=../libcrypto.a ../libssl.a {- $ex_lib -} 124 125 SOURCE[quic-lcidm]=quic-lcidm.c driver.c fuzz_rand.c 126 INCLUDE[quic-lcidm]=../include {- $ex_inc -} 127 DEPEND[quic-lcidm]=../libcrypto.a ../libssl.a {- $ex_lib -} 128 129 SOURCE[quic-rcidm]=quic-rcidm.c driver.c fuzz_rand.c 130 INCLUDE[quic-rcidm]=../include {- $ex_inc -} 131 DEPEND[quic-rcidm]=../libcrypto.a ../libssl.a {- $ex_lib -} 132 133 SOURCE[server]=server.c driver.c fuzz_rand.c 134 INCLUDE[server]=../include {- $ex_inc -} 135 DEPEND[server]=../libcrypto ../libssl {- $ex_lib -} 136 137 SOURCE[x509]=x509.c driver.c fuzz_rand.c 138 INCLUDE[x509]=../include {- $ex_inc -} 139 DEPEND[x509]=../libcrypto {- $ex_lib -} 140 141 SOURCE[provider]=provider.c driver.c 142 INCLUDE[provider]=../include {- $ex_inc -} 143 DEPEND[provider]=../libcrypto {- $ex_lib -} 144ENDIF 145 146IF[{- !$disabled{tests} -}] 147 PROGRAMS{noinst}=asn1-test asn1parse-test bignum-test bndiv-test client-test conf-test crl-test server-test smime-test 148 PROGRAMS{noinst}=punycode-test pem-test decoder-test hashtable-test acert-test 149 PROGRAMS{noinst}=v3name-test 150 PROGRAMS{noinst}=provider-test 151 152 IF[{- !$disabled{"cmp"} -}] 153 PROGRAMS{noinst}=cmp-test 154 ENDIF 155 156 IF[{- !$disabled{"cms"} -}] 157 PROGRAMS{noinst}=cms-test 158 ENDIF 159 160 IF[{- !$disabled{"ct"} -}] 161 PROGRAMS{noinst}=ct-test 162 ENDIF 163 164 IF[{- !$disabled{"ocsp"} -}] 165 PROGRAMS{noinst}=x509-test 166 ENDIF 167 168 IF[{- !$disabled{"quic"} -}] 169 PROGRAMS{noinst}=quic-client-test quic-srtm-test quic-lcidm-test 170 PROGRAMS{noinst}=quic-rcidm-test 171 ENDIF 172 173 IF[{- !$disabled{"dtls"} -}] 174 PROGRAMS{noinst}=dtlsclient-test dtlsserver-test 175 ENDIF 176 177 SOURCE[asn1-test]=asn1.c test-corpus.c fuzz_rand.c 178 INCLUDE[asn1-test]=../include 179 DEPEND[asn1-test]=../libcrypto ../libssl 180 181 SOURCE[asn1parse-test]=asn1parse.c test-corpus.c 182 INCLUDE[asn1parse-test]=../include 183 DEPEND[asn1parse-test]=../libcrypto 184 185 SOURCE[bignum-test]=bignum.c test-corpus.c 186 INCLUDE[bignum-test]=../include 187 DEPEND[bignum-test]=../libcrypto 188 189 SOURCE[bndiv-test]=bndiv.c test-corpus.c 190 INCLUDE[bndiv-test]=../include 191 DEPEND[bndiv-test]=../libcrypto 192 193 SOURCE[client-test]=client.c test-corpus.c fuzz_rand.c 194 INCLUDE[client-test]=../include 195 DEPEND[client-test]=../libcrypto ../libssl 196 197 SOURCE[cmp-test]=cmp.c test-corpus.c fuzz_rand.c 198 INCLUDE[cmp-test]=../include 199 DEPEND[cmp-test]=../libcrypto.a 200 # referring to static lib allows using non-exported functions 201 202 SOURCE[cms-test]=cms.c test-corpus.c 203 INCLUDE[cms-test]=../include 204 DEPEND[cms-test]=../libcrypto 205 206 SOURCE[conf-test]=conf.c test-corpus.c 207 INCLUDE[conf-test]=../include 208 DEPEND[conf-test]=../libcrypto 209 210 SOURCE[crl-test]=crl.c test-corpus.c 211 INCLUDE[crl-test]=../include 212 DEPEND[crl-test]=../libcrypto 213 214 SOURCE[ct-test]=ct.c test-corpus.c 215 INCLUDE[ct-test]=../include 216 DEPEND[ct-test]=../libcrypto 217 218 SOURCE[dtlsclient-test]=dtlsclient.c test-corpus.c fuzz_rand.c 219 INCLUDE[dtlsclient-test]=../include 220 DEPEND[dtlsclient-test]=../libcrypto ../libssl 221 222 SOURCE[dtlsserver-test]=dtlsserver.c test-corpus.c fuzz_rand.c 223 INCLUDE[dtlsserver-test]=../include 224 DEPEND[dtlsserver-test]=../libcrypto ../libssl 225 226 SOURCE[pem-test]=pem.c test-corpus.c 227 INCLUDE[pem-test]=../include 228 DEPEND[pem-test]=../libcrypto.a 229 230 SOURCE[decoder-test]=decoder.c test-corpus.c fuzz_rand.c 231 INCLUDE[decoder-test]=../include 232 DEPEND[decoder-test]=../libcrypto 233 234 SOURCE[hashtable-test]=hashtable.c test-corpus.c fuzz_rand.c 235 INCLUDE[hashtable-test]=../include 236 DEPEND[hashtable-test]=../libcrypto.a 237 238 SOURCE[acert-test]=acert.c test-corpus.c 239 INCLUDE[acert-test]=../include 240 DEPEND[acert-test]=../libcrypto 241 242 SOURCE[punycode-test]=punycode.c test-corpus.c 243 INCLUDE[punycode-test]=../include 244 DEPEND[punycode-test]=../libcrypto.a 245 246 SOURCE[smime-test]=smime.c test-corpus.c 247 INCLUDE[smime-test]=../include 248 DEPEND[smime-test]=../libcrypto ../libssl 249 250 SOURCE[v3name-test]=v3name.c test-corpus.c 251 INCLUDE[v3name-test]=../include 252 DEPEND[v3name-test]=../libcrypto.a 253 254 SOURCE[quic-client-test]=quic-client.c test-corpus.c fuzz_rand.c 255 INCLUDE[quic-client-test]=../include 256 DEPEND[quic-client-test]=../libcrypto.a ../libssl.a 257 258 SOURCE[quic-srtm-test]=quic-srtm.c test-corpus.c fuzz_rand.c 259 INCLUDE[quic-srtm-test]=../include 260 DEPEND[quic-srtm-test]=../libcrypto.a ../libssl.a 261 262 SOURCE[quic-lcidm-test]=quic-lcidm.c test-corpus.c fuzz_rand.c 263 INCLUDE[quic-lcidm-test]=../include 264 DEPEND[quic-lcidm-test]=../libcrypto.a ../libssl.a 265 266 SOURCE[quic-rcidm-test]=quic-rcidm.c test-corpus.c fuzz_rand.c 267 INCLUDE[quic-rcidm-test]=../include 268 DEPEND[quic-rcidm-test]=../libcrypto.a ../libssl.a 269 270 SOURCE[server-test]=server.c test-corpus.c fuzz_rand.c 271 INCLUDE[server-test]=../include 272 DEPEND[server-test]=../libcrypto ../libssl 273 274 SOURCE[x509-test]=x509.c test-corpus.c fuzz_rand.c 275 INCLUDE[x509-test]=../include 276 DEPEND[x509-test]=../libcrypto 277 278 SOURCE[provider-test]=provider.c test-corpus.c 279 INCLUDE[provider-test]=../include 280 DEPEND[provider-test]=../libcrypto 281ENDIF 282