Example TLS client with wolfSSL

Dependencies:   EthernetInterface-FRDM-k64F mbed-rtos mbed wolfSSL-TLS13-Beta Example-client-tls

Dependents:   Example-client-tls

Files at this revision

API Documentation at this revision

Comitter:
wolfSSL
Date:
Tue Aug 22 10:59:36 2017 +0000
Parent:
8:4a483e3d805e
Child:
10:37e38ee43b8f
Commit message:
wolfSSL 3.12.0 - TLS1.3

Changed in this revision

client-tls.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-rtos.lib Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
wolfSSL.lib Show annotated file Show diff for this revision Revisions of this file
--- a/client-tls.cpp	Fri Jun 02 03:03:55 2017 +0000
+++ b/client-tls.cpp	Tue Aug 22 10:59:36 2017 +0000
@@ -127,7 +127,11 @@
     int         ret = 0;
 
     /* create and initiLize WOLFSSL_CTX structure */
+    #ifdef WOLFSSL_TLS13
+    if ((ctx = wolfSSL_CTX_new(wolfTLSv1_3_client_method())) == NULL) {
+    #else
     if ((ctx = wolfSSL_CTX_new(wolfTLSv1_2_client_method())) == NULL) {
+    #endif
         printf("SSL_CTX_new error.\n");
         return EXIT_FAILURE;
     }
--- a/mbed-rtos.lib	Fri Jun 02 03:03:55 2017 +0000
+++ b/mbed-rtos.lib	Tue Aug 22 10:59:36 2017 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed-rtos/#58563e6cba1e
+http://mbed.org/users/mbed_official/code/mbed-rtos/#5713cbbdb706
--- a/mbed.bld	Fri Jun 02 03:03:55 2017 +0000
+++ b/mbed.bld	Tue Aug 22 10:59:36 2017 +0000
@@ -1,1 +1,1 @@
-https://mbed.org/users/mbed_official/code/mbed/builds/86740a56073b
\ No newline at end of file
+https://mbed.org/users/mbed_official/code/mbed/builds/e2bfab296f20
\ No newline at end of file
--- a/wolfSSL.lib	Fri Jun 02 03:03:55 2017 +0000
+++ b/wolfSSL.lib	Tue Aug 22 10:59:36 2017 +0000
@@ -1,1 +1,1 @@
-http://developer.mbed.org/users/wolfSSL/code/wolfSSL/#cee25a834751
+http://developer.mbed.org/users/wolfSSL/code/wolfSSL/#f67a6c6013ca