{"author":"Viktor Szakats","author_email":"commit@vsz.me","author_time":1752931291,"commit_time":1753005836,"committer":"Viktor Szakats","committer_email":"commit@vsz.me","hash":"bf9d9fe0bd43757c1ac32129678c6321b5559a42","message":"multissl: initialize when requesting a random number\n\nTo fix test 1308 in MultiSSL builds.\n\nFailure was caused by the random number generator virtual function being\nNULL, instead of pointing to the implementation in the runtime-selected\nTLS backend. This could happen in MultiSSL builds when a functionality\nwas asking for a random number without triggering a VTLS function table\ninitialization first. Such functionality is MIME, or form data via MIME.\n\nThe reason CI did not catch it in an earlier MultiSSL GHA/windows job,\nis that it was a debug-enabled one. In debug-enabled builds the test\nrunner was overriding the random number generator for all tests.\n\nFixed this by moving the override to the tests requiring it, via\n1fcf22585fa3d87a50c9dddc688d962978c0c120 #17971, enabling debug builds\nto catch this issue.\n\nEnable MultiSSL in two CI jobs, to verify this patch.\n\nFixing:\n```\ntest 1308...[formpost tests]\n\nlibtests returned 44, when expecting 0\n 1308: exit FAILED\n[...]\n=== Start of file stderr1308\n URL: log/3/test-1308\n tests/libtest/lib1308.c:70 Assertion 'res == 0' FAILED: curl_formget returned error\n tests/libtest/lib1308.c:72 Assertion 'total_size == 518' FAILED: curl_formget got wrong size back\n tests/libtest/lib1308.c:88 Assertion 'res == 0' FAILED: curl_formget returned error\n tests/libtest/lib1308.c:89 Assertion 'total_size == 899' FAILED: curl_formget got wrong size back\n```\nRef: https://github.com/curl/curl/actions/runs/16387693424/job/46309536359?pr=17963#step:16:2515\n\nBug: https://github.com/curl/curl/pull/17963#issuecomment-3092282057\n\nCloses #17970\n","parents":["f2d1d4747db8ae4240c022b5c647782e07cbb264"],"tree_hash":"ee7338fe3f9604b473377ea38b41f4bd729a801d"}