asn1parse: create the out bio during init, free it during cleanup
[openssl.git] / fuzz / build.info
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
11 IF[{- !$disabled{"fuzz-afl"} || !$disabled{"fuzz-libfuzzer"} -}]
12   PROGRAMS_NO_INST=asn1 asn1parse bignum bndiv conf crl server x509
13
14   IF[{- !$disabled{"cms"} -}]
15     PROGRAMS_NO_INST=cms
16   ENDIF
17
18   IF[{- !$disabled{"ct"} -}]
19     PROGRAMS_NO_INST=ct
20   ENDIF
21
22   SOURCE[asn1]=asn1.c driver.c
23   INCLUDE[asn1]=../include {- $ex_inc -}
24   DEPEND[asn1]=../libcrypto {- $ex_lib -}
25
26   SOURCE[asn1parse]=asn1parse.c driver.c
27   INCLUDE[asn1parse]=../include {- $ex_inc -}
28   DEPEND[asn1parse]=../libcrypto {- $ex_lib -}
29
30   SOURCE[bignum]=bignum.c driver.c
31   INCLUDE[bignum]=../include {- $ex_inc -}
32   DEPEND[bignum]=../libcrypto {- $ex_lib -}
33
34   SOURCE[bndiv]=bndiv.c driver.c
35   INCLUDE[bndiv]=../include {- $ex_inc -}
36   DEPEND[bndiv]=../libcrypto {- $ex_lib -}
37
38   SOURCE[cms]=cms.c driver.c
39   INCLUDE[cms]=../include {- $ex_inc -}
40   DEPEND[cms]=../libcrypto {- $ex_lib -}
41
42   SOURCE[conf]=conf.c driver.c
43   INCLUDE[conf]=../include {- $ex_inc -}
44   DEPEND[conf]=../libcrypto {- $ex_lib -}
45
46   SOURCE[crl]=crl.c driver.c
47   INCLUDE[crl]=../include {- $ex_inc -}
48   DEPEND[crl]=../libcrypto {- $ex_lib -}
49
50   SOURCE[ct]=ct.c driver.c
51   INCLUDE[ct]=../include {- $ex_inc -}
52   DEPEND[ct]=../libcrypto {- $ex_lib -}
53
54   SOURCE[server]=server.c driver.c
55   INCLUDE[server]=../include {- $ex_inc -}
56   DEPEND[server]=../libcrypto ../libssl {- $ex_lib -}
57
58   SOURCE[x509]=x509.c driver.c
59   INCLUDE[x509]=../include {- $ex_inc -}
60   DEPEND[x509]=../libcrypto {- $ex_lib -}
61 ENDIF
62
63 IF[{- !$disabled{tests} -}]
64   PROGRAMS_NO_INST=asn1-test asn1parse-test bignum-test bndiv-test conf-test crl-test server-test x509-test
65
66   IF[{- !$disabled{"cms"} -}]
67     PROGRAMS_NO_INST=cms-test
68   ENDIF
69
70   IF[{- !$disabled{"ct"} -}]
71     PROGRAMS_NO_INST=ct-test
72   ENDIF
73
74   SOURCE[asn1-test]=asn1.c test-corpus.c
75   INCLUDE[asn1-test]=../include
76   DEPEND[asn1-test]=../libcrypto
77
78   SOURCE[asn1parse-test]=asn1parse.c test-corpus.c
79   INCLUDE[asn1parse-test]=../include
80   DEPEND[asn1parse-test]=../libcrypto
81
82   SOURCE[bignum-test]=bignum.c test-corpus.c
83   INCLUDE[bignum-test]=../include
84   DEPEND[bignum-test]=../libcrypto
85
86   SOURCE[bndiv-test]=bndiv.c test-corpus.c
87   INCLUDE[bndiv-test]=../include
88   DEPEND[bndiv-test]=../libcrypto
89
90   SOURCE[cms-test]=cms.c test-corpus.c
91   INCLUDE[cms-test]=../include
92   DEPEND[cms-test]=../libcrypto
93
94   SOURCE[conf-test]=conf.c test-corpus.c
95   INCLUDE[conf-test]=../include
96   DEPEND[conf-test]=../libcrypto
97
98   SOURCE[crl-test]=crl.c test-corpus.c
99   INCLUDE[crl-test]=../include
100   DEPEND[crl-test]=../libcrypto
101
102   SOURCE[ct-test]=ct.c test-corpus.c
103   INCLUDE[ct-test]=../include
104   DEPEND[ct-test]=../libcrypto
105
106   SOURCE[server-test]=server.c test-corpus.c
107   INCLUDE[server-test]=../include
108   DEPEND[server-test]=../libcrypto ../libssl
109
110   SOURCE[x509-test]=x509.c test-corpus.c
111   INCLUDE[x509-test]=../include
112   DEPEND[x509-test]=../libcrypto
113 ENDIF