From b16a2b133c3cc90b87da8aa0cc3b632fd631405f Mon Sep 17 00:00:00 2001 From: Zackery Backman Date: Fri, 5 Apr 2024 12:09:01 -0600 Subject: [PATCH] OPenSSL Coexist --- examples/tls/tls_client.c | 2 +- examples/tls/tls_server.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/tls/tls_client.c b/examples/tls/tls_client.c index 6decff94..5ef60df4 100644 --- a/examples/tls/tls_client.c +++ b/examples/tls/tls_client.c @@ -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"); } diff --git a/examples/tls/tls_server.c b/examples/tls/tls_server.c index 0bcfe791..2fc0b16e 100644 --- a/examples/tls/tls_server.c +++ b/examples/tls/tls_server.c @@ -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"); } @@ -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"); }