review: max line length changes

This commit is contained in:
Brett
2023-07-13 16:30:25 -06:00
parent 698bf7b423
commit 0d9252de9e
2 changed files with 11 additions and 6 deletions

View File

@@ -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);

View File

@@ -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"