mirror of https://github.com/PurpleI2P/i2pd.git
I2P: End-to-End encrypted and anonymous Internet
https://i2pd.website/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.0 KiB
55 lines
1.0 KiB
1 year ago
|
|
||
|
include_directories(
|
||
|
../libi2pd
|
||
|
${Boost_INCLUDE_DIRS}
|
||
|
${OPENSSL_INCLUDE_DIR}
|
||
|
)
|
||
|
|
||
|
|
||
|
set(LIBS
|
||
|
libi2pd
|
||
|
${Boost_LIBRARIES}
|
||
|
OpenSSL::SSL
|
||
|
OpenSSL::Crypto
|
||
|
ZLIB::ZLIB
|
||
|
Threads::Threads
|
||
|
${CMAKE_REQUIRED_LIBRARIES}
|
||
|
)
|
||
|
|
||
|
add_library(fuzzing OBJECT
|
||
|
fuzzing_impl.cc
|
||
|
fuzzing_throttle.cc
|
||
|
fuzzing.h)
|
||
|
|
||
|
link_libraries(fuzzing)
|
||
|
|
||
|
set(FUZZERS
|
||
|
Base32ToByteStream
|
||
|
Base64ToByteStream
|
||
|
BlindedPublicKey
|
||
|
ByteStreamToBase32
|
||
|
ByteStreamToBase64
|
||
|
HandleI2NPMessage
|
||
|
IdentityEx
|
||
|
LeaseSet
|
||
|
LeaseSet2
|
||
|
NetDb-AddRouterInfo
|
||
|
NetDb-HandleDatabaseSearchReplyMsg
|
||
|
NetDb-HandleDatabaseStoreMsg
|
||
|
NetDb-HandleDatabaseLookupMsg
|
||
|
NetDb-HandleNTCP2RouterInfoMsg
|
||
|
NetDb-PostI2NPMsg
|
||
|
RouterContext-DecryptTunnelBuildRecord
|
||
|
RouterContext-ProcessDeliveryStatusMessage
|
||
|
RouterContext-ProcessGarlicMessage
|
||
|
)
|
||
|
|
||
|
string(REPLACE "fuzzer-no-link" "fuzzer" _LINK_FLAGS "${_SANITIZE_FLAGS}")
|
||
|
|
||
|
foreach(F IN LISTS FUZZERS)
|
||
|
add_executable(fuzz-${F} fuzz-${F}.cc)
|
||
|
target_link_libraries(fuzz-${F} ${LIBS})
|
||
|
target_link_options(fuzz-${F} PRIVATE ${_LINK_FLAGS})
|
||
|
endforeach()
|
||
|
|