File tree Expand file tree Collapse file tree
src/main/java/org/jruby/ext/openssl Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55module OpenSSL
66
7- module SSL
8- class SSLContext
9- # OpenSSL 1.1.0 introduced "security level"
10- def security_level ; 0 end
11- def security_level = ( level ) ; raise NotImplementedError end
12- end
13- end
14-
157 module PKey
168
179 class DH
Original file line number Diff line number Diff line change @@ -567,6 +567,11 @@ public RubyHash session_cache_stats(final ThreadContext context) {
567567 return RubyHash .newHash (context .runtime );
568568 }
569569
570+ @ JRubyMethod (name = "security_level" )
571+ public IRubyObject security_level (ThreadContext context ) {
572+ return context .runtime .newFixnum (0 );
573+ }
574+
570575 @ JRubyMethod (name = "security_level=" )
571576 public IRubyObject set_security_level (ThreadContext context , IRubyObject level ) {
572577 warn (context , "WARNING: SSLContext#security_level= has no effect under JRuby" );
You can’t perform that action at this time.
0 commit comments