Binary files ssldump.orig/.svn/wc.db and ssldump/.svn/wc.db differ
diff -uNr ssldump.orig/Portfile ssldump/Portfile
--- ssldump.orig/Portfile	2015-10-17 01:15:19.000000000 +0900
+++ ssldump/Portfile	2015-10-17 23:20:33.000000000 +0900
@@ -1,12 +1,12 @@
 # $Id: Portfile 139229 2015-08-08 03:10:35Z jeremyhu@macports.org $
 
-PortSystem 1.0
+PortSystem			1.0
 
 name				ssldump
 version				0.9b3
-revision			2
+revision			3
+
 categories			net
-license				BSD-old
 maintainers			nomaintainer
 description			SSLv3/TLS network protocol analyzer.
 long_description	ssldump is an SSLv3/TLS network protocol analyzer. It \
@@ -16,39 +16,37 @@
 					and displays them in a textual form to stdout. If provided \
 					with the appropriate keying material, it will also decrypt \
 					the connections and display the application data traffic.
-homepage			http://www.rtfm.com/ssldump/
+
 platforms			darwin
+license				BSD-old
+
+homepage			http://www.rtfm.com/ssldump/
 master_sites		${homepage}
+
+livecheck.type		regex
+livecheck.regex		{The current version is (.*)}
+
 checksums			md5 ac8c28fe87508d6bfb06344ec496b1dd \
 					sha1 a633a9a811a138eac5ed440d583473b644135ef5 \
 					rmd160 941cf8f2ef8459ec4f9ce65772e134505d46566f
 
-depends_build		port:libtool
-
 depends_lib			port:libpcap \
 					path:lib/libssl.dylib:openssl
 
-patchfiles			patch-ssl_ssldecode_c
+depends_build		port:libtool
+
+patchfiles			ssldump-0.9b3.diff
+
 pre-configure {
 	xinstall -m 644 -W ${prefix}/share/libtool/build-aux config.guess config.sub ${worksrcpath}
 }
+
 configure.args		--mandir=${destroot}${prefix}/share/man \
 					--prefix=${destroot}${prefix} \
 					--with-pcap=${prefix} \
 					--with-openssl=${prefix}
 
-platform darwin {
-	# There seems to be a conflict between pcap.h (calling pcap-bpf.h) and
-	# net/bpf.h.
-	# This conflict apparently doesn't affect OpenBSD (judging from their port
-	# of ssldump), so let's only fix it on darwin.
-	patchfiles-append	patch-base-pcap-snoop.c
-}
-
 pre-destroot {
 	# Trash INSTALL because the FS might be case unsensitive.
 	file delete -force ${worksrcpath}/INSTALL
 }
-
-livecheck.type	regex
-livecheck.regex	{The current version is (.*)}
diff -uNr ssldump.orig/files/patch-base-pcap-snoop.c ssldump/files/patch-base-pcap-snoop.c
--- ssldump.orig/files/patch-base-pcap-snoop.c	2015-10-17 01:15:19.000000000 +0900
+++ ssldump/files/patch-base-pcap-snoop.c	1970-01-01 09:00:00.000000000 +0900
@@ -1,10 +0,0 @@
---- base/pcap-snoop.c.orig	2005-08-21 16:19:14.000000000 +0900
-+++ base/pcap-snoop.c	2005-08-21 16:19:16.000000000 +0900
-@@ -49,7 +49,6 @@
- 
- #include <pcap.h>
- #include <unistd.h>
--#include <net/bpf.h>
- #ifndef _WIN32
- #include <sys/param.h>
- #endif
diff -uNr ssldump.orig/files/patch-ssl_ssldecode_c ssldump/files/patch-ssl_ssldecode_c
--- ssldump.orig/files/patch-ssl_ssldecode_c	2015-10-17 15:21:08.000000000 +0900
+++ ssldump/files/patch-ssl_ssldecode_c	1970-01-01 09:00:00.000000000 +0900
@@ -1,21 +0,0 @@
-$OpenBSD: patch-ssl_ssldecode_c,v 1.1 2002/06/16 19:43:39 pvalchev Exp $
---- ssl/ssldecode.c.orig	Sun Jun 16 13:41:46 2002
-+++ ssl/ssldecode.c	Sun Jun 16 13:42:10 2002
-@@ -51,6 +51,7 @@
- #include <openssl/ssl.h>
- #include <openssl/hmac.h>
- #include <openssl/evp.h>
-+#include <openssl/md5.h>
- #include <openssl/x509v3.h>
- #endif
- #include "ssldecode.h"
-@@ -132,7 +132,8 @@
-     ssl_decode_ctx *d=0;
-     int r,_status;
-     
--    SSLeay_add_all_algorithms();
-+    SSL_library_init();
-+    OpenSSL_add_all_algorithms(); 
-     if(!(d=(ssl_decode_ctx *)malloc(sizeof(ssl_decode_ctx))))
-       ABORT(R_NO_MEMORY);
-     if(!(d->ssl_ctx=SSL_CTX_new(SSLv23_server_method())))
diff -uNr ssldump.orig/files/ssldump-0.9b3.diff ssldump/files/ssldump-0.9b3.diff
--- ssldump.orig/files/ssldump-0.9b3.diff	1970-01-01 09:00:00.000000000 +0900
+++ ssldump/files/ssldump-0.9b3.diff	2015-10-17 23:20:22.000000000 +0900
@@ -0,0 +1,585 @@
+--- base/pcap-snoop.c.orig	2010-03-18 22:59:13.000000000 -0700
++++ base/pcap-snoop.c	2010-03-18 22:59:30.000000000 -0700
+@@ -46,10 +46,9 @@
+ 
+ static char *RCSSTRING="$Id: pcap-snoop.c,v 1.14 2002/09/09 21:02:58 ekr Exp $";
+ 
+-
++#include <net/bpf.h>
+ #include <pcap.h>
+ #include <unistd.h>
+-#include <net/bpf.h>
+ #ifndef _WIN32
+ #include <sys/param.h>
+ #endif
+--- base/pcap-snoop.c.orig	2012-04-06 10:35:06.000000000 -0700
++++ base/pcap-snoop.c	2012-04-06 10:45:31.000000000 -0700
+@@ -286,7 +286,7 @@
+           err_exit("Aborting",-1);
+         }
+       }
+-      if(!(p=pcap_open_live(interface_name,5000,!no_promiscuous,1000,errbuf))){
++      if(!(p=pcap_open_live(interface_name,18432,!no_promiscuous,1000,errbuf))){
+ 	fprintf(stderr,"PCAP: %s\n",errbuf);
+ 	err_exit("Aborting",-1);
+       }
+--- ssl/ssldecode.c.orig	2013-07-10 14:44:42.000000000 -0400
++++ ssl/ssldecode.c	2013-07-10 14:44:44.000000000 -0400
+@@ -51,6 +51,7 @@
+ #include <openssl/ssl.h>
+ #include <openssl/hmac.h>
+ #include <openssl/evp.h>
++#include <openssl/md5.h>
+ #include <openssl/x509v3.h>
+ #endif
+ #include "ssldecode.h"
+@@ -131,7 +132,8 @@
+     ssl_decode_ctx *d=0;
+     int r,_status;
+     
+-    SSLeay_add_all_algorithms();
++    SSL_library_init();
++    OpenSSL_add_all_algorithms();
+     if(!(d=(ssl_decode_ctx *)malloc(sizeof(ssl_decode_ctx))))
+       ABORT(R_NO_MEMORY);
+     if(!(d->ssl_ctx=SSL_CTX_new(SSLv23_server_method())))
+--- ssl/ssl.enums.orig	2013-07-10 15:43:35.000000000 -0400
++++ ssl/ssl.enums	2013-07-10 15:54:11.000000000 -0400
+@@ -378,6 +378,141 @@
+     CipherSuite	TLS_ECDH_ECDSA_WITH_DES_CBC_SHA  = {0x00,0x49};
+     CipherSuite	TLS_ECDH_ECDSA_EXPORT_WITH_RC4_56_SHA={0xff,0x85};
+     CipherSuite	TLS_ECDH_ECDSA_EXPORT_WITH_RC4_40_SHA={0xff,0x84};
++
++    /***** Patch additions from following URL *****/
++    /* https://github.com/jtapiath-cl/gokik/blob/0de0f3e7/Security.framework/Headers/CipherSuite.h */
++    /* TLS addenda using AES, per RFC 3268 */
++    CipherSuite	TLS_RSA_WITH_AES_128_CBC_SHA           ={0x00,0x2f};
++    CipherSuite	TLS_DH_DSS_WITH_AES_128_CBC_SHA        ={0x00,0x30};
++    CipherSuite	TLS_DH_RSA_WITH_AES_128_CBC_SHA        ={0x00,0x31};
++    CipherSuite	TLS_DHE_DSS_WITH_AES_128_CBC_SHA       ={0x00,0x32};
++    CipherSuite	TLS_DHE_RSA_WITH_AES_128_CBC_SHA       ={0x00,0x33};
++    CipherSuite	TLS_DH_anon_WITH_AES_128_CBC_SHA       ={0x00,0x34};
++    CipherSuite	TLS_RSA_WITH_AES_256_CBC_SHA           ={0x00,0x35};
++    CipherSuite	TLS_DH_DSS_WITH_AES_256_CBC_SHA        ={0x00,0x36};
++    CipherSuite	TLS_DH_RSA_WITH_AES_256_CBC_SHA        ={0x00,0x37};
++    CipherSuite	TLS_DHE_DSS_WITH_AES_256_CBC_SHA       ={0x00,0x38};
++    CipherSuite	TLS_DHE_RSA_WITH_AES_256_CBC_SHA       ={0x00,0x39};
++    CipherSuite	TLS_DH_anon_WITH_AES_256_CBC_SHA       ={0x00,0x3a};
++
++    /* ECDSA addenda, RFC 4492 */
++    CipherSuite	TLS_ECDH_ECDSA_WITH_NULL_SHA           ={0xc0,0x01};
++    CipherSuite	TLS_ECDH_ECDSA_WITH_RC4_128_SHA        ={0xc0,0x02};
++    CipherSuite	TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA   ={0xc0,0x03};
++    CipherSuite	TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA    ={0xc0,0x04};
++    CipherSuite	TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA    ={0xc0,0x05};
++    CipherSuite	TLS_ECDHE_ECDSA_WITH_NULL_SHA          ={0xc0,0x06};
++    CipherSuite	TLS_ECDHE_ECDSA_WITH_RC4_128_SHA       ={0xc0,0x07};
++    CipherSuite	TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA  ={0xc0,0x08};
++    CipherSuite	TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA   ={0xc0,0x09};
++    CipherSuite	TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA   ={0xc0,0x0A};
++    CipherSuite	TLS_ECDH_RSA_WITH_NULL_SHA             ={0xc0,0x0B};
++    CipherSuite	TLS_ECDH_RSA_WITH_RC4_128_SHA          ={0xc0,0x0C};
++    CipherSuite	TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA     ={0xc0,0x0D};
++    CipherSuite	TLS_ECDH_RSA_WITH_AES_128_CBC_SHA      ={0xc0,0x0E};
++    CipherSuite	TLS_ECDH_RSA_WITH_AES_256_CBC_SHA      ={0xc0,0x0F};
++    CipherSuite	TLS_ECDHE_RSA_WITH_NULL_SHA            ={0xc0,0x10};
++    CipherSuite	TLS_ECDHE_RSA_WITH_RC4_128_SHA         ={0xc0,0x11};
++    CipherSuite	TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA    ={0xc0,0x12};
++    CipherSuite	TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA     ={0xc0,0x13};
++    CipherSuite	TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA     ={0xc0,0x14};
++    CipherSuite	TLS_ECDH_anon_WITH_NULL_SHA            ={0xc0,0x15};
++    CipherSuite	TLS_ECDH_anon_WITH_RC4_128_SHA         ={0xc0,0x16};
++    CipherSuite	TLS_ECDH_anon_WITH_3DES_EDE_CBC_SHA    ={0xc0,0x17};
++    CipherSuite	TLS_ECDH_anon_WITH_AES_128_CBC_SHA     ={0xc0,0x18};
++    CipherSuite	TLS_ECDH_anon_WITH_AES_256_CBC_SHA     ={0xc0,0x19};
++
++    /***** TLS 1.2 addenda, RFC 5246 *****/
++    /* Initial state. */
++    CipherSuite	TLS_NULL_WITH_NULL_NULL                ={0x00,0x00};
++
++    /* Server provided RSA certificate for key exchange. */
++    CipherSuite	TLS_RSA_WITH_NULL_MD5                     ={0x00,0x01};
++    CipherSuite	TLS_RSA_WITH_NULL_SHA                     ={0x00,0x02};
++    CipherSuite	TLS_RSA_WITH_RC4_128_MD5                  ={0x00,0x04};
++    CipherSuite	TLS_RSA_WITH_RC4_128_SHA                  ={0x00,0x05};
++    CipherSuite	TLS_RSA_WITH_3DES_EDE_CBC_SHA             ={0x00,0x0A};
++    //CipherSuite	TLS_RSA_WITH_AES_128_CBC_SHA            ={0x00,0x2F};
++    //CipherSuite	TLS_RSA_WITH_AES_256_CBC_SHA            ={0x00,0x35};
++    CipherSuite	TLS_RSA_WITH_NULL_SHA256                  ={0x00,0x3B};
++    CipherSuite	TLS_RSA_WITH_AES_128_CBC_SHA256           ={0x00,0x3C};
++    CipherSuite	TLS_RSA_WITH_AES_256_CBC_SHA256           ={0x00,0x3D};
++
++    /* Server-authenticated (and optionally client-authenticated) Diffie-Hellman. */
++    CipherSuite	TLS_DH_DSS_WITH_3DES_EDE_CBC_SHA          ={0x00,0x0D};
++    CipherSuite	TLS_DH_RSA_WITH_3DES_EDE_CBC_SHA          ={0x00,0x10};
++    CipherSuite	TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA         ={0x00,0x13};
++    CipherSuite	TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA         ={0x00,0x16};
++    //CipherSuite	TLS_DH_DSS_WITH_AES_128_CBC_SHA         ={0x00,0x30};
++    //CipherSuite	TLS_DH_RSA_WITH_AES_128_CBC_SHA         ={0x00,0x31};
++    //CipherSuite	TLS_DHE_DSS_WITH_AES_128_CBC_SHA        ={0x00,0x32};
++    //CipherSuite	TLS_DHE_RSA_WITH_AES_128_CBC_SHA        ={0x00,0x33};
++    //CipherSuite	TLS_DH_DSS_WITH_AES_256_CBC_SHA         ={0x00,0x36};
++    //CipherSuite	TLS_DH_RSA_WITH_AES_256_CBC_SHA         ={0x00,0x37};
++    //CipherSuite	TLS_DHE_DSS_WITH_AES_256_CBC_SHA        ={0x00,0x38};
++    //CipherSuite	TLS_DHE_RSA_WITH_AES_256_CBC_SHA        ={0x00,0x39};
++    CipherSuite	TLS_DH_DSS_WITH_AES_128_CBC_SHA256        ={0x00,0x3E};
++    CipherSuite	TLS_DH_RSA_WITH_AES_128_CBC_SHA256        ={0x00,0x3F};
++    CipherSuite	TLS_DHE_DSS_WITH_AES_128_CBC_SHA256       ={0x00,0x40};
++    CipherSuite	TLS_DHE_RSA_WITH_AES_128_CBC_SHA256       ={0x00,0x67};
++    CipherSuite	TLS_DH_DSS_WITH_AES_256_CBC_SHA256        ={0x00,0x68};
++    CipherSuite	TLS_DH_RSA_WITH_AES_256_CBC_SHA256        ={0x00,0x69};
++    CipherSuite	TLS_DHE_DSS_WITH_AES_256_CBC_SHA256       ={0x00,0x6A};
++    CipherSuite	TLS_DHE_RSA_WITH_AES_256_CBC_SHA256       ={0x00,0x6B};
++
++    /* Completely anonymous Diffie-Hellman */
++    CipherSuite	TLS_DH_anon_WITH_RC4_128_MD5              ={0x00,0x18};
++    CipherSuite	TLS_DH_anon_WITH_3DES_EDE_CBC_SHA         ={0x00,0x1B};
++    //CipherSuite	TLS_DH_anon_WITH_AES_128_CBC_SHA        ={0x00,0x34};
++    //CipherSuite	TLS_DH_anon_WITH_AES_256_CBC_SHA        ={0x00,0x3A};
++    CipherSuite	TLS_DH_anon_WITH_AES_128_CBC_SHA256       ={0x00,0x6C};
++    CipherSuite	TLS_DH_anon_WITH_AES_256_CBC_SHA256       ={0x00,0x6D};
++
++    /* Addenda from rfc 5288 AES Galois Counter Mode (GCM) Cipher Suites for TLS. */
++    CipherSuite	TLS_RSA_WITH_AES_128_GCM_SHA256           ={0x00,0x9C};
++    CipherSuite	TLS_RSA_WITH_AES_256_GCM_SHA384           ={0x00,0x9D};
++    CipherSuite	TLS_DHE_RSA_WITH_AES_128_GCM_SHA256       ={0x00,0x9E};
++    CipherSuite	TLS_DHE_RSA_WITH_AES_256_GCM_SHA384       ={0x00,0x9F};
++    CipherSuite	TLS_DH_RSA_WITH_AES_128_GCM_SHA256        ={0x00,0xA0};
++    CipherSuite	TLS_DH_RSA_WITH_AES_256_GCM_SHA384        ={0x00,0xA1};
++    CipherSuite	TLS_DHE_DSS_WITH_AES_128_GCM_SHA256       ={0x00,0xA2};
++    CipherSuite	TLS_DHE_DSS_WITH_AES_256_GCM_SHA384       ={0x00,0xA3};
++    CipherSuite	TLS_DH_DSS_WITH_AES_128_GCM_SHA256        ={0x00,0xA4};
++    CipherSuite	TLS_DH_DSS_WITH_AES_256_GCM_SHA384        ={0x00,0xA5};
++    CipherSuite	TLS_DH_anon_WITH_AES_128_GCM_SHA256       ={0x00,0xA6};
++    CipherSuite	TLS_DH_anon_WITH_AES_256_GCM_SHA384       ={0x00,0xA7};
++
++    /* Addenda from rfc 5289  Elliptic Curve Cipher Suites with HMAC SHA-256/384. */
++    CipherSuite	TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256   ={0xC0,0x23};
++    CipherSuite	TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384   ={0xC0,0x24};
++    CipherSuite	TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256    ={0xC0,0x25};
++    CipherSuite	TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384    ={0xC0,0x26};
++    CipherSuite	TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256     ={0xC0,0x27};
++    CipherSuite	TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384     ={0xC0,0x28};
++    CipherSuite	TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256      ={0xC0,0x29};
++    CipherSuite	TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384      ={0xC0,0x2A};
++
++    /* Addenda from rfc 5289  Elliptic Curve Cipher Suites with SHA-256/384 and AES Galois Counter Mode (GCM) */
++    CipherSuite	TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256   ={0xC0,0x2B};
++    CipherSuite	TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384   ={0xC0,0x2C};
++    CipherSuite	TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256    ={0xC0,0x2D};
++    CipherSuite	TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384    ={0xC0,0x2E};
++    CipherSuite	TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256     ={0xC0,0x2F};
++    CipherSuite	TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384     ={0xC0,0x30};
++    CipherSuite	TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256      ={0xC0,0x31};
++    CipherSuite	TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384      ={0xC0,0x32};
++
++    /* RFC 5746 - Secure Renegotiation */
++    CipherSuite	TLS_EMPTY_RENEGOTIATION_INFO_SCSV         ={0x00,0xFF};
++
++    /* Tags for SSL 2 cipher kinds which are not specified for SSL 3. */
++    CipherSuite	SSL_RSA_WITH_RC2_CBC_MD5                  ={0xFF,0x80};
++    CipherSuite	SSL_RSA_WITH_IDEA_CBC_MD5                 ={0xFF,0x81};
++    CipherSuite	SSL_RSA_WITH_DES_CBC_MD5                  ={0xFF,0x82};
++    CipherSuite	SSL_RSA_WITH_3DES_EDE_CBC_MD5             ={0xFF,0x83};
++    CipherSuite	SSL_NO_SUCH_CIPHERSUITE                   ={0xFF,0xFF};
++    /***** /Patch additions *****/
++
+   } cipher_suite;  
+ 
+     	   
+--- ssl/ssl.enums.c.orig	2013-07-10 14:54:38.000000000 -0400
++++ ssl/ssl.enums.c	2013-07-10 15:51:46.000000000 -0400
+@@ -698,6 +698,393 @@
+ 		65412,
+ 		"TLS_ECDH_ECDSA_EXPORT_WITH_RC4_40_SHA",
+ 		0	},
++	/***** Patch additions from following URL *****/
++	/* https://github.com/jtapiath-cl/gokik/blob/0de0f3e7/Security.framework/Headers/CipherSuite.h */
++	{
++		47,
++		"TLS_RSA_WITH_AES_128_CBC_SHA",
++		0	},
++	{
++		48,
++		"TLS_DH_DSS_WITH_AES_128_CBC_SHA",
++		0	},
++	{
++		49,
++		"TLS_DH_RSA_WITH_AES_128_CBC_SHA",
++		0	},
++	{
++		50,
++		"TLS_DHE_DSS_WITH_AES_128_CBC_SHA",
++		0	},
++	{
++		51,
++		"TLS_DHE_RSA_WITH_AES_128_CBC_SHA",
++		0	},
++	{
++		52,
++		"TLS_DH_anon_WITH_AES_128_CBC_SHA",
++		0	},
++	{
++		53,
++		"TLS_RSA_WITH_AES_256_CBC_SHA",
++		0	},
++	{
++		54,
++		"TLS_DH_DSS_WITH_AES_256_CBC_SHA",
++		0	},
++	{
++		55,
++		"TLS_DH_RSA_WITH_AES_256_CBC_SHA",
++		0	},
++	{
++		56,
++		"TLS_DHE_DSS_WITH_AES_256_CBC_SHA",
++		0	},
++	{
++		57,
++		"TLS_DHE_RSA_WITH_AES_256_CBC_SHA",
++		0	},
++	{
++		58,
++		"TLS_DH_anon_WITH_AES_256_CBC_SHA",
++		0	},
++	{
++		49153,
++		"TLS_ECDH_ECDSA_WITH_NULL_SHA",
++		0	},
++	{
++		49154,
++		"TLS_ECDH_ECDSA_WITH_RC4_128_SHA",
++		0	},
++	{
++		49155,
++		"TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA",
++		0	},
++	{
++		49156,
++		"TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA",
++		0	},
++	{
++		49157,
++		"TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA",
++		0	},
++	{
++		49158,
++		"TLS_ECDHE_ECDSA_WITH_NULL_SHA",
++		0	},
++	{
++		49159,
++		"TLS_ECDHE_ECDSA_WITH_RC4_128_SHA",
++		0	},
++	{
++		49160,
++		"TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA",
++		0	},
++	{
++		49161,
++		"TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA",
++		0	},
++	{
++		49162,
++		"TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA",
++		0	},
++	{
++		49163,
++		"TLS_ECDH_RSA_WITH_NULL_SHA",
++		0	},
++	{
++		49164,
++		"TLS_ECDH_RSA_WITH_RC4_128_SHA",
++		0	},
++	{
++		49165,
++		"TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA",
++		0	},
++	{
++		49166,
++		"TLS_ECDH_RSA_WITH_AES_128_CBC_SHA",
++		0	},
++	{
++		49167,
++		"TLS_ECDH_RSA_WITH_AES_256_CBC_SHA",
++		0	},
++	{
++		49168,
++		"TLS_ECDHE_RSA_WITH_NULL_SHA",
++		0	},
++	{
++		49169,
++		"TLS_ECDHE_RSA_WITH_RC4_128_SHA",
++		0	},
++	{
++		49170,
++		"TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA",
++		0	},
++	{
++		49171,
++		"TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA",
++		0	},
++	{
++		49172,
++		"TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA",
++		0	},
++	{
++		49173,
++		"TLS_ECDH_anon_WITH_NULL_SHA",
++		0	},
++	{
++		49174,
++		"TLS_ECDH_anon_WITH_RC4_128_SHA",
++		0	},
++	{
++		49175,
++		"TLS_ECDH_anon_WITH_3DES_EDE_CBC_SHA",
++		0	},
++	{
++		49176,
++		"TLS_ECDH_anon_WITH_AES_128_CBC_SHA",
++		0	},
++	{
++		49177,
++		"TLS_ECDH_anon_WITH_AES_256_CBC_SHA",
++		0	},
++	{
++		0,
++		"TLS_NULL_WITH_NULL_NULL",
++		0	},
++	{
++		1,
++		"TLS_RSA_WITH_NULL_MD5",
++		0	},
++	{
++		2,
++		"TLS_RSA_WITH_NULL_SHA",
++		0	},
++	{
++		4,
++		"TLS_RSA_WITH_RC4_128_MD5",
++		0	},
++	{
++		5,
++		"TLS_RSA_WITH_RC4_128_SHA",
++		0	},
++	{
++		10,
++		"TLS_RSA_WITH_3DES_EDE_CBC_SHA",
++		0	},
++	{
++		59,
++		"TLS_RSA_WITH_NULL_SHA256",
++		0	},
++	{
++		60,
++		"TLS_RSA_WITH_AES_128_CBC_SHA256",
++		0	},
++	{
++		61,
++		"TLS_RSA_WITH_AES_256_CBC_SHA256",
++		0	},
++	{
++		13,
++		"TLS_DH_DSS_WITH_3DES_EDE_CBC_SHA",
++		0	},
++	{
++		16,
++		"TLS_DH_RSA_WITH_3DES_EDE_CBC_SHA",
++		0	},
++	{
++		19,
++		"TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA",
++		0	},
++	{
++		22,
++		"TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA",
++		0	},
++	{
++		62,
++		"TLS_DH_DSS_WITH_AES_128_CBC_SHA256",
++		0	},
++	{
++		63,
++		"TLS_DH_RSA_WITH_AES_128_CBC_SHA256",
++		0	},
++	{
++		64,
++		"TLS_DHE_DSS_WITH_AES_128_CBC_SHA256",
++		0	},
++	{
++		103,
++		"TLS_DHE_RSA_WITH_AES_128_CBC_SHA256",
++		0	},
++	{
++		104,
++		"TLS_DH_DSS_WITH_AES_256_CBC_SHA256",
++		0	},
++	{
++		105,
++		"TLS_DH_RSA_WITH_AES_256_CBC_SHA256",
++		0	},
++	{
++		106,
++		"TLS_DHE_DSS_WITH_AES_256_CBC_SHA256",
++		0	},
++	{
++		107,
++		"TLS_DHE_RSA_WITH_AES_256_CBC_SHA256",
++		0	},
++	{
++		24,
++		"TLS_DH_anon_WITH_RC4_128_MD5",
++		0	},
++	{
++		27,
++		"TLS_DH_anon_WITH_3DES_EDE_CBC_SHA",
++		0	},
++	{
++		108,
++		"TLS_DH_anon_WITH_AES_128_CBC_SHA256",
++		0	},
++	{
++		109,
++		"TLS_DH_anon_WITH_AES_256_CBC_SHA256",
++		0	},
++	{
++		156,
++		"TLS_RSA_WITH_AES_128_GCM_SHA256",
++		0	},
++	{
++		157,
++		"TLS_RSA_WITH_AES_256_GCM_SHA384",
++		0	},
++	{
++		158,
++		"TLS_DHE_RSA_WITH_AES_128_GCM_SHA256",
++		0	},
++	{
++		159,
++		"TLS_DHE_RSA_WITH_AES_256_GCM_SHA384",
++		0	},
++	{
++		160,
++		"TLS_DH_RSA_WITH_AES_128_GCM_SHA256",
++		0	},
++	{
++		161,
++		"TLS_DH_RSA_WITH_AES_256_GCM_SHA384",
++		0	},
++	{
++		162,
++		"TLS_DHE_DSS_WITH_AES_128_GCM_SHA256",
++		0	},
++	{
++		163,
++		"TLS_DHE_DSS_WITH_AES_256_GCM_SHA384",
++		0	},
++	{
++		164,
++		"TLS_DH_DSS_WITH_AES_128_GCM_SHA256",
++		0	},
++	{
++		165,
++		"TLS_DH_DSS_WITH_AES_256_GCM_SHA384",
++		0	},
++	{
++		166,
++		"TLS_DH_anon_WITH_AES_128_GCM_SHA256",
++		0	},
++	{
++		167,
++		"TLS_DH_anon_WITH_AES_256_GCM_SHA384",
++		0	},
++	{
++		49187,
++		"TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256",
++		0	},
++	{
++		49188,
++		"TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384",
++		0	},
++	{
++		49189,
++		"TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256",
++		0	},
++	{
++		49190,
++		"TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384",
++		0	},
++	{
++		49191,
++		"TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256",
++		0	},
++	{
++		49192,
++		"TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384",
++		0	},
++	{
++		49193,
++		"TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256",
++		0	},
++	{
++		49194,
++		"TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384",
++		0	},
++	{
++		49195,
++		"TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256",
++		0	},
++	{
++		49196,
++		"TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384",
++		0	},
++	{
++		49197,
++		"TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256",
++		0	},
++	{
++		49198,
++		"TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384",
++		0	},
++	{
++		49199,
++		"TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256",
++		0	},
++	{
++		49200,
++		"TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384",
++		0	},
++	{
++		49201,
++		"TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256",
++		0	},
++	{
++		49202,
++		"TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384",
++		0	},
++	{
++		255,
++		"TLS_EMPTY_RENEGOTIATION_INFO_SCSV",
++		0	},
++	{
++		65408,
++		"SSL_RSA_WITH_RC2_CBC_MD5",
++		0	},
++	{
++		65409,
++		"SSL_RSA_WITH_IDEA_CBC_MD5",
++		0	},
++	{
++		65410,
++		"SSL_RSA_WITH_DES_CBC_MD5",
++		0	},
++	{
++		65411,
++		"SSL_RSA_WITH_3DES_EDE_CBC_MD5",
++		0	},
++	{
++		65535,
++		"SSL_NO_SUCH_CIPHERSUITE",
++		0	},
++	/***** /Patch additions *****/
+ {-1}
+ };
+ 
