Modify Ciphersuite code number
authorjs126.lee <js126.lee@samsung.com>
Sat, 19 Mar 2016 08:53:04 +0000 (17:53 +0900)
committerRandeep Singh <randeep.s@samsung.com>
Sat, 19 Mar 2016 10:19:51 +0000 (10:19 +0000)
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 <js126.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/6095
Reviewed-by: Kyungsun Cho <goodsun.cho@samsung.com>
Reviewed-by: dongik Lee <dongik.lee@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
(cherry picked from commit a44f827d62aa56d4220eec869cd63ec73a829bbd)
Reviewed-on: https://gerrit.iotivity.org/gerrit/6097
Tested-by: Randeep Singh <randeep.s@samsung.com>
extlibs/tinydtls/global.h

index 048bacd..75877fd 100644 (file)
@@ -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++)