lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Elevating existing connection to TLS


From: address@hidden
Subject: Re: [lwip-users] Elevating existing connection to TLS
Date: Thu, 30 Apr 2020 06:59:06 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0

Am 29.04.2020 um 21:44 schrieb Josh McAtee:
> Here is my understanding so far.
>
> With an existing, open connection, I can call 'altcp_tls_wrap'. This
> seems to work fine.
>
> Then when I attempt to write data after that, it fails because
> 'altcp_mbedtls_write' checks if the handshake is done, which it is not.
>
> The handshake is triggered when connecting (from what I can tell) but
> since the connection already exists, the handshake doesn't occur.
>
> Does this mean I need to modify 'altcp_mbedtls_write' to handshake as
> well, instead of returning ERR_VAL upon seeing handshake not done? Is
> this the correct way to approach this?

Hmm, no, you'd rather need to add a function that initiates the
handshake before allowing the upper layers to continue using the
connection. I don't know if that can be done hidden in the altcp layers.

Regards,
Simon



reply via email to

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