-
Notifications
You must be signed in to change notification settings - Fork 7.6k
WiFiClientSecure make issue #2154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
you need to enable MBED_TLS_PSK options in your sdkconfig, please refer to the arduino sdkconfg for an example, there are four or five lines you need to enable. |
ok dude, I'm surrender ! :)
|
For anyone else that runs into this issue, another solution is to disable the WifiClientSecure component altogether. This can be done by following the steps below:
|
Thanks henry |
@Goldenstarc Whoops. Forgot to mention that there are other libraries that are dependent on WifiClientSecure, so those have to be disabled first. So the order to disable them in is AzureIOT, HttpClient, WifiClientSecure. |
Should this issue be re-opened? Seems to me like the Kconfig file for Arduino should prevent you from using WiFiClientSecure if you don't have its dependencies enabled. I'll see if I can put together a PR to fix this. |
Same issue after last update .. |
Same issue on latest master |
me too |
This seemed to work for me
Good luck. |
@nevercast it works, thank you. |
you mean this part of Kconfig.projbuild?
|
Yes, a proper kconfig should really have all of an option's dependencies
listed, either with require or select. So that option really should also
select MBEDTLS_PSK_MODES as well as the configuration symbols required for
the PSK modes that have been implemented. Otherwise this codebase is just
going to keep getting broken every time people try to update without
starting from scratch or totally replacing their sdkconfig.
…On Sat, Jan 19, 2019, 3:59 AM Hamid ***@***.*** wrote:
Should this issue be re-opened? Seems to me like the Kconfig file for
Arduino should prevent you from using WiFiClientSecure if you don't have
its dependencies enabled. I'll see if I can put together a PR to fix this.
you mean this part of Kconfig.projbuild?
config ARDUINO_SELECTIVE_WiFiClientSecure bool "Enable WiFiClientSecure"
depends on ARDUINO_SELECTIVE_COMPILATION select ARDUINO_SELECTIVE_WiFi
default y
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2154 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ASf84qtMXKnVfI-32VBTdk0qmW6DuKC1ks5vEuyGgaJpZM4ZCMUZ>
.
|
I think @sfowlr is correct here, the entry that @Goldenstarc highlighted should also depend on TLS PSK. |
And as a result, Arduino development team must work on this ?! |
Ran into this just now, with a fresh install. Adding the required options in menuconfig as @nevercast stated fixed it. |
@Goldenstarc Can you please open this issue so that the Arduino team may review it again. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This stale issue has been automatically closed. Thank you for your contributions. |
Especially if the user wants to use the library as component in IDF, there are some pitfalls while doing make menuconfig. One is this missing dependency which will now fail with a better error message with a hint to the user how to fix it. refs espressif#2154 espressif#3215
Hardware: (Doesn't matter for this issue !)
Board: node32
Core Installation/update date: latest
IDE name: IDF-with Arduino
Flash Frequency: 40
PSRAM enabled: ?no?
Upload Speed: ?115200?
Computer OS: MacOS
Description:
error in make command !
USING LATEST LIBRARIES without any change !!
CXX build/arduino-esp32/libraries/WiFiClientSecure/src//ssl_client.o /Users/hamid/Documents/Projects/ESP-IDF/IDF-Arduino/components/arduino-esp32/libraries/WiFiClientSecure/src/ssl_client.cpp: In function 'int start_ssl_client(sslclient_context*, const char*, uint32_t, const char*, const char*, const char*, const char*, const char*)': /Users/hamid/Documents/Projects/ESP-IDF/IDF-Arduino/components/arduino-esp32/libraries/WiFiClientSecure/src/ssl_client.cpp:144:67: error: 'mbedtls_ssl_conf_psk' was not declared in this scope (const unsigned char *)pskIdent, strlen(pskIdent)); ^ make[1]: *** [libraries/WiFiClientSecure/src//ssl_client.o] Error 1 make: *** [component-arduino-esp32-build] Error 2
The text was updated successfully, but these errors were encountered: