mirror of
https://github.com/obgm/libcoap.git
synced 2026-12-06 20:25:51 +03:00
coap_gnutls.c: enable cipher suites required by RFC 7252
As discussed in issue #286 [1], the mandatory-to-implement cipher suites TLS_PSK_WITH_AES_128_CCM_8 and TLS_ECDHE_ECDSA_AES_128_CCM_8 should be enabled if possible. [1] https://github.com/obgm/libcoap/issues/286 Signed-off-by: Olaf Bergmann <bergmann@tzi.org>
This commit is contained in:
1 parent
5a8c59e5aa
commit
a6ff63b159
1 file changed
+4
@@ -88,7 +88,11 @@ typedef struct coap_gnutls_context_t {
|
||||
gnutls_priority_t priority_cache;
|
||||
} coap_gnutls_context_t;
|
||||
|
||||
#if (GNUTLS_VERSION_NUMBER >= 0x030505)
|
||||
#define VARIANTS "NORMAL:+ECDHE-PSK:+PSK:+ECDHE-ECDSA:+AES-128-CCM-8"
|
||||
#else
|
||||
#define VARIANTS "NORMAL:+ECDHE-PSK:+PSK"
|
||||
#endif
|
||||
|
||||
#define G_ACTION(xx) do { \
|
||||
ret = (xx); \
|
||||
|
||||
Reference in new issue
Block a user