mirror of
https://github.com/espressif/openthread.git
synced 2026-08-04 09:57:47 +00:00
[dtls] ensure mbedtls_ssl_key_export_type is defined (#7025)
For certain external mbedTLS configurations, there is no much sense to define MBEDTLS_SSL_EXPORT_KEYS when OT has Joiner || Commissioner || DTLS functionalities disabled. This commit only ensures that such builds don't fail. The mbedtls_ssl_key_export_type type is defined only when MBEDTLS_SSL_EXPORT_KEYS is defined, while dtls.hpp is always taken into the build process.
This commit is contained in:
@@ -391,6 +391,7 @@ private:
|
||||
static int HandleMbedtlsTransmit(void *aContext, const unsigned char *aBuf, size_t aLength);
|
||||
int HandleMbedtlsTransmit(const unsigned char *aBuf, size_t aLength);
|
||||
|
||||
#ifdef MBEDTLS_SSL_EXPORT_KEYS
|
||||
#if (MBEDTLS_VERSION_NUMBER >= 0x03000000)
|
||||
|
||||
static void HandleMbedtlsExportKeys(void * aContext,
|
||||
@@ -422,7 +423,8 @@ private:
|
||||
size_t aKeyLength,
|
||||
size_t aIvLength);
|
||||
|
||||
#endif
|
||||
#endif // (MBEDTLS_VERSION_NUMBER >= 0x03000000)
|
||||
#endif // MBEDTLS_SSL_EXPORT_KEYS
|
||||
|
||||
static void HandleTimer(Timer &aTimer);
|
||||
void HandleTimer(void);
|
||||
|
||||
Reference in New Issue
Block a user