Skip to content

Commit 88ae0b1

Browse files
committed
ports/unix: Add DTLS and PSK
1 parent 6e089ef commit 88ae0b1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ports/unix/mbedtls/mbedtls_config.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@
2929
// Set mbedtls configuration
3030
#define MBEDTLS_CIPHER_MODE_CTR // needed for MICROPY_PY_UCRYPTOLIB_CTR
3131

32+
#define MBEDTLS_SSL_PROTO_DTLS
33+
#define MBEDTLS_PSK_MODES
34+
#define MBEDTLS_KEY_EXCHANGE_PSK_ENABLED
35+
3236
// Enable mbedtls modules
3337
#define MBEDTLS_HAVEGE_C
3438
#define MBEDTLS_TIMING_C

0 commit comments

Comments
 (0)