diff --git a/IDE/apple-universal/wolfssl-multiplatform/wolfssl-multiplatform/simple_client_example.c b/IDE/apple-universal/wolfssl-multiplatform/wolfssl-multiplatform/simple_client_example.c index ae3db2ea1..b18d058da 100644 --- a/IDE/apple-universal/wolfssl-multiplatform/wolfssl-multiplatform/simple_client_example.c +++ b/IDE/apple-universal/wolfssl-multiplatform/wolfssl-multiplatform/simple_client_example.c @@ -54,7 +54,9 @@ int simple_client_example(void) } /* Create a TCP socket */ - sockfd = socket(server_addr->ai_family, server_addr->ai_socktype, server_addr->ai_protocol); + sockfd = socket(server_addr->ai_family, + server_addr->ai_socktype, + server_addr->ai_protocol); if (sockfd == -1) { perror("Failed to create socket"); freeaddrinfo(server_addr); @@ -84,10 +86,12 @@ int simple_client_example(void) } /* Load CA certificate into WOLFSSL_CTX - * NOTE: CERT_PATH macro is set relative to Xcode $(PROJECT_DIR) environment variable - * in the preprocessor macros section of the project build settings to avoid hardcoding - * a path in the source code. The CA cert is located at wolfssl/certs/wolfssl-website-ca.pem. */ - if ((ret = wolfSSL_CTX_load_verify_locations(ctx, CERT_PATH, NULL)) != WOLFSSL_SUCCESS) { + * NOTE: CERT_PATH macro is set relative to Xcode $(PROJECT_DIR) environment + * variable in the preprocessor macros section of the project build settings + * to avoid hardcoding a path in the source code. The CA cert is located at + * wolfssl/certs/wolfssl-website-ca.pem. */ + ret = wolfSSL_CTX_load_verify_locations(ctx, CERT_PATH, NULL); + if (ret != WOLFSSL_SUCCESS) { printf("ERROR: failed to load %s, please check the file.\n", CERT_PATH); wolfSSL_CTX_free(ctx); close(sockfd); diff --git a/IDE/apple-universal/wolfssl-multiplatform/wolfssl-multiplatform/wolfssl-multiplatform-Bridging-Header.h b/IDE/apple-universal/wolfssl-multiplatform/wolfssl-multiplatform/wolfssl-multiplatform-Bridging-Header.h index e3f72df56..f232f13bd 100644 --- a/IDE/apple-universal/wolfssl-multiplatform/wolfssl-multiplatform/wolfssl-multiplatform-Bridging-Header.h +++ b/IDE/apple-universal/wolfssl-multiplatform/wolfssl-multiplatform/wolfssl-multiplatform-Bridging-Header.h @@ -20,6 +20,7 @@ */ /* - * Use this file to import your target's public headers that you would like to expose to Swift. + * Use this file to import your target's public headers that you would like to + * expose to Swift. */ #import "wolfssl_test_driver.h"