-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Description
Summary
MBEDTLS_SSL_DEBUG_MSG no longer usable
System information
Mbed TLS version (number or commit id): 3.6.3
Operating system and version: Windows 10.0.19045.0
Configuration (if not default, please attach mbedtls_config.h): Github makes this impossible....
Compiler and options (if you used a pre-built binary, please indicate how you obtained it):
MSVC from visual studio 17.13.1
Additional environment information:
Expected behavior
If there is a macro present in a public header (i.e. in the include folder) then it should function. Or it should be removed.
Actual behavior
The macro is defined to use the mbedtls_debug_print_msg function, but that function is not defined.
mbedtls/include/mbedtls/debug.h
Lines 25 to 27 in 22098d4
| #define MBEDTLS_SSL_DEBUG_MSG(level, args) \ | |
| mbedtls_debug_print_msg(ssl, level, __FILE__, __LINE__, \ | |
| MBEDTLS_DEBUG_STRIP_PARENS args) |
It is defined in the debug_internal.h header, but that is not a public header.
Steps to reproduce
#include <mbedtls/debug.h>
int main() {
MBEDTLS_SSL_DEBUG_MSG(1, "message");
}Additional information
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Status