pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/ssldump/patches Add files I forgot to cvs add



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1cb5ba57d0ff
branches:  trunk
changeset: 457144:1cb5ba57d0ff
user:      manu <manu%pkgsrc.org@localhost>
date:      Wed Aug 18 23:19:26 2021 +0000

description:
Add files I forgot to cvs add
Thanks to wiz@ for pointing out

diffstat:

 security/ssldump/patches/patch-ssl_ssl_enum.c  |    92 +
 security/ssldump/patches/patch-ssl_ssl_enums.c |  1905 ++++++++++++++++++++++++
 2 files changed, 1997 insertions(+), 0 deletions(-)

diffs (truncated from 2005 to 300 lines):

diff -r ad9382ff7b42 -r 1cb5ba57d0ff security/ssldump/patches/patch-ssl_ssl_enum.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/ssldump/patches/patch-ssl_ssl_enum.c     Wed Aug 18 23:19:26 2021 +0000
@@ -0,0 +1,92 @@
+$NetBSD: patch-ssl_ssl_enum.c,v 1.1 2021/08/18 23:19:26 manu Exp $
+
+Handshake types from IANA registry
+https://www.iana.org/assignments/tls-parameters/tls-parameters.txt
+
+--- ssl/ssl_enum.c.orig        2021-08-18 10:22:12.808679651 +0200
++++ ssl/ssl_enum.c     2021-08-18 10:26:07.767517923 +0200
+@@ -208,8 +208,16 @@
+   Data *data;
+   {
+       return(0);
+   }
++static int decode_HandshakeType_error(ssl,dir,seg,data)
++  ssl_obj *ssl;
++  int dir;
++  segment *seg;
++  Data *data;
++  {
++      return(0);
++  }
+ decoder HandshakeType_decoder[]={
+       {
+               0,
+               "hello_request",
+@@ -225,8 +233,32 @@
+               "server_hello",
+               decode_HandshakeType_server_hello
+       },
+       {
++              3,
++              "hello_verify_request",
++              decode_HandshakeType_error
++      },
++      {
++              4,
++              "new_session_ticket",
++              decode_HandshakeType_error
++      },
++      {
++              5,
++              "end_of_early_data",
++              decode_HandshakeType_error
++      },
++      {
++              6,
++              "hello_retry_request",
++              decode_HandshakeType_error
++      },
++      {
++              8,
++              "encrypted_extensions",
++              decode_HandshakeType_error
++      },
+               11,
+               "certificate",
+               decode_HandshakeType_certificate
+       },
+@@ -259,8 +291,34 @@
+               20,
+               "finished",
+               decode_HandshakeType_finished
+       },
++      {
++              21,
++              "certificate_url",
++              decode_HandshakeType_error
++      },
++      {
++              22,
++              "certificate_status",
++              decode_HandshakeType_error
++      },
++      {
++              23,
++              "supplemental_data",
++              decode_HandshakeType_error
++      },
++      {
++              24,
++              "key_update",
++              decode_HandshakeType_error
++      },
++      {
++              254,
++              "message_hash",
++              decode_HandshakeType_error
++      },
++      {
+ {0}
+ };
+ 
+ decoder cipher_suite_decoder[]={
diff -r ad9382ff7b42 -r 1cb5ba57d0ff security/ssldump/patches/patch-ssl_ssl_enums.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/ssldump/patches/patch-ssl_ssl_enums.c    Wed Aug 18 23:19:26 2021 +0000
@@ -0,0 +1,1905 @@
+$NetBSD: patch-ssl_ssl_enums.c,v 1.1 2021/08/18 23:19:26 manu Exp $
+
+Content, certificate, compression types, alerts and TLSv1.3 ciphers  
+from IANA registry
+https://www.iana.org/assignments/tls-parameters/tls-parameters.txt
+
+--- ssl/ssl.enums.c.orig       2021-08-18 10:03:32.285449709 +0200
++++ ssl/ssl.enums.c    2021-08-18 11:23:47.112269067 +0200
+@@ -150,8 +150,23 @@
+               23,
+               "application_data",
+               decode_ContentType_application_data
+       },
++      {
++              24,
++              "heartbeat",
++              decode_ContentType_application_data
++      },
++      {
++              25,
++              "tls12_cid",
++              decode_ContentType_application_data
++      },
++      {
++              26,
++              "ACK",
++              decode_ContentType_application_data
++      },
+ {0}
+ };
+ 
+ static int decode_HandshakeType_HelloRequest(ssl,dir,seg,data)
+@@ -502,8 +517,12 @@
+ };
+ 
+ decoder cipher_suite_decoder[]={
+       {
++              0,
++              "TLS_NULL_WITH_NULL_NULL",
++              0       },
++      {
+               1,
+               "TLS_RSA_WITH_NULL_MD5",
+               0       },
+       {
+@@ -610,312 +629,1464 @@
+               27,
+               "TLS_DH_anon_WITH_3DES_EDE_CBC_SHA",
+               0       },
+       {
+-              47,
+-              "TLS_RSA_WITH_AES_128_CBC_SHA",
+-              0       },
++              30,
++              "TLS_KRB5_WITH_DES_CBC_SHA",
++              0       },
++      {
++              31,
++              "TLS_KRB5_WITH_3DES_EDE_CBC_SHA",
++              0       },
++      {
++              32,
++              "TLS_KRB5_WITH_RC4_128_SHA",
++              0       },
++      {
++              33,
++              "TLS_KRB5_WITH_IDEA_CBC_SHA",
++              0       },
++      {
++              34,
++              "TLS_KRB5_WITH_DES_CBC_MD5",
++              0       },
++      {
++              35,
++              "TLS_KRB5_WITH_3DES_EDE_CBC_MD5",
++              0       },
++      {
++              36,
++              "TLS_KRB5_WITH_RC4_128_MD5",
++              0       },
++      {
++              37,
++              "TLS_KRB5_WITH_IDEA_CBC_MD5",
++              0       },
++      {
++              38,
++              "TLS_KRB5_EXPORT_WITH_DES_CBC_40_SHA",
++              0       },
++      {
++              39,
++              "TLS_KRB5_EXPORT_WITH_RC2_CBC_40_SHA",
++              0       },
++      {
++              40,
++              "TLS_KRB5_EXPORT_WITH_RC4_40_SHA",
++              0       },
++      {
++              41,
++              "TLS_KRB5_EXPORT_WITH_DES_CBC_40_MD5",
++              0       },
+       {
+-              48,
+-              "TLS_DH_DSS_WITH_AES_128_CBC_SHA",
+-              0       },
++              42,
++              "TLS_KRB5_EXPORT_WITH_RC2_CBC_40_MD5",
++              0       },
++      {
++              43,
++              "TLS_KRB5_EXPORT_WITH_RC4_40_MD5",
++              0       },
+       {
+-              49,
+-              "TLS_DH_RSA_WITH_AES_128_CBC_SHA",
+-              0       },
++              44,
++              "TLS_PSK_WITH_NULL_SHA",
++              0       },
+       {
+-              50,
+-              "TLS_DHE_DSS_WITH_AES_128_CBC_SHA",
+-              0       },
++              45,
++              "TLS_DHE_PSK_WITH_NULL_SHA",
++              0       },
+       {
+-              51,
+-              "TLS_DHE_RSA_WITH_AES_128_CBC_SHA",
+-              0       },
++              46,
++              "TLS_RSA_PSK_WITH_NULL_SHA",
++              0       },
+       {
+-              52,
+-              "TLS_DH_anon_WITH_AES_128_CBC_SHA",
+-              0       },
++              47,
++              "TLS_RSA_WITH_AES_128_CBC_SHA",
++              0       },
+       {
+-              53,
+-              "TLS_RSA_WITH_AES_256_CBC_SHA",
+-              0       },
++              48,
++              "TLS_DH_DSS_WITH_AES_128_CBC_SHA",
++              0       },
+       {
+-              54,
+-              "TLS_DH_DSS_WITH_AES_256_CBC_SHA",
+-              0       },
++              49,
++              "TLS_DH_RSA_WITH_AES_128_CBC_SHA",
++              0       },
+       {
+-              55,
+-              "TLS_DH_RSA_WITH_AES_256_CBC_SHA",
+-              0       },
++              50,
++              "TLS_DHE_DSS_WITH_AES_128_CBC_SHA",
++              0       },
+       {
+-              56,
+-              "TLS_DHE_DSS_WITH_AES_256_CBC_SHA",
+-              0       },
++              51,
++              "TLS_DHE_RSA_WITH_AES_128_CBC_SHA",
++              0       },
+       {
+-              57,
+-              "TLS_DHE_RSA_WITH_AES_256_CBC_SHA",
+-              0       },
++              52,
++              "TLS_DH_anon_WITH_AES_128_CBC_SHA",
++              0       },
+       {
+-              58,
+-              "TLS_DH_anon_WITH_AES_256_CBC_SHA",
+-              0       },
++              53,
++              "TLS_RSA_WITH_AES_256_CBC_SHA",
++              0       },
+       {
+-              96,
+-              "TLS_RSA_EXPORT1024_WITH_RC4_56_MD5",
++              54,
++              "TLS_DH_DSS_WITH_AES_256_CBC_SHA",
+               0       },
+       {
+-              97,
+-              "TLS_RSA_EXPORT1024_WITH_RC2_CBC_56_MD5",
++              55,
++              "TLS_DH_RSA_WITH_AES_256_CBC_SHA",
+               0       },
+       {
+-              98,
+-              "TLS_RSA_EXPORT1024_WITH_DES_CBC_SHA",
++              56,
++              "TLS_DHE_DSS_WITH_AES_256_CBC_SHA",
+               0       },
+       {



Home | Main Index | Thread Index | Old Index