https://bugs.winehq.org/show_bug.cgi?id=54724
--- Comment #4 from Hans Leidekker hans@meelstraat.net --- (In reply to Alex Henrie from comment #3)
Wait a minute: tls_w.c says "Copyright 2008-2022 The OpenLDAP Foundation" but I can't find it in the OpenLDAP Git repository at https://git.openldap.org/openldap/openldap. Where did that file come from? Was it written specifically for Wine?
Yes, I wrote it to replace the OpenSSL/GnutTLS backends which would have required us to build one of those as PE. Another reason is that using SSPI integrates with Windows settings w.r.t. certificate verification, allowed protocol versions and so on.
I hope to upstream it at some point.