Merge pull request #6861 from douzzer/20231012-keylog-export-warning-fix

20231012-keylog-export-warning-fix
This commit is contained in:
JacobBarthelmeh
2023-10-12 17:04:39 -06:00
committed by GitHub
2 changed files with 5 additions and 3 deletions

View File

@@ -106,7 +106,8 @@ static int TLSX_PopulateSupportedGroups(WOLFSSL* ssl, TLSX** extensions);
#endif
/* Warn if secrets logging is enabled */
#if defined(SHOW_SECRETS) || defined(WOLFSSL_SSLKEYLOGFILE)
#if (defined(SHOW_SECRETS) || defined(WOLFSSL_SSLKEYLOGFILE)) && \
!defined(WOLFSSL_KEYLOG_EXPORT_WARNED)
#ifndef _MSC_VER
#warning The SHOW_SECRETS and WOLFSSL_SSLKEYLOGFILE options should only be used for debugging and never in a production environment
#else