Skip to content

Commit 19c8802

Browse files
use WOLFSSL_* instead of CTC_* and fix typo
1 parent dd230cb commit 19c8802

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

examples/posix/wh_posix_client/wh_posix_client_cfg.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ wh_PosixClient_ExampleTlsContextSetup(posixTransportTlsClientContext* ctx)
160160
/* Load CA certificate for server verification */
161161
rc = wolfSSL_CTX_load_verify_buffer(ctx->ssl_ctx, ca_cert_der_2048,
162162
sizeof_ca_cert_der_2048,
163-
CTC_FILETYPE_ASN1);
163+
WOLFSSL_FILETYPE_ASN1);
164164
if (rc != WOLFSSL_SUCCESS) {
165165
wolfSSL_CTX_free(ctx->ssl_ctx);
166166
ctx->ssl_ctx = NULL;
@@ -169,7 +169,7 @@ wh_PosixClient_ExampleTlsContextSetup(posixTransportTlsClientContext* ctx)
169169

170170
rc = wolfSSL_CTX_use_certificate_buffer(ctx->ssl_ctx, client_cert_der_2048,
171171
sizeof(client_cert_der_2048),
172-
CTC_FILETYPE_ASN1);
172+
WOLFSSL_FILETYPE_ASN1);
173173
if (rc != WOLFSSL_SUCCESS) {
174174
wolfSSL_CTX_free(ctx->ssl_ctx);
175175
ctx->ssl_ctx = NULL;
@@ -179,7 +179,7 @@ wh_PosixClient_ExampleTlsContextSetup(posixTransportTlsClientContext* ctx)
179179
/* load private key for TLS connection */
180180
rc = wolfSSL_CTX_use_PrivateKey_buffer(ctx->ssl_ctx, client_key_der_2048,
181181
sizeof(client_key_der_2048),
182-
CTC_FILETYPE_ASN1);
182+
WOLFSSL_FILETYPE_ASN1);
183183
if (rc != WOLFSSL_SUCCESS) {
184184
wolfSSL_CTX_free(ctx->ssl_ctx);
185185
ctx->ssl_ctx = NULL;

examples/posix/wh_posix_server/wh_posix_server_cfg.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ wh_PosixServer_ExampleTlsContextSetup(posixTransportTlsServerContext* ctx)
259259
/* Load server certificate */
260260
rc = wolfSSL_CTX_use_certificate_buffer(ctx->ssl_ctx, server_cert_der_2048,
261261
sizeof(server_cert_der_2048),
262-
CTC_FILETYPE_ASN1);
262+
WOLFSSL_FILETYPE_ASN1);
263263
if (rc != WOLFSSL_SUCCESS) {
264264
wolfSSL_CTX_free(ctx->ssl_ctx);
265265
ctx->ssl_ctx = NULL;
@@ -291,7 +291,7 @@ wh_PosixServer_ExampleTlsContextSetup(posixTransportTlsServerContext* ctx)
291291
/* load private key for TLS connection */
292292
rc = wolfSSL_CTX_use_PrivateKey_buffer(ctx->ssl_ctx, server_key_der_2048,
293293
sizeof(server_key_der_2048),
294-
CTC_FILETYPE_ASN1);
294+
WOLFSSL_FILETYPE_ASN1);
295295
if (rc != WOLFSSL_SUCCESS) {
296296
wolfSSL_CTX_free(ctx->ssl_ctx);
297297
ctx->ssl_ctx = NULL;

port/posix/posix_transport_tcp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ static int posixTransportTcp_Recv(int fd, uint16_t* buffer_offset,
5959
/* Start a non-blocking connect */
6060
int posixTransportTcp_HandleConnect(posixTransportTcpClientContext* c);
6161

62-
/* CLose connection and reset state */
62+
/* Close connection and reset state */
6363
static int posixTransportTcp_Close(posixTransportTcpClientContext* c);
6464

6565

0 commit comments

Comments
 (0)