summaryrefslogtreecommitdiff
path: root/payload_consumer/filesystem_verifier_action_unittest.cc
diff options
context:
space:
mode:
authorAlex Deymo <deymo@google.com>2015-12-01 18:26:08 -0300
committerAlex Deymo <deymo@google.com>2015-12-04 19:27:34 -0800
commit33e91e78bfe98c063b0c3b6d590976e275685686 (patch)
tree1912f6dbc00b546af84865eaf8da1e1b0b5df9db /payload_consumer/filesystem_verifier_action_unittest.cc
parent2b4268c8f89d115b0895b3f0172f42c11d9b1d7c (diff)
Fix certificate checker callback lifetime.
OpenSSL's SSL_CTX_set_verify() function allows us to set a callback called after certificate validation but doesn't provide a way to pass private data to this callback. CL:183832 was passing the pointer to the CertificateChecker instance using a global pointer, nevertheless the lifetime of this pointer was wrong since libcurl can trigger this callback asynchronously when the SSL certificates are downloaded. This patch converts the CertificateChecker into a singleton class and uses the same trick previously used to pass the ServerToCheck value using different callbacks. Bug: 25818567 Test: Run an update on edison-userdebug; FEATURES=test emerge-link update_engine Change-Id: I84cdb2f8c5ac86d1463634e73e867f213f7a2f5a
Diffstat (limited to 'payload_consumer/filesystem_verifier_action_unittest.cc')
0 files changed, 0 insertions, 0 deletions