curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

RE: Issues implementing an async certificate validation engine

From: Daniel Stenberg via curl-library <>
Date: Wed, 12 Feb 2020 23:44:48 +0100 (CET)

On Wed, 12 Feb 2020, Valerio Di Gregorio (vadigreg) wrote:

> Thanks for your reply. I'm doing the cert verfication in the callback and
> the operation is async. The way the async verification is achieved is by
> using ASYNC_pause_job (which internally does a longjmp). Callback won't
> return, because the async job gets paused. Once async validation is done,
> SSL async job can resume. It's the resumed callback that will finally return
> with a validation result.

If the callback won't return until the verification is done (and you have a
validation result), why do it async in the first place? What's the benefit?

  / | Commercial curl support up to 24x7 is available!
                   | Private help, bug fixes, support, ports, new features
Received on 2020-02-12