Skip to content
This repository was archived by the owner on Jun 8, 2021. It is now read-only.

Rearrange tls-related function calls and add explicit set_hostname() #44

Merged
merged 2 commits into from
Jan 22, 2020

Conversation

michalpasztamobica
Copy link
Contributor

With #40, the example started failing on connection. It turns out that:

  1. The call order was wrong - set_ca_cert() must go before open()
  2. set_hostname() is required for this connection to work (our Greentea tests work fine without it).

The second point must be considered separately, as the TLSSocket::connect was removed with the recent changes in string-based APIs, but it seems it might have to stay to call the set_hostname...

@michalpasztamobica michalpasztamobica merged commit 12b55cf into ARMmbed:master Jan 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants