diff --git a/fix-ipv6-handshake-failed.patch b/fix-ipv6-handshake-failed.patch index 6278865c007608e0003361e4002fc4f8b36fd13b..3172d43357aae5fa3789078ad78774d83a2d1d0e 100644 --- a/fix-ipv6-handshake-failed.patch +++ b/fix-ipv6-handshake-failed.patch @@ -18,14 +18,14 @@ index 259dc99..f61c1f2 100644 @@ -112,7 +112,9 @@ _gnutls_server_name_recv_params(gnutls_session_t session, DECR_LEN(data_size, len); - if (type == 0) { /* NAME_DNS */ + if (type == 0) { /* NAME_DNS */ - if (!_gnutls_dnsname_is_valid((char *)p, len)) { + _gnutls_debug_log("HSK[%p]: recieve server name: '%.*s'\n", session, len, p); + /* fix ipv6 format server name invaild problem */ + if (!_gnutls_dnsname_is_valid((char*)p, len) && !_gnutls_ipv6_is_valid((char*)p, len)) { - _gnutls_handshake_log - ("HSK[%p]: Server name is not acceptable: '%.*s'\n", - session, (int)len, p); + _gnutls_handshake_log( + "HSK[%p]: Server name is not acceptable: '%.*s'\n", + session, (int)len, p); diff --git a/lib/str.h b/lib/str.h index 9f0e7d6..e0bca4b 100644 --- a/lib/str.h diff --git a/gnutls-3.8.0.tar.xz.sig b/gnutls-3.8.0.tar.xz.sig deleted file mode 100644 index f0f983a5d539a8373cd27877a556082ee2925039..0000000000000000000000000000000000000000 Binary files a/gnutls-3.8.0.tar.xz.sig and /dev/null differ diff --git a/gnutls-3.8.0.tar.xz b/gnutls-3.8.2.tar.xz similarity index 46% rename from gnutls-3.8.0.tar.xz rename to gnutls-3.8.2.tar.xz index caa33cfb1141725bb28053e0b476436031aaf4f5..914c17adf273b5478f73529b5636409ec8ac7ffc 100644 Binary files a/gnutls-3.8.0.tar.xz and b/gnutls-3.8.2.tar.xz differ diff --git a/gnutls-3.8.2.tar.xz.sig b/gnutls-3.8.2.tar.xz.sig new file mode 100644 index 0000000000000000000000000000000000000000..88ecb9b7665d5863ce0ef7137f25f333a5a32a12 Binary files /dev/null and b/gnutls-3.8.2.tar.xz.sig differ diff --git a/gnutls.spec b/gnutls.spec index 924b42ef76a04a1c4c27698e2615a7f566c16c0e..be0162b38e9ca7b08d8078476be08cb29bad78e4 100644 --- a/gnutls.spec +++ b/gnutls.spec @@ -1,5 +1,5 @@ Name: gnutls -Version: 3.8.0 +Version: 3.8.2 Release: 1 Summary: The GNU Secure Communication Protocol Library @@ -198,6 +198,9 @@ make check %{?_smp_mflags} %endif %changelog +* Mon Nov 20 2023 Funda Wang - 3.8.2-1 +- update to 3.8.2 + * Thu Jul 20 2023 zhengxiaoxiao - 3.8.0-1 - update to 3.8.0