Skip to content

Commit

Permalink
Merge pull request #341 from night1rider/Coexist_TLS_Example
Browse files Browse the repository at this point in the history
Fix TLS examples to not use openssl compatibility macros
  • Loading branch information
dgarske authored Apr 5, 2024
2 parents 53d8179 + b16a2b1 commit 6a5316f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/tls/tls_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ int TPM2_TLS_ClientArgs(void* userCtx, int argc, char *argv[])
}

/* Bidirectional shutdown */
while (wolfSSL_shutdown(ssl) == SSL_SHUTDOWN_NOT_DONE) {
while (wolfSSL_shutdown(ssl) == WOLFSSL_SHUTDOWN_NOT_DONE) {
printf("Shutdown not complete\n");
}

Expand Down
4 changes: 2 additions & 2 deletions examples/tls/tls_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ int TPM2_TLS_ServerArgs(void* userCtx, int argc, char *argv[])
}

/* Bidirectional shutdown */
while (wolfSSL_shutdown(ssl) == SSL_SHUTDOWN_NOT_DONE) {
while (wolfSSL_shutdown(ssl) == WOLFSSL_SHUTDOWN_NOT_DONE) {
printf("Shutdown not complete\n");
}

Expand All @@ -583,7 +583,7 @@ int TPM2_TLS_ServerArgs(void* userCtx, int argc, char *argv[])

if (ssl != NULL) {
/* Bidirectional shutdown */
while (wolfSSL_shutdown(ssl) == SSL_SHUTDOWN_NOT_DONE) {
while (wolfSSL_shutdown(ssl) == WOLFSSL_SHUTDOWN_NOT_DONE) {
printf("Shutdown not complete\n");
}

Expand Down

0 comments on commit 6a5316f

Please sign in to comment.