tools: updater: implement send contents

Implement sending the contents through the handler.

Change-Id: I0cccfe002daca7967fb6193750335142f54ace20
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/tools/updater.cpp b/tools/updater.cpp
index 5061e82..aa084e1 100644
--- a/tools/updater.cpp
+++ b/tools/updater.cpp
@@ -66,5 +66,17 @@
 
     std::fprintf(stderr, "using session: %d\n", session);
 
+    /* Send over the firmware image. */
+    if (!handler->sendContents(imagePath, session))
+    {
+        std::fprintf(stderr, "Failed to send contents to %s\n",
+                     imagePath.c_str());
+        return -1;
+    }
+
+    /* Send over the hash contents. */
+    /* Trigger the verification. */
+    /* Check the verification. */
+
     return 0;
 }