otp icon indicating copy to clipboard operation
otp copied to clipboard

SSL app env server_session_cb and client_session_cb only exist in doc

Open zmstone opened this issue 1 month ago • 2 comments

I tried to grep (client|server)_session_cb in the code base (OTP-28.2), resulted only with matches in doc.

lib/ssl/doc/ssl_app.md:75:4:  `client_session_cb` and `server_session_cb`
lib/ssl/doc/ssl_app.md:77:6:- **`client_session_cb = atom() <optional>`** - Since OTP-23.3 Name client of
lib/ssl/doc/ssl_app.md:81:6:- **`server_session_cb = atom() <optional>`** - Since OTP-23.3 Name of the

The correct config key name seem to be session_cb for both client and server.

zmstone avatar Dec 11 '25 20:12 zmstone

session_cb is documented to be deprecated since OTP 23, but it's actually the only available option (at least on OTP 28).

session_cb = atom() <optional> - Deprecated Since OTP-23.3 replaced by client_session_cb and server_session_cb

zmstone avatar Dec 12 '25 10:12 zmstone

Yes this is a bug. Seems OTP-23.3 commit missed to fully separate client and server session cb functionality.

IngelaAndin avatar Dec 16 '25 10:12 IngelaAndin