Skip to content

MBEDTLS_SSL_DEBUG_MSG no longer usable #10136

@borrrden

Description

@borrrden

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.

#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

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Status

    Planning needed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions