don't reuse ssl context and config when the channel retries with another...
don't reuse ssl context and config when the channel retries with another address. Destroy it and recreate a new one. The reason for this change is because mbedtls keeps client certificates forever in the ssl config, there is no way to remove them. Furthermore it doesn't make a copy of the certificate, it is the belle_sip_channel_t that has to keep the memory safe for all the duration of the ssl config. Unfortunately this is too complex, because the tls client certificate is requested to the app on demand, and it will be requested each time a new ssl handshake is happening.
Showing with 41 additions and 21 deletions