golioth / golioth-zephyr-sdk

Golioth SDK For Zephyr
https://www.golioth.io
Apache License 2.0
65 stars 20 forks source link

Allow loading PSK-ID's longer than 64 chars from settings #359

Closed danyocom closed 11 months ago

danyocom commented 1 year ago

I have been testing out the various features of the Golioth SDK and console. When testing the 'samples/settings' project I ran into an issue (net_sock_tls: TLS handshake error: -7780) when the system client was trying to connect to the Golioth servers .

After debugging the issue, the root cause is that golioth_dtls_psk_id (in system_client.c) is only set to allow PSK-ID's with a max length of 64 chars.

This fix is needed because 'console.golioth.io' will auto-generate and allow psk-id's over 64 chars.

mniestroj commented 11 months ago

Closing, since #394 was merged and addressed the same issue.