File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
src/main/java/org/jruby/ext/openssl Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ before_script:
24
24
script : jruby -rbundler/setup -S rake test
25
25
26
26
matrix :
27
+ fast_finish : true
27
28
allow_failures :
28
29
- rvm : jruby-head
29
30
- script : jruby -rbundler/setup -S rake integration:install integration:test
@@ -64,3 +65,7 @@ notifications:
64
65
template :
65
66
- " %{repository} (%{branch}:%{commit} by %{author}): %{message} (%{build_url})"
66
67
skip_join : true
68
+
69
+ cache :
70
+ directories :
71
+ - $HOME/.m2
Original file line number Diff line number Diff line change @@ -1043,15 +1043,15 @@ public IRubyObject peer_cert_chain(final ThreadContext context) {
1043
1043
if ( engine == null ) return runtime .getNil ();
1044
1044
1045
1045
try {
1046
- javax . security . cert . Certificate [] certs = engine .getSession ().getPeerCertificateChain ();
1046
+ Certificate [] certs = engine .getSession ().getPeerCertificates ();
1047
1047
IRubyObject [] cert_chain = new IRubyObject [ certs .length ];
1048
1048
for ( int i = 0 ; i < certs .length ; i ++ ) {
1049
1049
cert_chain [i ] = X509Cert .wrap (context , certs [i ]);
1050
1050
}
1051
1051
return runtime .newArrayNoCopy (cert_chain );
1052
1052
}
1053
- catch (javax . security . cert . CertificateEncodingException e ) {
1054
- throw X509Cert .newCertificateError (getRuntime () , e );
1053
+ catch (CertificateEncodingException e ) {
1054
+ throw X509Cert .newCertificateError (runtime , e );
1055
1055
}
1056
1056
catch (SSLPeerUnverifiedException e ) {
1057
1057
if (runtime .isVerbose () || OpenSSL .isDebug (runtime )) {
You can’t perform that action at this time.
0 commit comments