File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ def test_PUBKEY
183
183
assert_equal asn1 . value [ 0 ] . value [ 1 ] . value [ 2 ] . value , OpenSSL ::ASN1 . decode ( dup_der ) . value [ 0 ] . value [ 1 ] . value [ 2 ] . value
184
184
185
185
assert_equal pem , dup_public ( dsa512 ) . export
186
- end
186
+ end if ! defined? ( JRUBY_VERSION ) || JRUBY_VERSION > '9.1' # set_pqg only since Ruby 2.3
187
187
188
188
def test_read_DSAPublicKey_pem
189
189
# NOTE: where is the standard? PKey::DSA.new can read only PEM
Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ def test_RSAPublicKey
177
177
178
178
expected = "b48c0b2bbd35b906c5af4e46ed7355e4aaeadc99"
179
179
assert_equal expected , OpenSSL ::Digest ::SHA1 . hexdigest ( key . to_der )
180
- end
180
+ end if ! defined? ( JRUBY_VERSION ) || JRUBY_VERSION > '9.1' # set_key only since Ruby 2.3
181
181
182
182
private
183
183
You can’t perform that action at this time.
0 commit comments