Parse metadata signature size in payload version 2.

This patch only parse the field and skip the signature without verifying it.

Bug: 23946683
TEST=unit test added.

Change-Id: I53e049c35f8c21d325aeb415ac9a2daf980fcda1
6 files changed
tree: 03b651f537ac25203882f32610d5ebe8c3119121
  1. dbus_bindings/
  2. include/
  3. init/
  4. payload_generator/
  5. sample_images/
  6. update_manager/
  7. update_payload_key/
  8. .gitignore
  9. action.h
  10. action_pipe.h
  11. action_pipe_unittest.cc
  12. action_processor.cc
  13. action_processor.h
  14. action_processor_unittest.cc
  15. action_unittest.cc
  16. Android.mk
  17. boot_control.h
  18. boot_control_android.cc
  19. boot_control_android.h
  20. boot_control_chromeos.cc
  21. boot_control_chromeos.h
  22. boot_control_chromeos_unittest.cc
  23. boot_control_interface.h
  24. bzip.cc
  25. bzip.h
  26. bzip_extent_writer.cc
  27. bzip_extent_writer.h
  28. bzip_extent_writer_unittest.cc
  29. certificate_checker.cc
  30. certificate_checker.h
  31. certificate_checker_unittest.cc
  32. chrome_browser_proxy_resolver.cc
  33. chrome_browser_proxy_resolver.h
  34. chrome_browser_proxy_resolver_unittest.cc
  35. clock.cc
  36. clock.h
  37. clock_interface.h
  38. connection_manager.cc
  39. connection_manager.h
  40. connection_manager_interface.h
  41. connection_manager_unittest.cc
  42. constants.cc
  43. constants.h
  44. daemon.cc
  45. daemon.h
  46. dbus_service.cc
  47. dbus_service.h
  48. dbus_service_unittest.cc
  49. dbus_test_utils.h
  50. delta_performer.cc
  51. delta_performer.h
  52. delta_performer_integration_test.cc
  53. delta_performer_unittest.cc
  54. download_action.cc
  55. download_action.h
  56. download_action_unittest.cc
  57. error_code.h
  58. extent_writer.cc
  59. extent_writer.h
  60. extent_writer_unittest.cc
  61. fake_boot_control.h
  62. fake_clock.h
  63. fake_extent_writer.h
  64. fake_file_writer.h
  65. fake_hardware.h
  66. fake_p2p_manager.h
  67. fake_p2p_manager_configuration.h
  68. fake_prefs.cc
  69. fake_prefs.h
  70. fake_shill_proxy.cc
  71. fake_shill_proxy.h
  72. fake_system_state.cc
  73. fake_system_state.h
  74. file_descriptor.cc
  75. file_descriptor.h
  76. file_writer.cc
  77. file_writer.h
  78. file_writer_unittest.cc
  79. filesystem_verifier_action.cc
  80. filesystem_verifier_action.h
  81. filesystem_verifier_action_unittest.cc
  82. generate_pc_file.sh
  83. hardware.h
  84. hardware_android.cc
  85. hardware_android.h
  86. hardware_chromeos.cc
  87. hardware_chromeos.h
  88. hardware_interface.h
  89. http_common.cc
  90. http_common.h
  91. http_fetcher.cc
  92. http_fetcher.h
  93. http_fetcher_unittest.cc
  94. hwid_override.cc
  95. hwid_override.h
  96. hwid_override_unittest.cc
  97. install_plan.cc
  98. install_plan.h
  99. libcros_proxy.cc
  100. libcros_proxy.h
  101. libcurl_http_fetcher.cc
  102. libcurl_http_fetcher.h
  103. libupdate_engine-client-test.pc.in
  104. libupdate_engine-client.pc.in
  105. local_coverage_rate
  106. main.cc
  107. metrics.cc
  108. metrics.h
  109. mock_action.h
  110. mock_action_processor.h
  111. mock_certificate_checker.h
  112. mock_connection_manager.h
  113. mock_file_writer.h
  114. mock_hardware.h
  115. mock_http_fetcher.cc
  116. mock_http_fetcher.h
  117. mock_omaha_request_params.h
  118. mock_p2p_manager.h
  119. mock_payload_state.h
  120. mock_prefs.h
  121. mock_update_attempter.h
  122. MODULE_LICENSE_APACHE2
  123. mtd_file_descriptor.cc
  124. mtd_file_descriptor.h
  125. multi_range_http_fetcher.cc
  126. multi_range_http_fetcher.h
  127. NOTICE
  128. omaha_hash_calculator.cc
  129. omaha_hash_calculator.h
  130. omaha_hash_calculator_unittest.cc
  131. omaha_request_action.cc
  132. omaha_request_action.h
  133. omaha_request_action_unittest.cc
  134. omaha_request_params.cc
  135. omaha_request_params.h
  136. omaha_request_params_unittest.cc
  137. omaha_response.h
  138. omaha_response_handler_action.cc
  139. omaha_response_handler_action.h
  140. omaha_response_handler_action_unittest.cc
  141. OWNERS
  142. p2p_manager.cc
  143. p2p_manager.h
  144. p2p_manager_unittest.cc
  145. payload_constants.cc
  146. payload_constants.h
  147. payload_state.cc
  148. payload_state.h
  149. payload_state_interface.h
  150. payload_state_unittest.cc
  151. payload_verifier.cc
  152. payload_verifier.h
  153. platform_constants.h
  154. platform_constants_android.cc
  155. platform_constants_chromeos.cc
  156. postinstall_runner_action.cc
  157. postinstall_runner_action.h
  158. postinstall_runner_action_unittest.cc
  159. prefs.cc
  160. prefs.h
  161. prefs_interface.h
  162. prefs_unittest.cc
  163. PRESUBMIT.cfg
  164. proxy_resolver.cc
  165. proxy_resolver.h
  166. real_system_state.cc
  167. real_system_state.h
  168. run_unittests
  169. sample_omaha_v3_response.xml
  170. shill_proxy.cc
  171. shill_proxy.h
  172. shill_proxy_interface.h
  173. subprocess.cc
  174. subprocess.h
  175. subprocess_unittest.cc
  176. system_state.h
  177. tar_bunzip2.gypi
  178. terminator.cc
  179. terminator.h
  180. terminator_unittest.cc
  181. test_http_server.cc
  182. test_utils.cc
  183. test_utils.h
  184. test_utils_unittest.cc
  185. testrunner.cc
  186. unittest_key.pem
  187. unittest_key2.pem
  188. update_attempter.cc
  189. update_attempter.h
  190. update_attempter_unittest.cc
  191. update_engine-client.gyp
  192. update_engine.conf
  193. update_engine.gyp
  194. update_engine.rc
  195. update_engine_client.cc
  196. update_metadata.proto
  197. UpdateEngine.conf
  198. utils.cc
  199. utils.h
  200. utils_unittest.cc
  201. WATCHLISTS
  202. xz_extent_writer.cc
  203. xz_extent_writer.h
  204. xz_extent_writer_unittest.cc
  205. zip_unittest.cc