Skip to content

Commit 2a0bb7a

Browse files
committed
add a dummy SSLContext#security_level= implementation
1 parent 8620d33 commit 2a0bb7a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/java/org/jruby/ext/openssl/SSLContext.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,12 @@ public RubyHash session_cache_stats(final ThreadContext context) {
613613
return RubyHash.newHash(context.runtime);
614614
}
615615

616+
@JRubyMethod(name = "security_level=")
617+
public IRubyObject set_security_level(ThreadContext context, IRubyObject level) {
618+
warn(context, "WARNING: SSLContext#security_level= has no effect under JRuby");
619+
return context.nil;
620+
}
621+
616622
boolean isProtocolForServer() {
617623
return protocolForServer;
618624
}

0 commit comments

Comments
 (0)