Skip to content

Commit 6a5316f

Browse files
authored
Merge pull request #341 from night1rider/Coexist_TLS_Example
Fix TLS examples to not use openssl compatibility macros
2 parents 53d8179 + b16a2b1 commit 6a5316f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

examples/tls/tls_client.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ int TPM2_TLS_ClientArgs(void* userCtx, int argc, char *argv[])
594594
}
595595

596596
/* Bidirectional shutdown */
597-
while (wolfSSL_shutdown(ssl) == SSL_SHUTDOWN_NOT_DONE) {
597+
while (wolfSSL_shutdown(ssl) == WOLFSSL_SHUTDOWN_NOT_DONE) {
598598
printf("Shutdown not complete\n");
599599
}
600600

examples/tls/tls_server.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ int TPM2_TLS_ServerArgs(void* userCtx, int argc, char *argv[])
564564
}
565565

566566
/* Bidirectional shutdown */
567-
while (wolfSSL_shutdown(ssl) == SSL_SHUTDOWN_NOT_DONE) {
567+
while (wolfSSL_shutdown(ssl) == WOLFSSL_SHUTDOWN_NOT_DONE) {
568568
printf("Shutdown not complete\n");
569569
}
570570

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

584584
if (ssl != NULL) {
585585
/* Bidirectional shutdown */
586-
while (wolfSSL_shutdown(ssl) == SSL_SHUTDOWN_NOT_DONE) {
586+
while (wolfSSL_shutdown(ssl) == WOLFSSL_SHUTDOWN_NOT_DONE) {
587587
printf("Shutdown not complete\n");
588588
}
589589

0 commit comments

Comments
 (0)