Skip to content

Commit 74e742e

Browse files
committed
avoid deprecated methods
1 parent d1386b1 commit 74e742e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/org/jruby/ext/openssl/PKeyDH.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ public IRubyObject get_p() {
351351

352352
@JRubyMethod(name = "p=")
353353
public synchronized IRubyObject set_p(IRubyObject arg) {
354-
this.dh_p = BN.getBigInteger(arg);
354+
this.dh_p = BN.asBigInteger(arg);
355355
return arg;
356356
}
357357

@@ -363,7 +363,7 @@ public IRubyObject get_g() {
363363

364364
@JRubyMethod(name = "g=")
365365
public synchronized IRubyObject set_g(IRubyObject arg) {
366-
this.dh_g = BN.getBigInteger(arg);
366+
this.dh_g = BN.asBigInteger(arg);
367367
return arg;
368368
}
369369

@@ -383,7 +383,7 @@ public PublicKey getPublicKey() {
383383

384384
@JRubyMethod(name = "pub_key=")
385385
public synchronized IRubyObject set_pub_key(IRubyObject arg) {
386-
this.dh_y = BN.getBigInteger(arg);
386+
this.dh_y = BN.asBigInteger(arg);
387387
return arg;
388388
}
389389

@@ -403,7 +403,7 @@ public PrivateKey getPrivateKey() {
403403

404404
@JRubyMethod(name = "priv_key=")
405405
public synchronized IRubyObject set_priv_key(IRubyObject arg) {
406-
this.dh_x = BN.getBigInteger(arg);
406+
this.dh_x = BN.asBigInteger(arg);
407407
return arg;
408408
}
409409

0 commit comments

Comments
 (0)