Permalink
Browse files

Fix verify_result for Ruby 1.8.[56]

  • Loading branch information...
gmallard committed Mar 6, 2012
1 parent 1c0a64c commit d199d91776279684d16427d3e2768d73e67e2bf2
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/stomp/connection.rb
View
@@ -668,7 +668,12 @@ def ssl.ready?
end
ssl.connect
if @ssl != true
- @ssl.verify_result = ssl.verify_result # Make available to client
+ # Pass back results if possible
+ if RUBY_VERSION =~ /1\.8\.[56]/
+ @ssl.verify_result = "N/A for Ruby #{RUBY_VERSION}"
+ else
+ @ssl.verify_result = ssl.verify_result
+ end
@ssl.peer_cert = ssl.peer_cert
end
ssl

0 comments on commit d199d91

Please sign in to comment.