[gnutls-devel] GnuTLS | GnuTLS 3.7.8 MinGW64 Test x509cert-ct fails DERs do not match (#1450)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Sat Jan 28 12:32:51 CET 2023



acstime created an issue: https://gitlab.com/gnutls/gnutls/-/issues/1450



I am not an experienced GnuTLS developer but interested and trying to help isolate confirmed behavior under MSYS2/MinGW64 port in MS Windows x64, [failure to re-handshake](https://github.com/msys2/MINGW-packages/issues/14739#issuecomment-1380526887).
Summarized test suite and dependency results posted there as well.

Test x509cert-ct fails massively. Small sections of the two test data sets appear to be completely different
I modified test source as follows, only for reporting purposes (line 253):
```
xder.data = ct_extension_der;
xder.size = sizeof(ct_extension_der);
if (ext_out.size != xder.size ||
    memcmp(ext_out.data, xder.data, xder.size) != 0)
  printf ("ext_out.data (%i bytes):\n", ext_out.size);
  for (i=0; i < ext_out.size; ++i)
        printf("%02x ", ext_out.data[i]);
  printf ("\n\nxder.data (%i bytes):\n", xder.size);
  for (i=0; i < xder.size; ++i)
        printf("%02x ", xder.data[i]);
  printf("\n\n");
  fail("DERs do not match");
```
Produces:
```
ext_out.data (486 bytes):
04 82 01 e2 01 e0 00 75 00 dd eb 1d 2b 7a 0d 4f a6 20 8b 81 ad 81 68 70 7e 2e 8e 9d 01 d5 5c 88 8d 3d 11 c4 cd b6 ec be cc 00 00 00 00 00 00 00 00 00 00 04 03 00 46 30 44 02 20 4b 95 1e ad 31 c9 77 cd f1 73 f4 2f 2f 1e 4c 42 41 dd 73 00 2a 16 9e ad c9 f4 12 a8 ed 80 d5 0f 02 20 4d fb fa 54 27 d1 30 17 8c a1 da 14 54 d5 4d ca 91 dc d3 23 e2 83 7a b2 d9 0a 5d 34 e0 00 c5 72 00 77 00 a4 b9 09 90 b4 18 58 14 87 bb 13 a2 cc 67 70 0a 3c 35 98 04 f9 1b df b8 e3 77 cd 0e c8 0d dc 10 00 00 00 00 00 00 00 00 00 00 04 03 00 48 30 46 02 21 00 fa 0c 53 f8 b3 d0 d7 b8 be 03 38 71 0a 25 ef 32 d5 4b cc 44 73 5f 27 6a d7 3d 12 02 e9 3a ab ef 02 21 00 b7 2b 7a 9c c8 3b d7 cf da c5 e7 20 d5 f9 36 75 c0 ca 08 ff 04 a4 42 56 9d a6 e7 0d 1c 0c 6f 4d 00 76 00 ee 4b bd b7 75 ce 60 ba e1 42 69 1f ab e1 9e 66 a3 0f 7e 5f b0 72 d8 83 00 c4 7b 89 7a a8 fd cb 00 00 00 00 00 00 00 00 00 00 04 03 00 47 30 45 02 20 7f 29 64 de 5d 89 ed a5 3a de a2 d8 d4 b9 ef 1c 5d ba 8d 76 98 66 78 5e de 9c 3c 04 55 64 28 a9 02 21 00 c4 e1 97 2b ad e0 0a 69 74 8d 99 e5 04 03 7f e3 56 0c 08 d1 74 70 29 7d ac c2 11 98 43 9e 7d f6 00 76 00 bc 78 e1 df c5 f6 3c 68 46 49 33 4d a1 0f a1 5f 09 79 69 20 09 c0 81 b4 f3 f6 91 7f 3e d9 b8 a5 00 00 00 00 00 00 00 00 00 00 04 03 00 47 30 45 02 20 3b 47 9f ea bd de 7f e6 18 6c dd 15 96 fd 3c 89 9e bc 4d ed f3 28 b8 16 91 0a 42 1d df 37 e1 dd 02 21 00 eb 5f 2d 37 f9 51 f6 6f 1d 87 40 55 7c 70 09 f6 8d c2 01 3e 77 b1 68 ce df bb 05 84 73 cd 39 3e 

xder.data (486 bytes):
04 82 01 e2 01 e0 00 75 00 dd eb 1d 2b 7a 0d 4f a6 20 8b 81 ad 81 68 70 7e 2e 8e 9d 01 d5 5c 88 8d 3d 11 c4 cd b6 ec be cc 00 00 01 5a ec a4 b6 4a 00 00 04 03 00 46 30 44 02 20 4b 95 1e ad 31 c9 77 cd f1 73 f4 2f 2f 1e 4c 42 41 dd 73 00 2a 16 9e ad c9 f4 12 a8 ed 80 d5 0f 02 20 4d fb fa 54 27 d1 30 17 8c a1 da 14 54 d5 4d ca 91 dc d3 23 e2 83 7a b2 d9 0a 5d 34 e0 00 c5 72 00 77 00 a4 b9 09 90 b4 18 58 14 87 bb 13 a2 cc 67 70 0a 3c 35 98 04 f9 1b df b8 e3 77 cd 0e c8 0d dc 10 00 00 01 5a ec a4 b6 e8 00 00 04 03 00 48 30 46 02 21 00 fa 0c 53 f8 b3 d0 d7 b8 be 03 38 71 0a 25 ef 32 d5 4b cc 44 73 5f 27 6a d7 3d 12 02 e9 3a ab ef 02 21 00 b7 2b 7a 9c c8 3b d7 cf da c5 e7 20 d5 f9 36 75 c0 ca 08 ff 04 a4 42 56 9d a6 e7 0d 1c 0c 6f 4d 00 76 00 ee 4b bd b7 75 ce 60 ba e1 42 69 1f ab e1 9e 66 a3 0f 7e 5f b0 72 d8 83 00 c4 7b 89 7a a8 fd cb 00 00 01 5a ec a4 b6 9d 00 00 04 03 00 47 30 45 02 20 7f 29 64 de 5d 89 ed a5 3a de a2 d8 d4 b9 ef 1c 5d ba 8d 76 98 66 78 5e de 9c 3c 04 55 64 28 a9 02 21 00 c4 e1 97 2b ad e0 0a 69 74 8d 99 e5 04 03 7f e3 56 0c 08 d1 74 70 29 7d ac c2 11 98 43 9e 7d f6 00 76 00 bc 78 e1 df c5 f6 3c 68 46 49 33 4d a1 0f a1 5f 09 79 69 20 09 c0 81 b4 f3 f6 91 7f 3e d9 b8 a5 00 00 01 5a ec a4 b7 40 00 00 04 03 00 47 30 45 02 20 3b 47 9f ea bd de 7f e6 18 6c dd 15 96 fd 3c 89 9e bc 4d ed f3 28 b8 16 91 0a 42 1d df 37 e1 dd 02 21 00 eb 5f 2d 37 f9 51 f6 6f 1d 87 40 55 7c 70 09 f6 8d c2 01 3e 77 b1 68 ce df bb 05 84 73 cd 39 3e 
```

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/issues/1450
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20230128/6b4e6270/attachment.html>


More information about the Gnutls-devel mailing list