Skip to content

Commit d1386b1

Browse files
committed
need a todo/hack for MRI openssl gem 2.0 support (on DH#set_pqg)
1 parent 17d0549 commit d1386b1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/jopenssl24.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,12 @@ def set_key(pub_key, priv_key)
2424

2525
def set_pqg(p, q, g)
2626
self.p = p
27-
self.q = q
27+
# TODO self.q = q
28+
if respond_to?(:q)
29+
self.q = q
30+
else
31+
OpenSSL.warn "JRuby-OpenSSL does not support setting q param on #{inspect}" if q
32+
end
2833
self.g = g
2934
self
3035
end

0 commit comments

Comments
 (0)