Remove libcurl support from update_engine_sideload.

While sideloading an update from recovery we don't need nor want to
download payload from HTTP(S) URLs, only local file:// are supported.
This patch moves libcurl_http_fetcher and certificate_checker files out
of libpayload_consumer dropping the libcurl and libssl dependencies from
it and the update_engine_sideload.

Bug: 27178350
TEST=build UE for Brillo and Android. Unittests still pass and
update_engine_sideload doesn't link to libcurl.

(cherry picked from commit 14c0da88a93aa7b1aa71d5e7e923b537f0d419f3)

Change-Id: I6195fc0a8ceedfc7fd1a92bdd0acc55ace2c1232
17 files changed
tree: b34221201cd81c4ebedc6bfcb5b1b0d54c6e32b8
  1. binder_bindings/
  2. client_library/
  3. common/
  4. dbus_bindings/
  5. include/
  6. init/
  7. payload_consumer/
  8. payload_generator/
  9. sample_images/
  10. scripts/
  11. update_manager/
  12. update_payload_key/
  13. weaved/
  14. .gitignore
  15. Android.mk
  16. binder_service_android.cc
  17. binder_service_android.h
  18. binder_service_brillo.cc
  19. binder_service_brillo.h
  20. boot_control_android.cc
  21. boot_control_android.h
  22. boot_control_chromeos.cc
  23. boot_control_chromeos.h
  24. boot_control_chromeos_unittest.cc
  25. certificate_checker.cc
  26. certificate_checker.h
  27. certificate_checker_unittest.cc
  28. chrome_browser_proxy_resolver.cc
  29. chrome_browser_proxy_resolver.h
  30. chrome_browser_proxy_resolver_unittest.cc
  31. common_service.cc
  32. common_service.h
  33. common_service_unittest.cc
  34. connection_manager.cc
  35. connection_manager.h
  36. connection_manager_interface.h
  37. connection_manager_unittest.cc
  38. daemon.cc
  39. daemon.h
  40. daemon_state_android.cc
  41. daemon_state_android.h
  42. daemon_state_interface.h
  43. dbus_service.cc
  44. dbus_service.h
  45. dbus_test_utils.h
  46. fake_file_writer.h
  47. fake_p2p_manager.h
  48. fake_p2p_manager_configuration.h
  49. fake_shill_proxy.cc
  50. fake_shill_proxy.h
  51. fake_system_state.cc
  52. fake_system_state.h
  53. generate_pc_file.sh
  54. hardware_android.cc
  55. hardware_android.h
  56. hardware_chromeos.cc
  57. hardware_chromeos.h
  58. image_properties.h
  59. image_properties_android.cc
  60. image_properties_chromeos.cc
  61. libcros_proxy.cc
  62. libcros_proxy.h
  63. libcurl_http_fetcher.cc
  64. libcurl_http_fetcher.h
  65. libupdate_engine-client-test.pc.in
  66. libupdate_engine-client.pc.in
  67. local_coverage_rate
  68. main.cc
  69. metrics.cc
  70. metrics.h
  71. metrics_utils.cc
  72. metrics_utils.h
  73. metrics_utils_unittest.cc
  74. mock_certificate_checker.h
  75. mock_connection_manager.h
  76. mock_file_writer.h
  77. mock_omaha_request_params.h
  78. mock_p2p_manager.h
  79. mock_payload_state.h
  80. mock_proxy_resolver.h
  81. mock_update_attempter.h
  82. MODULE_LICENSE_APACHE2
  83. network_selector.h
  84. network_selector_android.cc
  85. network_selector_android.h
  86. network_selector_interface.h
  87. network_selector_stub.cc
  88. network_selector_stub.h
  89. NOTICE
  90. omaha_request_action.cc
  91. omaha_request_action.h
  92. omaha_request_action_unittest.cc
  93. omaha_request_params.cc
  94. omaha_request_params.h
  95. omaha_request_params_unittest.cc
  96. omaha_response.h
  97. omaha_response_handler_action.cc
  98. omaha_response_handler_action.h
  99. omaha_response_handler_action_unittest.cc
  100. OWNERS
  101. p2p_manager.cc
  102. p2p_manager.h
  103. p2p_manager_unittest.cc
  104. parcelable_update_engine_status.cc
  105. parcelable_update_engine_status.h
  106. payload_state.cc
  107. payload_state.h
  108. payload_state_interface.h
  109. payload_state_unittest.cc
  110. PRESUBMIT.cfg
  111. proxy_resolver.cc
  112. proxy_resolver.h
  113. real_system_state.cc
  114. real_system_state.h
  115. run_unittests
  116. sample_omaha_v3_response.xml
  117. service_delegate_android_interface.h
  118. service_observer_interface.h
  119. shill_proxy.cc
  120. shill_proxy.h
  121. shill_proxy_interface.h
  122. sideload_main.cc
  123. system_state.h
  124. tar_bunzip2.gypi
  125. test_http_server.cc
  126. testrunner.cc
  127. unittest_key.pem
  128. unittest_key2.pem
  129. update_attempter.cc
  130. update_attempter.h
  131. update_attempter_android.cc
  132. update_attempter_android.h
  133. update_attempter_unittest.cc
  134. update_engine-client.gyp
  135. update_engine.conf
  136. update_engine.gyp
  137. update_engine.rc
  138. update_engine_client.cc
  139. update_engine_client_android.cc
  140. update_metadata.proto
  141. update_status_utils.cc
  142. update_status_utils.h
  143. UpdateEngine.conf
  144. utils_android.cc
  145. utils_android.h
  146. WATCHLISTS
  147. weave_service.cc
  148. weave_service.h
  149. weave_service_factory.cc
  150. weave_service_factory.h
  151. weave_service_interface.h