[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-devel] altcp_tls_mbedtls: MBEDTLS_ECP_RESTARTABLE

From: Simon Goldschmidt
Subject: Re: [lwip-devel] altcp_tls_mbedtls: MBEDTLS_ECP_RESTARTABLE
Date: Tue, 25 Jun 2019 14:29:22 +0200

"Giuseppe Modugno" wrote:
> No it doesn't work. Poll callback is called only 2 times a second.
> mbedtls_handshake() must be called several times until it doesn't return
> CRYPTO_IN_PROGRESS. With poll callback the handshake would take too much
> time.
> Another possibility is to fire a timeout that is already expired:
> sys_timeout(0, ...).
> Do you think there's a better solution?

Not really. If you implement the sys_timeout() thing, you might want to
find a solution that doesn't use one sys_timeout() per connection. And
a fallback to using 'poll' might be good as well (as sys_timeout() can
fail due to lack of resources).


reply via email to

[Prev in Thread] Current Thread [Next in Thread]