Skip to content

Commit 52b34d6

Browse files
remove debug printf and spelling fix
1 parent 4d8b123 commit 52b34d6

3 files changed

Lines changed: 3 additions & 9 deletions

File tree

examples/posix/wh_posix_server/user_settings.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ extern "C" {
193193
/* #define WOLFSSL_DEBUG_MEMORY */
194194
/* #define WOLFSSL_DEBUG_MEMORY_PRINT */
195195

196-
#define DEBUG_WOLFSSL
196+
/* #define DEBUG_WOLFSSL */
197197
#ifdef __cplusplus
198198
}
199199
#endif

examples/posix/wh_posix_server/wh_posix_server_cfg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ wh_PosixServer_ExamplePskContextSetup(posixTransportTlsServerContext* ctx)
207207
wolfSSL_CTX_set_psk_server_tls13_callback(ctx->ssl_ctx,
208208
psk_tls13_server_cb);
209209
#endif /* WOLFSSL_TLS13 */
210-
wolfSSL_CTX_use_psk_identity_hint(ctx->ssl_ctx, "wolHSM Example Server");
210+
wolfSSL_CTX_use_psk_identity_hint(ctx->ssl_ctx, "wolfHSM Example Server");
211211
return WH_ERROR_OK;
212212
}
213213
#endif /* NO_PSK */

port/posix/posix_transport_tls.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ int posixTransportTls_InitConnect(void* context, const void* config,
8686
}
8787

8888
/* Set the socket file descriptor */
89-
printf("setting TLS fd to %d\n", ctx->connect_fd_p1);
9089
wolfSSL_set_fd(ctx->ssl, ctx->connect_fd_p1);
9190
}
9291
if (ctx->connectcb != NULL) {
@@ -130,12 +129,10 @@ int posixTransportTls_SendRequest(void* context, uint16_t size,
130129
return WH_ERROR_NOTREADY;
131130
}
132131
else {
133-
printf("TLS handshake failed, rc = %d err = %d\n", rc, err);
134132
return WH_ERROR_ABORTED;
135133
}
136134
}
137135
else {
138-
printf("completed TLS handshake\n");
139136
ctx->state = PTTLS_STATE_CONNECTED;
140137
}
141138
}
@@ -307,13 +304,11 @@ int posixTransportTls_RecvRequest(void* context, uint16_t* out_size, void* data)
307304
return WH_ERROR_ABORTED;
308305
}
309306
}
310-
printf("accepted socket: %d\n", rc);
311307
ctx->accept_fd_p1 = rc + 1;
312308
ctx->client_addr = client_addr;
313309

314-
/* Make accepted socket non-blocking
310+
/* Make accepted socket non-blocking */
315311
fcntl(ctx->accept_fd_p1 - 1, F_SETFL, O_NONBLOCK);
316-
*/
317312

318313
/* Create SSL object for this connection */
319314
ctx->ssl = wolfSSL_new(ctx->ssl_ctx);
@@ -413,7 +408,6 @@ int posixTransportTls_CleanupListen(void* context)
413408
if (!ctx) {
414409
return WH_ERROR_BADARGS;
415410
}
416-
printf("cleaning up listen\n");
417411
/* Clean up SSL objects */
418412
if (ctx->ssl) {
419413
wolfSSL_free(ctx->ssl);

0 commit comments

Comments
 (0)