File tree 1 file changed +6
-9
lines changed
src/main/java/org/jruby/ext/openssl
1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -663,17 +663,14 @@ private void finishInitialHandshake() {
663
663
session .putValue (SESSION_SOCKET_ID , getObjectId ());
664
664
}
665
665
}
666
-
666
+
667
+ // NOTE: gets called on negotiation connect/accept - not really on RE-negotiation as intended?!
667
668
private void callRenegotiationCallback (final ThreadContext context ) throws RaiseException {
668
669
IRubyObject renegotiationCallback = sslContext .getInstanceVariable ("@renegotiation_cb" );
669
- if (renegotiationCallback == null || renegotiationCallback .isNil ()) {
670
- return ;
671
- }
672
- else {
673
- // the return of the Proc is not important
674
- // Can throw ruby exception to "disallow" renegotiations
675
- renegotiationCallback .callMethod (context , "call" , this );
676
- }
670
+ if (renegotiationCallback == null || renegotiationCallback .isNil ()) return ;
671
+ // the return of the Proc is not important
672
+ // Can throw ruby exception to "disallow" re-negotiations
673
+ renegotiationCallback .callMethod (context , "call" , this );
677
674
}
678
675
679
676
public int write (ByteBuffer src , boolean blocking ) throws SSLException , IOException {
You can’t perform that action at this time.
0 commit comments