Skip to content

Commit 150288e

Browse files
authored
Merge pull request #2924 from HoneyryderChuck/patch-3
fix OpenSSL#session_new_cb signature
2 parents ce47189 + 7b0daa8 commit 150288e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

stdlib/openssl/0/openssl.rbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8570,15 +8570,15 @@ module OpenSSL
85708570
# The callback is invoked with an SSLSocket. If `false` is returned the session
85718571
# will be removed from the internal cache.
85728572
#
8573-
def session_new_cb: () -> (^(SSLSocket) -> untyped | nil)
8573+
def session_new_cb: () -> (^(SSLSocket, Session) -> untyped | nil)
85748574

85758575
# <!-- rdoc-file=ext/openssl/ossl_ssl.c -->
85768576
# A callback invoked when a new session was negotiated.
85778577
#
85788578
# The callback is invoked with an SSLSocket. If `false` is returned the session
85798579
# will be removed from the internal cache.
85808580
#
8581-
def session_new_cb=: (^(SSLSocket) -> untyped) -> ^(SSLSocket) -> untyped
8581+
def session_new_cb=: (^(SSLSocket, Session) -> untyped) -> ^(SSLSocket, Session) -> untyped
85828582

85838583
# <!--
85848584
# rdoc-file=ext/openssl/ossl_ssl.c

0 commit comments

Comments
 (0)