From a44f827d62aa56d4220eec869cd63ec73a829bbd Mon Sep 17 00:00:00 2001 From: "js126.lee" Date: Sat, 19 Mar 2016 17:53:04 +0900 Subject: [PATCH] Modify Ciphersuite code number Accoding to conclusion of OCF Securit TG, the code number of TLS_ECDH_anon_WITH_AES_128_CBC_SHA256 is changed to 0xFF00 as OCF Vendor Specific Ciphersuite. Change-Id: I24456049608a8559bd8082ab359e4a2b3c0a00b8 Signed-off-by: js126.lee Reviewed-on: https://gerrit.iotivity.org/gerrit/6095 Reviewed-by: Kyungsun Cho Reviewed-by: dongik Lee Tested-by: jenkins-iotivity Reviewed-by: Randeep Singh --- extlibs/tinydtls/global.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/extlibs/tinydtls/global.h b/extlibs/tinydtls/global.h index 048bacd..75877fd 100644 --- a/extlibs/tinydtls/global.h +++ b/extlibs/tinydtls/global.h @@ -71,9 +71,9 @@ typedef unsigned char uint48[6]; #endif /** Known cipher suites.*/ -typedef enum { +typedef enum { TLS_NULL_WITH_NULL_NULL = 0x0000, /**< NULL cipher */ - TLS_ECDH_anon_WITH_AES_128_CBC_SHA_256 = 0xC018, /**< see RFC 4492 */ + TLS_ECDH_anon_WITH_AES_128_CBC_SHA_256 = 0xFF00, /**< OCF Vendor Specific Ciphersuite */ TLS_PSK_WITH_AES_128_CCM_8 = 0xC0A8, /**< see RFC 6655 */ TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA_256 = 0xC037, /**< see RFC 5489 */ TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8 = 0xC0AE /**< see RFC 7251 */ @@ -112,7 +112,7 @@ typedef enum { #define TLS_EXT_SIG_HASH_ALGO_SHA256 4 /* see RFC 5246 */ #define TLS_EXT_SIG_HASH_ALGO_ECDSA 3 /* see RFC 5246 */ -/** +/** * XORs \p n bytes byte-by-byte starting at \p y to the memory area * starting at \p x. */ static inline void @@ -145,7 +145,7 @@ equals(unsigned char *a, unsigned char *b, size_t len) { #ifdef HAVE_FLS #define dtls_fls(i) fls(i) #else -static inline int +static inline int dtls_fls(unsigned int i) { int n; for (n = 0; i; n++) -- 2.7.4