From 7b0daa83d1a6e35d317736eae85c9754792158cc Mon Sep 17 00:00:00 2001 From: Tiago Date: Tue, 7 Apr 2026 11:29:20 +0100 Subject: [PATCH] fix OpenSSL#session_new_cb signature the callback for #session_new_cb receives two arguments: the ssl socket and the session --- stdlib/openssl/0/openssl.rbs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/openssl/0/openssl.rbs b/stdlib/openssl/0/openssl.rbs index 200ee8069..ebfde3072 100644 --- a/stdlib/openssl/0/openssl.rbs +++ b/stdlib/openssl/0/openssl.rbs @@ -8570,7 +8570,7 @@ module OpenSSL # The callback is invoked with an SSLSocket. If `false` is returned the session # will be removed from the internal cache. # - def session_new_cb: () -> (^(SSLSocket) -> untyped | nil) + def session_new_cb: () -> (^(SSLSocket, Session) -> untyped | nil) # # A callback invoked when a new session was negotiated. @@ -8578,7 +8578,7 @@ module OpenSSL # The callback is invoked with an SSLSocket. If `false` is returned the session # will be removed from the internal cache. # - def session_new_cb=: (^(SSLSocket) -> untyped) -> ^(SSLSocket) -> untyped + def session_new_cb=: (^(SSLSocket, Session) -> untyped) -> ^(SSLSocket, Session) -> untyped #