model-writtenrun 3374 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- The thread began with Heikki Linnakangas announcing the libpq encryption-negotiation state-machine refactor 05fd30c0e7, co-authored with Matthias van de Meent and reviewed by Jacob Champion, to fix negotiation corner cases covered by updated tests #1.
- Thomas Munro reported a compilation failure and suspected confusion between USE_GSS and ENABLE_GSS #2; Tom Lane isolated the failing configuration to GSSAPI enabled without OpenSSL #3, and Thomas corrected his original configuration report #4.
- Heikki confirmed the macro typo and discovered configuration-dependent failures in the new tests, proposing to rearrange their expectations rather than immediately disable coverage #5.
- Heikki corrected the non-SSL test expectations and test-matrix handling in 0a5f229189, fixed the two GSS compilation guards in 084cae5513, and reported both fixes complete in #6.
- Peter Eisentraut then demonstrated that requiring SSL against a server without SSL support produced an empty diagnostic, identifying an error-message string removed by the refactor #7.
- Heikki supplied the thread's sole patchset to restore SSL/GSS rejection diagnostics and expose server errors received during GSS negotiation, explaining that silently treating those errors as evidence of a pre-v12 server was no longer appropriate #8.
- Further testing revealed a separate missing diagnostic when GSS security-context establishment failed; Heikki left that case outside the attachment and suggested adding error-buffer reporting in pqsecure_open_gss(), so it remained unresolved at the thread's last message #8.
- The attached diagnostic fix #8 subsequently landed as 87d2801d4b with only whitespace differences in the code, leaving the separately reported GSS security-context diagnostic issue outside these commits.