include.am 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. noinst_LIBRARIES += src/lib/libtor-crypt-ops.a
  2. if UNITTESTS_ENABLED
  3. noinst_LIBRARIES += src/lib/libtor-crypt-ops-testing.a
  4. endif
  5. src_lib_libtor_crypt_ops_a_SOURCES = \
  6. src/lib/crypt_ops/crypto_cipher.c \
  7. src/lib/crypt_ops/crypto_curve25519.c \
  8. src/lib/crypt_ops/crypto_dh.c \
  9. src/lib/crypt_ops/crypto_digest.c \
  10. src/lib/crypt_ops/crypto_ed25519.c \
  11. src/lib/crypt_ops/crypto_format.c \
  12. src/lib/crypt_ops/crypto_hkdf.c \
  13. src/lib/crypt_ops/crypto_init.c \
  14. src/lib/crypt_ops/crypto_ope.c \
  15. src/lib/crypt_ops/crypto_pwbox.c \
  16. src/lib/crypt_ops/crypto_rand.c \
  17. src/lib/crypt_ops/crypto_rsa.c \
  18. src/lib/crypt_ops/crypto_s2k.c \
  19. src/lib/crypt_ops/crypto_util.c \
  20. src/lib/crypt_ops/digestset.c
  21. if USE_NSS
  22. src_lib_libtor_crypt_ops_a_SOURCES += \
  23. src/lib/crypt_ops/aes_nss.c \
  24. src/lib/crypt_ops/crypto_dh_nss.c \
  25. src/lib/crypt_ops/crypto_nss_mgt.c \
  26. src/lib/crypt_ops/crypto_rsa_nss.c
  27. else
  28. src_lib_libtor_crypt_ops_a_SOURCES += \
  29. src/lib/crypt_ops/aes_openssl.c \
  30. src/lib/crypt_ops/crypto_rsa_openssl.c
  31. endif
  32. if USE_OPENSSL
  33. src_lib_libtor_crypt_ops_a_SOURCES += \
  34. src/lib/crypt_ops/crypto_dh_openssl.c \
  35. src/lib/crypt_ops/crypto_openssl_mgt.c
  36. endif
  37. src_lib_libtor_crypt_ops_a_CFLAGS = $(AM_CFLAGS) $(TOR_CFLAGS_CRYPTLIB)
  38. src_lib_libtor_crypt_ops_testing_a_SOURCES = \
  39. $(src_lib_libtor_crypt_ops_a_SOURCES)
  40. src_lib_libtor_crypt_ops_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
  41. src_lib_libtor_crypt_ops_testing_a_CFLAGS = \
  42. $(AM_CFLAGS) $(TOR_CFLAGS_CRYPTLIB) $(TEST_CFLAGS)
  43. noinst_HEADERS += \
  44. src/lib/crypt_ops/aes.h \
  45. src/lib/crypt_ops/compat_openssl.h \
  46. src/lib/crypt_ops/crypto_curve25519.h \
  47. src/lib/crypt_ops/crypto_dh.h \
  48. src/lib/crypt_ops/crypto_digest.h \
  49. src/lib/crypt_ops/crypto_ed25519.h \
  50. src/lib/crypt_ops/crypto_format.h \
  51. src/lib/crypt_ops/crypto_cipher.h \
  52. src/lib/crypt_ops/crypto_hkdf.h \
  53. src/lib/crypt_ops/crypto_init.h \
  54. src/lib/crypt_ops/crypto_nss_mgt.h \
  55. src/lib/crypt_ops/crypto_openssl_mgt.h \
  56. src/lib/crypt_ops/crypto_ope.h \
  57. src/lib/crypt_ops/crypto_pwbox.h \
  58. src/lib/crypt_ops/crypto_rand.h \
  59. src/lib/crypt_ops/crypto_rsa.h \
  60. src/lib/crypt_ops/crypto_s2k.h \
  61. src/lib/crypt_ops/crypto_util.h \
  62. src/lib/crypt_ops/digestset.h