mirror of
https://github.com/obgm/libcoap.git
synced 2026-12-03 03:01:05 +03:00
[DTLS] make buffer sizes for psk and psk_identity configurable
The pre-processor values COAP_DTLS_MAX_PSK and COAP_DTLS_MAX_PSK_IDENTITY now can be set at build time. Both values default to 64. Static buffer sizes in the TLS library wrappers are adjusted accordingly.
This commit is contained in:
1 parent
54dbc3eeb8
commit
e984f38b8f
4 files changed
+13
-7
No files matched your search
@@ -27,6 +27,12 @@ typedef struct coap_dtls_pki_t coap_dtls_pki_t;
|
||||
#ifndef COAP_DTLS_HINT_LENGTH
|
||||
#define COAP_DTLS_HINT_LENGTH 128
|
||||
#endif
|
||||
#ifndef COAP_DTLS_MAX_PSK_IDENTITY
|
||||
#define COAP_DTLS_MAX_PSK_IDENTITY 64
|
||||
#endif
|
||||
#ifndef COAP_DTLS_MAX_PSK
|
||||
#define COAP_DTLS_MAX_PSK 64
|
||||
#endif
|
||||
|
||||
typedef enum coap_dtls_role_t {
|
||||
COAP_DTLS_ROLE_CLIENT, /**< Internal function invoked for client */
|
||||
|
||||
Reference in new issue
Block a user