otp
otp copied to clipboard
SSL app env server_session_cb and client_session_cb only exist in doc
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.
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
Yes this is a bug. Seems OTP-23.3 commit missed to fully separate client and server session cb functionality.