added error message in case of incorrect padding
[strongswan.git] / src / libstrongswan / Makefile.am
1 lib_LTLIBRARIES = libstrongswan.la
2
3 if USE_INTEGRITY_TEST
4   libstrongswan_la_SOURCES = \
5   fips/fips_canister_start.c \
6   fips/fips.c fips/fips.h
7 else
8   libstrongswan_la_SOURCES =
9 endif
10
11 libstrongswan_la_SOURCES += \
12 credential_store.h \
13 library.c library.h \
14 chunk.c chunk.h \
15 debug.c debug.h \
16 enum.c enum.h \
17 printf_hook.c printf_hook.h \
18 asn1/asn1.c asn1/asn1.h \
19 asn1/oid.c asn1/oid.h \
20 asn1/pem.c asn1/pem.h \
21 asn1/ttodata.c asn1/ttodata.h \
22 crypto/ac.c crypto/ac.h \
23 crypto/ca.c crypto/ca.h \
24 crypto/certinfo.c crypto/certinfo.h \
25 crypto/crl.c crypto/crl.h \
26 crypto/crypters/crypter.c crypto/crypters/crypter.h \
27 crypto/crypters/aes_cbc_crypter.c crypto/crypters/aes_cbc_crypter.h \
28 crypto/crypters/des_crypter.c crypto/crypters/des_crypter.h \
29 crypto/diffie_hellman.c crypto/diffie_hellman.h \
30 crypto/hashers/hasher.h crypto/hashers/hasher.c \
31 crypto/hashers/sha1_hasher.c crypto/hashers/sha1_hasher.h \
32 crypto/hashers/sha2_hasher.c crypto/hashers/sha2_hasher.h \
33 crypto/hashers/md5_hasher.c  crypto/hashers/md5_hasher.h \
34 crypto/hmac.c crypto/hmac.h \
35 crypto/ietf_attr_list.c crypto/ietf_attr_list.h \
36 crypto/ocsp.c crypto/ocsp.h \
37 crypto/pkcs7.c crypto/pkcs7.h \
38 crypto/prfs/fips_prf.c crypto/prfs/fips_prf.h \
39 crypto/prfs/hmac_prf.c crypto/prfs/hmac_prf.h \
40 crypto/prfs/prf.c crypto/prfs/prf.h \
41 crypto/prf_plus.h crypto/prf_plus.c \
42 crypto/rsa/rsa_private_key.c crypto/rsa/rsa_private_key.h \
43 crypto/rsa/rsa_public_key.h  crypto/rsa/rsa_public_key.c \
44 crypto/signers/hmac_signer.c crypto/signers/hmac_signer.h \
45 crypto/signers/signer.c crypto/signers/signer.h \
46 crypto/x509.c crypto/x509.h \
47 utils/fetcher.c utils/fetcher.h \
48 utils/host.c utils/host.h \
49 utils/identification.c utils/identification.h \
50 utils/iterator.h \
51 utils/leak_detective.c utils/leak_detective.h \
52 utils/lexparser.c utils/lexparser.h \
53 utils/linked_list.c utils/linked_list.h \
54 utils/enumerator.c utils/enumerator.h \
55 utils/optionsfrom.c utils/optionsfrom.h \
56 utils/randomizer.c utils/randomizer.h
57
58 if USE_INTEGRITY_TEST
59   libstrongswan_la_SOURCES += \
60   fips/fips_canister_end.c
61 endif
62
63 libstrongswan_la_LIBADD = -lgmp -lpthread
64
65 INCLUDES = -I$(top_srcdir)/src/libstrongswan
66
67 if USE_LEAK_DETECTIVE
68   libstrongswan_la_LIBADD += -ldl
69   AM_CFLAGS = -DLEAK_DETECTIVE
70 endif
71
72 if USE_LIBCURL
73   libstrongswan_la_LIBADD += -lcurl
74 endif
75
76 if USE_LIBLDAP
77   libstrongswan_la_LIBADD += -lldap -llber
78 endif
79
80 EXTRA_DIST = asn1/oid.txt asn1/oid.pl
81 BUILT_SOURCES = asn1/oid.c asn1/oid.h
82 MAINTAINERCLEANFILES = asn1/oid.c asn1/oid.h
83
84 asn1/oid.c :    asn1/oid.txt asn1/oid.pl
85                 cd asn1 && $(PERL) oid.pl
86
87 asn1/oid.h :    asn1/oid.txt asn1/oid.pl
88                 cd asn1 && $(PERL) oid.pl
89
90 if USE_INTEGRITY_TEST
91 # build fips_signer which in turn builds fips_signature.h
92 #########################################################
93 noinst_PROGRAMS = fips_signer
94 fips_signer_SOURCES = fips/fips_signer.c
95 fips_signer_LDADD = libstrongswan.la
96
97 BUILT_SOURCES += fips_signature.h
98 CLEANFILES = fips_signature.h fips_signer
99
100 fips_signature.h : fips_signer
101                    ./fips_signer
102 endif