shithub: riscv

Download patch

ref: fd9560d7d83afe6507e1fe12972ff7336dd09a4a
parent: 89f9966aeda62f4763c00c64de84d5726cff980a
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon Mar 28 17:58:37 EDT 2016

libsec: fix tlsid for TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256

the previous cipher id's where fore TLS_ECDH_* not TLS_ECDHE_*... sorry :(

--- a/sys/src/libsec/port/tlshand.c
+++ b/sys/src/libsec/port/tlshand.c
@@ -283,11 +283,11 @@
 	TLS_DH_anon_WITH_AES_128_GCM_SHA256	= 0x00A6,
 	TLS_DH_anon_WITH_AES_256_GCM_SHA384	= 0x00A7,
 
-	TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 = 0xC02D,
-	TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256	= 0xC031,
+	TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 = 0xC02B,
+	TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256	= 0xC02F,
 
-	TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA	= 0XC013,
-	TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA	= 0XC014,
+	TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA	= 0xC013,
+	TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA	= 0xC014,
 	TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256	= 0xC027,
 	TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256	= 0xC023,