]> git.sur5r.net Git - openldap/commit
libldap/tls.c: change tls_verify_cb to no longer ignore verification errors.
authorHoward Chu <hyc@openldap.org>
Wed, 10 May 2000 17:07:09 +0000 (17:07 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 10 May 2000 17:07:09 +0000 (17:07 +0000)
commitf0c4f83ea28b4fd85378b539aef5ab73b1b66bc4
tree5a79810a6743d99bc59e4baf5d849a0da99242ef
parentdcad3d956996051178e67df266a2d300a3413f94
libldap/tls.c: change tls_verify_cb to no longer ignore verification errors.
This means a ldaps connection may drop before any LDAP protocol exchange
occurs (due to expired cert, unrecognized CAs, etc.).
  Change ldap_pvt_tls_connect to copy any TLS error string to ld_error upon
connection failure, otherwise client just sees "can't contact LDAP server."

slapd/connection.c: add flush/delay when SSL_accept fails, to allow any
TLS alerts we generated to propagate back to the client. (Which will then
be picked up by ldap_pvt_tls_connect on the client...)
include/ldap_pvt.h
libraries/libldap/tls.c
servers/slapd/connection.c