Skip to content
Snippets Groups Projects
Commit ef39a26f authored by Sébastien Blin's avatar Sébastien Blin Committed by Adrien Béraud
Browse files

tls_session: fix verifyOcsp potential crashes

verifyOcsp takes a callback with arguments passed by reference.
However, if the method finishes (verifyCertificateWrapper) cert
will be destroyed and references potentially invalidated.
So, instead of waiting on a condition variable use a future to
be sure that the cert is used before destruction.
The callback is always called by sendOcspRequest with a similar
timeout so also remove the useless timeout.

Change-Id: If1a8eba70e13d2d613b758ad24629efa4fe57bb3
GitLab: #577
parent 9727bd57
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment