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:
Jon Shallow authored and Olaf Bergmann committed 2019-01-11 17:49:32 +01:00
1 parent 5a8c59e5aa
commit a6ff63b159
1 file changed
+4
+4
View File
@@ -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); \