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.
 
 
 
 
 
 

31 lines
764 B

  1. include_directories(../include)
  2. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-missing-prototypes")
  3. macro(fuzzer name)
  4. add_executable(${name} ${name}.cc)
  5. add_dependencies(${name} global_target)
  6. target_link_libraries(${name} crypto ${ARGN})
  7. if(LIBFUZZER_FROM_DEPS)
  8. set_target_properties(${name} PROPERTIES LINK_FLAGS "-fsanitize=fuzzer-no-link")
  9. target_link_libraries(${name} Fuzzer)
  10. else()
  11. set_target_properties(${name} PROPERTIES LINK_FLAGS "-fsanitize=fuzzer")
  12. endif()
  13. endmacro()
  14. fuzzer(arm_cpuinfo)
  15. fuzzer(bn_mod_exp)
  16. fuzzer(privkey)
  17. fuzzer(cert)
  18. fuzzer(spki)
  19. fuzzer(pkcs8)
  20. fuzzer(pkcs12)
  21. fuzzer(read_pem)
  22. fuzzer(server ssl)
  23. fuzzer(client ssl)
  24. fuzzer(dtls_server ssl)
  25. fuzzer(dtls_client ssl)
  26. fuzzer(ssl_ctx_api ssl)
  27. fuzzer(session ssl)