2016-07-09 00:13:17 +08:00
|
|
|
{- use File::Spec::Functions;
|
|
|
|
our $ex_inc = $withargs{fuzzer_include} &&
|
|
|
|
(file_name_is_absolute($withargs{fuzzer_include}) ?
|
|
|
|
$withargs{fuzzer_include} : catdir(updir(), $withargs{fuzzer_include}));
|
|
|
|
our $ex_lib = $withargs{fuzzer_lib} &&
|
|
|
|
(file_name_is_absolute($withargs{fuzzer_lib}) ?
|
|
|
|
$withargs{fuzzer_lib} : catfile(updir(), $withargs{fuzzer_lib}));
|
|
|
|
""
|
|
|
|
-}
|
2016-06-04 23:10:49 +08:00
|
|
|
|
2016-07-09 00:13:17 +08:00
|
|
|
IF[{- !$disabled{"fuzz-afl"} || !$disabled{"fuzz-libfuzzer"} -}]
|
2022-12-19 03:54:15 +08:00
|
|
|
PROGRAMS{noinst}=asn1 asn1parse bignum bndiv client conf crl server smime
|
2023-01-12 04:14:35 +08:00
|
|
|
PROGRAMS{noinst}=punycode pem decoder
|
2023-02-13 10:49:23 +08:00
|
|
|
PROGRAMS{noinst}=v3name
|
2016-07-19 03:59:30 +08:00
|
|
|
|
2020-03-24 17:33:16 +08:00
|
|
|
IF[{- !$disabled{"cmp"} -}]
|
|
|
|
PROGRAMS{noinst}=cmp
|
|
|
|
ENDIF
|
|
|
|
|
2016-07-19 03:59:30 +08:00
|
|
|
IF[{- !$disabled{"cms"} -}]
|
2018-11-07 18:02:06 +08:00
|
|
|
PROGRAMS{noinst}=cms
|
2016-07-19 03:59:30 +08:00
|
|
|
ENDIF
|
2016-06-04 23:10:49 +08:00
|
|
|
|
2016-07-22 22:49:03 +08:00
|
|
|
IF[{- !$disabled{"ct"} -}]
|
2018-11-07 18:02:06 +08:00
|
|
|
PROGRAMS{noinst}=ct
|
2016-07-22 22:49:03 +08:00
|
|
|
ENDIF
|
|
|
|
|
2022-12-19 03:54:15 +08:00
|
|
|
IF[{- !$disabled{"ocsp"} -}]
|
|
|
|
PROGRAMS{noinst}=x509
|
|
|
|
ENDIF
|
|
|
|
|
2022-11-23 21:24:13 +08:00
|
|
|
IF[{- !$disabled{"quic"} -}]
|
2023-11-07 23:24:17 +08:00
|
|
|
PROGRAMS{noinst}=quic-client quic-srtm quic-lcidm quic-rcidm
|
2022-11-23 21:24:13 +08:00
|
|
|
ENDIF
|
|
|
|
|
2020-12-10 10:04:58 +08:00
|
|
|
SOURCE[asn1]=asn1.c driver.c fuzz_rand.c
|
2016-07-09 00:13:17 +08:00
|
|
|
INCLUDE[asn1]=../include {- $ex_inc -}
|
2017-11-02 01:37:04 +08:00
|
|
|
DEPEND[asn1]=../libcrypto ../libssl {- $ex_lib -}
|
2016-06-04 23:10:49 +08:00
|
|
|
|
2016-07-09 00:13:17 +08:00
|
|
|
SOURCE[asn1parse]=asn1parse.c driver.c
|
|
|
|
INCLUDE[asn1parse]=../include {- $ex_inc -}
|
|
|
|
DEPEND[asn1parse]=../libcrypto {- $ex_lib -}
|
2016-06-04 23:10:49 +08:00
|
|
|
|
2016-07-09 00:13:17 +08:00
|
|
|
SOURCE[bignum]=bignum.c driver.c
|
|
|
|
INCLUDE[bignum]=../include {- $ex_inc -}
|
|
|
|
DEPEND[bignum]=../libcrypto {- $ex_lib -}
|
2016-06-04 23:10:49 +08:00
|
|
|
|
2016-07-09 00:13:17 +08:00
|
|
|
SOURCE[bndiv]=bndiv.c driver.c
|
|
|
|
INCLUDE[bndiv]=../include {- $ex_inc -}
|
|
|
|
DEPEND[bndiv]=../libcrypto {- $ex_lib -}
|
2016-06-04 23:10:49 +08:00
|
|
|
|
2020-12-10 10:04:58 +08:00
|
|
|
SOURCE[client]=client.c driver.c fuzz_rand.c
|
2016-12-08 06:12:04 +08:00
|
|
|
INCLUDE[client]=../include {- $ex_inc -}
|
|
|
|
DEPEND[client]=../libcrypto ../libssl {- $ex_lib -}
|
|
|
|
|
2020-12-10 10:04:58 +08:00
|
|
|
SOURCE[cmp]=cmp.c driver.c fuzz_rand.c
|
2020-03-24 17:33:16 +08:00
|
|
|
INCLUDE[cmp]=../include {- $ex_inc -}
|
|
|
|
DEPEND[cmp]=../libcrypto {- $ex_lib -}
|
|
|
|
|
2016-07-09 00:13:17 +08:00
|
|
|
SOURCE[cms]=cms.c driver.c
|
|
|
|
INCLUDE[cms]=../include {- $ex_inc -}
|
|
|
|
DEPEND[cms]=../libcrypto {- $ex_lib -}
|
2016-06-04 23:10:49 +08:00
|
|
|
|
2016-07-09 00:13:17 +08:00
|
|
|
SOURCE[conf]=conf.c driver.c
|
|
|
|
INCLUDE[conf]=../include {- $ex_inc -}
|
|
|
|
DEPEND[conf]=../libcrypto {- $ex_lib -}
|
2016-07-01 22:42:15 +08:00
|
|
|
|
2016-07-09 00:13:17 +08:00
|
|
|
SOURCE[crl]=crl.c driver.c
|
|
|
|
INCLUDE[crl]=../include {- $ex_inc -}
|
|
|
|
DEPEND[crl]=../libcrypto {- $ex_lib -}
|
2016-06-04 23:10:49 +08:00
|
|
|
|
2016-07-09 00:13:17 +08:00
|
|
|
SOURCE[ct]=ct.c driver.c
|
|
|
|
INCLUDE[ct]=../include {- $ex_inc -}
|
|
|
|
DEPEND[ct]=../libcrypto {- $ex_lib -}
|
2016-07-01 22:42:15 +08:00
|
|
|
|
2022-12-14 05:10:47 +08:00
|
|
|
SOURCE[pem]=pem.c driver.c
|
|
|
|
INCLUDE[pem]=../include {- $ex_inc -}
|
|
|
|
DEPEND[pem]=../libcrypto.a {- $ex_lib -}
|
|
|
|
|
2023-01-12 04:14:35 +08:00
|
|
|
SOURCE[decoder]=decoder.c driver.c fuzz_rand.c
|
|
|
|
INCLUDE[decoder]=../include {- $ex_inc -}
|
|
|
|
DEPEND[decoder]=../libcrypto {- $ex_lib -}
|
|
|
|
|
2022-11-04 05:43:38 +08:00
|
|
|
SOURCE[punycode]=punycode.c driver.c
|
|
|
|
INCLUDE[punycode]=../include {- $ex_inc -}
|
|
|
|
DEPEND[punycode]=../libcrypto.a {- $ex_lib -}
|
|
|
|
|
2023-02-19 12:43:41 +08:00
|
|
|
SOURCE[smime]=smime.c driver.c
|
|
|
|
INCLUDE[smime]=../include {- $ex_inc -}
|
|
|
|
DEPEND[smime]=../libcrypto ../libssl {- $ex_lib -}
|
|
|
|
|
2023-02-13 10:49:23 +08:00
|
|
|
SOURCE[v3name]=v3name.c driver.c
|
|
|
|
INCLUDE[v3name]=../include {- $ex_inc -}
|
|
|
|
DEPEND[v3name]=../libcrypto.a {- $ex_lib -}
|
|
|
|
|
2022-11-23 21:24:13 +08:00
|
|
|
SOURCE[quic-client]=quic-client.c driver.c fuzz_rand.c
|
|
|
|
INCLUDE[quic-client]=../include {- $ex_inc -}
|
2023-10-16 20:10:33 +08:00
|
|
|
DEPEND[quic-client]=../libcrypto.a ../libssl.a {- $ex_lib -}
|
2022-11-23 21:24:13 +08:00
|
|
|
|
2023-11-03 19:56:29 +08:00
|
|
|
SOURCE[quic-srtm]=quic-srtm.c driver.c fuzz_rand.c
|
|
|
|
INCLUDE[quic-srtm]=../include {- $ex_inc -}
|
|
|
|
DEPEND[quic-srtm]=../libcrypto.a ../libssl.a {- $ex_lib -}
|
|
|
|
|
2023-11-04 01:16:23 +08:00
|
|
|
SOURCE[quic-lcidm]=quic-lcidm.c driver.c fuzz_rand.c
|
|
|
|
INCLUDE[quic-lcidm]=../include {- $ex_inc -}
|
|
|
|
DEPEND[quic-lcidm]=../libcrypto.a ../libssl.a {- $ex_lib -}
|
|
|
|
|
2023-11-07 23:24:17 +08:00
|
|
|
SOURCE[quic-rcidm]=quic-rcidm.c driver.c fuzz_rand.c
|
|
|
|
INCLUDE[quic-rcidm]=../include {- $ex_inc -}
|
|
|
|
DEPEND[quic-rcidm]=../libcrypto.a ../libssl.a {- $ex_lib -}
|
|
|
|
|
2020-12-10 10:04:58 +08:00
|
|
|
SOURCE[server]=server.c driver.c fuzz_rand.c
|
2016-07-09 00:13:17 +08:00
|
|
|
INCLUDE[server]=../include {- $ex_inc -}
|
|
|
|
DEPEND[server]=../libcrypto ../libssl {- $ex_lib -}
|
|
|
|
|
2020-12-10 10:04:58 +08:00
|
|
|
SOURCE[x509]=x509.c driver.c fuzz_rand.c
|
2016-07-09 00:13:17 +08:00
|
|
|
INCLUDE[x509]=../include {- $ex_inc -}
|
|
|
|
DEPEND[x509]=../libcrypto {- $ex_lib -}
|
|
|
|
ENDIF
|
|
|
|
|
|
|
|
IF[{- !$disabled{tests} -}]
|
2022-12-19 03:54:15 +08:00
|
|
|
PROGRAMS{noinst}=asn1-test asn1parse-test bignum-test bndiv-test client-test conf-test crl-test server-test smime-test
|
2023-01-12 04:14:35 +08:00
|
|
|
PROGRAMS{noinst}=punycode-test pem-test decoder-test
|
2023-02-13 10:49:23 +08:00
|
|
|
PROGRAMS{noinst}=v3name-test
|
2016-07-19 03:59:30 +08:00
|
|
|
|
2020-03-24 17:33:16 +08:00
|
|
|
IF[{- !$disabled{"cmp"} -}]
|
|
|
|
PROGRAMS{noinst}=cmp-test
|
|
|
|
ENDIF
|
|
|
|
|
2016-07-19 03:59:30 +08:00
|
|
|
IF[{- !$disabled{"cms"} -}]
|
2018-11-07 18:02:06 +08:00
|
|
|
PROGRAMS{noinst}=cms-test
|
2016-07-19 03:59:30 +08:00
|
|
|
ENDIF
|
2016-07-09 00:13:17 +08:00
|
|
|
|
2016-07-22 22:49:03 +08:00
|
|
|
IF[{- !$disabled{"ct"} -}]
|
2018-11-07 18:02:06 +08:00
|
|
|
PROGRAMS{noinst}=ct-test
|
2016-07-22 22:49:03 +08:00
|
|
|
ENDIF
|
|
|
|
|
2022-12-19 03:54:15 +08:00
|
|
|
IF[{- !$disabled{"ocsp"} -}]
|
|
|
|
PROGRAMS{noinst}=x509-test
|
|
|
|
ENDIF
|
|
|
|
|
2022-11-23 21:24:13 +08:00
|
|
|
IF[{- !$disabled{"quic"} -}]
|
2023-11-04 01:16:23 +08:00
|
|
|
PROGRAMS{noinst}=quic-client-test quic-srtm-test quic-lcidm-test
|
2023-11-07 23:24:17 +08:00
|
|
|
PROGRAMS{noinst}=quic-rcidm-test
|
2022-11-23 21:24:13 +08:00
|
|
|
ENDIF
|
|
|
|
|
2020-12-10 10:04:58 +08:00
|
|
|
SOURCE[asn1-test]=asn1.c test-corpus.c fuzz_rand.c
|
2016-07-09 00:13:17 +08:00
|
|
|
INCLUDE[asn1-test]=../include
|
2017-11-02 01:37:04 +08:00
|
|
|
DEPEND[asn1-test]=../libcrypto ../libssl
|
2016-07-09 00:13:17 +08:00
|
|
|
|
|
|
|
SOURCE[asn1parse-test]=asn1parse.c test-corpus.c
|
|
|
|
INCLUDE[asn1parse-test]=../include
|
|
|
|
DEPEND[asn1parse-test]=../libcrypto
|
|
|
|
|
|
|
|
SOURCE[bignum-test]=bignum.c test-corpus.c
|
|
|
|
INCLUDE[bignum-test]=../include
|
|
|
|
DEPEND[bignum-test]=../libcrypto
|
|
|
|
|
|
|
|
SOURCE[bndiv-test]=bndiv.c test-corpus.c
|
|
|
|
INCLUDE[bndiv-test]=../include
|
|
|
|
DEPEND[bndiv-test]=../libcrypto
|
|
|
|
|
2020-12-10 10:04:58 +08:00
|
|
|
SOURCE[client-test]=client.c test-corpus.c fuzz_rand.c
|
2016-12-08 06:12:04 +08:00
|
|
|
INCLUDE[client-test]=../include
|
|
|
|
DEPEND[client-test]=../libcrypto ../libssl
|
|
|
|
|
2020-12-10 10:04:58 +08:00
|
|
|
SOURCE[cmp-test]=cmp.c test-corpus.c fuzz_rand.c
|
2020-03-24 17:33:16 +08:00
|
|
|
INCLUDE[cmp-test]=../include
|
|
|
|
DEPEND[cmp-test]=../libcrypto.a
|
|
|
|
# referring to static lib allows using non-exported functions
|
|
|
|
|
2016-07-09 00:13:17 +08:00
|
|
|
SOURCE[cms-test]=cms.c test-corpus.c
|
|
|
|
INCLUDE[cms-test]=../include
|
|
|
|
DEPEND[cms-test]=../libcrypto
|
|
|
|
|
|
|
|
SOURCE[conf-test]=conf.c test-corpus.c
|
|
|
|
INCLUDE[conf-test]=../include
|
|
|
|
DEPEND[conf-test]=../libcrypto
|
|
|
|
|
|
|
|
SOURCE[crl-test]=crl.c test-corpus.c
|
|
|
|
INCLUDE[crl-test]=../include
|
|
|
|
DEPEND[crl-test]=../libcrypto
|
|
|
|
|
|
|
|
SOURCE[ct-test]=ct.c test-corpus.c
|
|
|
|
INCLUDE[ct-test]=../include
|
|
|
|
DEPEND[ct-test]=../libcrypto
|
|
|
|
|
2022-12-14 05:10:47 +08:00
|
|
|
SOURCE[pem-test]=pem.c test-corpus.c
|
|
|
|
INCLUDE[pem-test]=../include
|
|
|
|
DEPEND[pem-test]=../libcrypto.a
|
|
|
|
|
2023-01-12 04:14:35 +08:00
|
|
|
SOURCE[decoder-test]=decoder.c test-corpus.c fuzz_rand.c
|
|
|
|
INCLUDE[decoder-test]=../include
|
|
|
|
DEPEND[decoder-test]=../libcrypto
|
|
|
|
|
2022-11-04 05:43:38 +08:00
|
|
|
SOURCE[punycode-test]=punycode.c test-corpus.c
|
|
|
|
INCLUDE[punycode-test]=../include
|
|
|
|
DEPEND[punycode-test]=../libcrypto.a
|
|
|
|
|
2023-02-19 12:43:41 +08:00
|
|
|
SOURCE[smime-test]=smime.c test-corpus.c
|
|
|
|
INCLUDE[smime-test]=../include
|
|
|
|
DEPEND[smime-test]=../libcrypto ../libssl
|
|
|
|
|
2023-02-13 10:49:23 +08:00
|
|
|
SOURCE[v3name-test]=v3name.c test-corpus.c
|
|
|
|
INCLUDE[v3name-test]=../include
|
|
|
|
DEPEND[v3name-test]=../libcrypto.a
|
|
|
|
|
2022-11-23 21:24:13 +08:00
|
|
|
SOURCE[quic-client-test]=quic-client.c test-corpus.c fuzz_rand.c
|
|
|
|
INCLUDE[quic-client-test]=../include
|
2023-10-16 20:10:33 +08:00
|
|
|
DEPEND[quic-client-test]=../libcrypto.a ../libssl.a
|
2022-11-23 21:24:13 +08:00
|
|
|
|
2023-11-03 19:56:29 +08:00
|
|
|
SOURCE[quic-srtm-test]=quic-srtm.c test-corpus.c fuzz_rand.c
|
|
|
|
INCLUDE[quic-srtm-test]=../include
|
|
|
|
DEPEND[quic-srtm-test]=../libcrypto.a ../libssl.a
|
|
|
|
|
2023-11-04 01:16:23 +08:00
|
|
|
SOURCE[quic-lcidm-test]=quic-lcidm.c test-corpus.c fuzz_rand.c
|
|
|
|
INCLUDE[quic-lcidm-test]=../include
|
|
|
|
DEPEND[quic-lcidm-test]=../libcrypto.a ../libssl.a
|
|
|
|
|
2023-11-07 23:24:17 +08:00
|
|
|
SOURCE[quic-rcidm-test]=quic-rcidm.c test-corpus.c fuzz_rand.c
|
|
|
|
INCLUDE[quic-rcidm-test]=../include
|
|
|
|
DEPEND[quic-rcidm-test]=../libcrypto.a ../libssl.a
|
|
|
|
|
2020-12-10 10:04:58 +08:00
|
|
|
SOURCE[server-test]=server.c test-corpus.c fuzz_rand.c
|
2016-07-09 00:13:17 +08:00
|
|
|
INCLUDE[server-test]=../include
|
|
|
|
DEPEND[server-test]=../libcrypto ../libssl
|
|
|
|
|
2020-12-10 10:04:58 +08:00
|
|
|
SOURCE[x509-test]=x509.c test-corpus.c fuzz_rand.c
|
2016-07-09 00:13:17 +08:00
|
|
|
INCLUDE[x509-test]=../include
|
|
|
|
DEPEND[x509-test]=../libcrypto
|
|
|
|
ENDIF
|