a418ad4bb4
So far there was a debug log hook installed in TLS socket implementation. However, mbedTLS (with debug enabled) might be used outside from TLS socket and even outside from networking context. Add new module, which implements debug log hook and makes it available whenever CONFIG_MBEDTLS_DEBUG is enabled. Note that debug hook needs to be installed for each mbedTLS context separately, which means that this requires action from mbedTLS users, such as TLS sockets implementation. Signed-off-by: Marcin Niestroj <m.niestroj@emb.dev>
13 lines
306 B
C
13 lines
306 B
C
/*
|
|
* Copyright (C) 2022 Marcin Niestroj
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#ifndef ZEPHYR_MODULES_MBEDTLS_PRIV_H_
|
|
#define ZEPHYR_MODULES_MBEDTLS_PRIV_H_
|
|
|
|
void zephyr_mbedtls_debug(void *ctx, int level, const char *file, int line, const char *str);
|
|
|
|
#endif /* ZEPHYR_MODULES_MBEDTLS_PRIV_H_ */
|