*Ex: Move to using a single DBusReply event source

Cleaned up the transition helpers and centralized the response
flow through a single EventSource which takes the serialized
protocol *Reply buffer to return.  So now a DBus GError
can be returned on DBus specific errors and an application-specific
error will come back as a call-specific protocol buffer.

Shared protocol buffers now use the CODE_SIZE optimization
instead of MESSAGE_LITE for both ease of output (DebugString) and
server-usage.  Additionally, this change contains cryptohome
commandline placeholders for each new command.

TEST=compile tested; cryptohome --action=mount_ex returns the correct debug dump.
     same for add_key_ex and update_key_ex.
BUG=chromium:342905

Change-Id: I3189ddadef6665bdf7294c117c7b75dc96a79935
Reviewed-on: https://chromium-review.googlesource.com/186722
Reviewed-by: Will Drewry <wad@chromium.org>
Commit-Queue: Will Drewry <wad@chromium.org>
Tested-by: Will Drewry <wad@chromium.org>
6 files changed
tree: 46fb979e562f8e459b77f6bab90b9b4c92893360
  1. etc/
  2. attestation.cc
  3. attestation.h
  4. attestation.proto
  5. attestation_task.cc
  6. attestation_task.h
  7. attestation_unittest.cc
  8. common.mk
  9. credentials.h
  10. crypto.cc
  11. crypto.h
  12. crypto_unittest.cc
  13. cryptohome-path.cc
  14. cryptohome.cc
  15. cryptohome.xml
  16. cryptohome_common.h
  17. cryptohome_event_source.cc
  18. cryptohome_event_source.h
  19. cryptohome_event_source_unittest.cc
  20. cryptohome_testrunner.cc
  21. cryptohomed.cc
  22. cryptolib.cc
  23. cryptolib.h
  24. dbus_transition.cc
  25. dbus_transition.h
  26. email_to_image
  27. homedirs.cc
  28. homedirs.h
  29. homedirs_unittest.cc
  30. inherit-review-settings-ok
  31. install_attributes.cc
  32. install_attributes.h
  33. install_attributes.proto
  34. install_attributes_unittest.cc
  35. interface.cc
  36. interface.h
  37. keystore.h
  38. LICENSE
  39. lockbox-cache-main.cc
  40. lockbox-cache-tpm.cc
  41. lockbox-cache-tpm.h
  42. lockbox-cache.cc
  43. lockbox-cache.h
  44. lockbox.cc
  45. lockbox.h
  46. lockbox_unittest.cc
  47. make_tests.cc
  48. make_tests.h
  49. make_tests.sh
  50. Makefile
  51. marshal.list
  52. mock_attestation.h
  53. mock_crypto.h
  54. mock_homedirs.cc
  55. mock_homedirs.h
  56. mock_install_attributes.cc
  57. mock_install_attributes.h
  58. mock_keystore.cc
  59. mock_keystore.h
  60. mock_lockbox.cc
  61. mock_lockbox.h
  62. mock_mount.cc
  63. mock_mount.h
  64. mock_mount_factory.h
  65. mock_pkcs11_init.cc
  66. mock_pkcs11_init.h
  67. mock_platform.cc
  68. mock_platform.h
  69. mock_service.cc
  70. mock_service.h
  71. mock_tpm.cc
  72. mock_tpm.h
  73. mock_user_oldest_activity_timestamp_cache.cc
  74. mock_user_oldest_activity_timestamp_cache.h
  75. mock_user_session.cc
  76. mock_user_session.h
  77. mock_vault_keyset.cc
  78. mock_vault_keyset.h
  79. mock_vault_keyset_factory.h
  80. mount-encrypted.c
  81. mount-encrypted.h
  82. mount-helpers.c
  83. mount-helpers.h
  84. mount.cc
  85. mount.h
  86. mount_factory.cc
  87. mount_factory.h
  88. mount_stack.cc
  89. mount_stack.h
  90. mount_stack_unittest.cc
  91. mount_task.cc
  92. mount_task.h
  93. mount_task_unittest.cc
  94. mount_unittest.cc
  95. OWNERS
  96. pam_mount.conf.xml
  97. pkcs11_init.cc
  98. pkcs11_init.h
  99. pkcs11_keystore.cc
  100. pkcs11_keystore.h
  101. pkcs11_keystore_unittest.cc
  102. platform.cc
  103. platform.h
  104. README
  105. README.dbus
  106. README.homedirs
  107. README.lockbox
  108. README.tpm
  109. service.cc
  110. service.h
  111. service_unittest.cc
  112. stateful_recovery.cc
  113. stateful_recovery.h
  114. stateful_recovery_unittest.cc
  115. stub_tpm.h
  116. tpm.cc
  117. tpm.h
  118. tpm_init.cc
  119. tpm_init.h
  120. tpm_status.proto
  121. user_oldest_activity_timestamp_cache.cc
  122. user_oldest_activity_timestamp_cache.h
  123. user_oldest_activity_timestamp_cache_unittest.cc
  124. user_session.cc
  125. user_session.h
  126. user_session_unittest.cc
  127. username_passkey.cc
  128. username_passkey.h
  129. username_passkey_unittest.cc
  130. vault_keyset.cc
  131. vault_keyset.h
  132. vault_keyset.proto
  133. vault_keyset_factory.cc
  134. vault_keyset_factory.h
  135. vault_keyset_unittest.cc
  136. WATCHLISTS