]> granicus.if.org Git - esp-idf/commitdiff
feature/openssl: add openssl server demo and remove some check function
authorDong Heng <dongheng@espressif.com>
Tue, 15 Nov 2016 07:04:21 +0000 (15:04 +0800)
committerDong Heng <dongheng@espressif.com>
Tue, 15 Nov 2016 07:04:21 +0000 (15:04 +0800)
components/openssl/platform/ssl_pm.c
examples/09_openssl_client/main/component.mk

index 091402cda486a55ece702646abaf9706c47a08af..a5986dc3ee8667db319efabc3999ca68e9cad398 100644 (file)
@@ -90,10 +90,6 @@ int ssl_pm_new(SSL *ssl)
     if (!ssl_pm)
         SSL_ERR(ret, failed1, "ssl_mem_zalloc\n");
 
-    if (ssl->ctx->read_buffer_len < 2048 || 
-        ssl->ctx->read_buffer_len > 8192)
-        return -1;
-
     max_content_len = ssl->ctx->read_buffer_len;
     
     mbedtls_net_init(&ssl_pm->fd);
index 973de1d6f0b161debcf61b907a57b38dff430291..9c21f4a8d42a110f92a5d74527ae763d85e3e5eb 100644 (file)
@@ -6,5 +6,3 @@
 # 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.
 #
-
-include $(IDF_PATH)/make/component_common.mk