find_package(libcurl REQUIRED)
-option(USE_CRYPTOPP "Cryptopp is ON" ON)
-find_package(cryptopp)
-if(CRYPTOPP_FOUND)
- MESSAGE(STATUS "${CRYPTOPP_LIBRARIES}")
- set(CRYPTO_LIBS ${CRYPTOPP_LIBRARIES})
- set(USE_NSS 0)
-else()
- MESSAGE(STATUS "Cryptopp not found using NSS instead")
- find_package(NSS REQUIRED)
- if(NSS_FOUND)
- set(USE_NSS 1)
- set(USE_CRYPTOPP 0)
- find_package(NSPR)
- if(NSPR_FOUND)
- set(CRYPTO_LIBS ${NSS_LIBRARIES} ${NSPR_LIBRARIES})
- #MESSAGE(STATUS "${CRYPTO_LIBS}")
- #MESSAGE(STATUS "${NSS_INCLUDE_DIR} ${NSPR_INCLUDE_DIR}")
- endif(NSPR_FOUND)
- endif(NSS_FOUND)
-endif(CRYPTOPP_FOUND)
+# nss or cryptopp?
+# (dropped cryptopp support for now, feel free to add it back -sage)
+find_package(NSS REQUIRED)
+if(NSS_FOUND)
+ set(USE_NSS 1)
+ find_package(NSPR)
+ if(NSPR_FOUND)
+ set(CRYPTO_LIBS ${NSS_LIBRARIES} ${NSPR_LIBRARIES})
+ #MESSAGE(STATUS "${CRYPTO_LIBS}")
+ #MESSAGE(STATUS "${NSS_INCLUDE_DIR} ${NSPR_INCLUDE_DIR}")
+ endif(NSPR_FOUND)
+endif(NSS_FOUND)
+
option(WITH_XIO "Enable XIO messaging" OFF)
if(WITH_XIO)