mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-03 03:31:41 +03:00
feature/openssl: fixup some insufficient
This commit is contained in:
@@ -6,7 +6,7 @@ First you should config the project by "make menuconfig":
|
||||
Example Configuration ->
|
||||
1. Target Domain : the domain that you want to connect to, and default is "www.baidu.com".
|
||||
2. Target port number : the port number of the target domain, and default is 443.
|
||||
3. WiFi SSID : you own wifi, which you pc is connected to alse, and default is "myssid".
|
||||
3. WiFi SSID : you own wifi, which is connected to the Internet, and default is "myssid".
|
||||
4. WiFi Password : wifi password, and default is "mypassword"
|
||||
|
||||
If you want to test the OpenSSL client demo:
|
||||
|
||||
@@ -1,8 +1,3 @@
|
||||
#
|
||||
# Main Makefile. This is basically the same as a component makefile.
|
||||
#
|
||||
# This Makefile should, at the very least, just include $(IDF_PATH)/make/component_common.mk. By default,
|
||||
# this will take the sources in the src/ directory, compile them and link them into
|
||||
# lib(subdirectory_name).a in the build directory. This behaviour is entirely configurable,
|
||||
# please read the ESP-IDF documents if you need to do this.
|
||||
#
|
||||
|
||||
@@ -55,9 +55,10 @@ void openssl_demo_thread(void *p)
|
||||
struct ip4_addr *ip4_addr;
|
||||
|
||||
int recv_bytes = 0;
|
||||
char send_data[] = OPENSSL_DEMO_REQUEST;
|
||||
int send_bytes = sizeof(send_data);
|
||||
char recv_buf[OPENSSL_DEMO_RECV_BUF_LEN];
|
||||
|
||||
const char send_data[] = OPENSSL_DEMO_REQUEST;
|
||||
const int send_bytes = sizeof(send_data);
|
||||
|
||||
ESP_LOGI(TAG, "OpenSSL demo thread start OK");
|
||||
|
||||
@@ -171,7 +172,6 @@ static void openssl_client_init(void)
|
||||
{
|
||||
int ret;
|
||||
xTaskHandle openssl_handle;
|
||||
extern void openssl_demo_thread(void *p);
|
||||
|
||||
ret = xTaskCreate(openssl_demo_thread,
|
||||
OPENSSL_DEMO_THREAD_NAME,
|
||||
@@ -182,7 +182,6 @@ static void openssl_client_init(void)
|
||||
|
||||
if (ret != pdPASS) {
|
||||
ESP_LOGI(TAG, "create thread %s failed", OPENSSL_DEMO_THREAD_NAME);
|
||||
return ;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user