Skip to content

Commit 6f525d7

Browse files
committed
Reject session argument to wrap_socket/wrap_bio
1 parent 2e334f4 commit 6f525d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/ssl/SSLContextBuiltins.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ static SSLEngine createSSLEngine(PNodeWithRaise node, PSSLContext context, boole
247247
@GenerateNodeFactory
248248
abstract static class WrapSocketNode extends PythonClinicBuiltinNode {
249249
@Specialization
250-
Object wrap(PSSLContext context, PSocket sock, boolean serverSide, Object serverHostnameObj, Object owner, @SuppressWarnings("unused") Object session,
250+
Object wrap(PSSLContext context, PSocket sock, boolean serverSide, Object serverHostnameObj, Object owner, @SuppressWarnings("unused") PNone session,
251251
@Cached StringNodes.CastToJavaStringCheckedNode cast) {
252252
String serverHostname = null;
253253
if (!(serverHostnameObj instanceof PNone)) {
@@ -279,7 +279,7 @@ protected ArgumentClinicProvider getArgumentClinic() {
279279
@GenerateNodeFactory
280280
abstract static class WrapBIONode extends PythonClinicBuiltinNode {
281281
@Specialization
282-
Object wrap(PSSLContext context, PMemoryBIO incoming, PMemoryBIO outgoing, boolean serverSide, Object serverHostnameObj, Object owner, @SuppressWarnings("unused") Object session,
282+
Object wrap(PSSLContext context, PMemoryBIO incoming, PMemoryBIO outgoing, boolean serverSide, Object serverHostnameObj, Object owner, @SuppressWarnings("unused") PNone session,
283283
@Cached StringNodes.CastToJavaStringCheckedNode cast) {
284284
String serverHostname = null;
285285
if (!(serverHostnameObj instanceof PNone)) {

0 commit comments

Comments
 (0)