aws / amazon-freertos

DEPRECATED - See README.md
https://aws.amazon.com/freertos/
MIT License
2.54k stars 1.1k forks source link

Fix expectation and use of SocketsConfig_t::pAlpnProtos #3533

Closed dachalco closed 1 year ago

dachalco commented 2 years ago

Description

As detailed in #3516, the expectation and use of pAlpnProtos was that of a string, but it's propagated to lower layers as an array of strings instead. Incorrectly calculating the number of separate protocols as the demos set pAlpnProtos as a string, yet transport_secure_sockets.c#L267 assumes the number of separate protocols is the length of this string.

Checklist:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

dachalco commented 2 years ago

/bot run checks

dachalco commented 2 years ago

/bot run checks

xuelix commented 2 years ago

/bot run checks

dachalco commented 2 years ago

/bot run checks

xuelix commented 2 years ago

/bot run checks

dachalco commented 1 year ago

/bot run checks

gmtt commented 1 year ago

/bot run checks