Skip to content

Commit ba7cb83

Browse files
committed
no dup-ing for X509 Store/StoreContext
1 parent 5b5e0e5 commit ba7cb83

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ public static void createX509Store(final Ruby runtime, final RubyModule X509) {
7575
Store.addReadWriteAttribute(context, "error_string");
7676
Store.addReadWriteAttribute(context, "chain");
7777
Store.defineAnnotatedMethods(X509Store.class);
78+
Store.undefineMethod("dup");
7879

7980
X509StoreContext.createX509StoreContext(runtime, X509);
8081
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ public IRubyObject allocate(Ruby runtime, RubyClass klass) {
7373
public static void createX509StoreContext(final Ruby runtime, final RubyModule X509) {
7474
RubyClass StoreContext = X509.defineClassUnder("StoreContext", runtime.getObject(), X509STORECTX_ALLOCATOR);
7575
StoreContext.defineAnnotatedMethods(X509StoreContext.class);
76+
StoreContext.undefineMethod("dup");
7677
}
7778

7879
private static RubyClass _StoreContext(final Ruby runtime) {

0 commit comments

Comments
 (0)