Skip to content

Commit bdf4b60

Browse files
committed
[fix] add missing ASN1 factory methods
e.g. working `OpenSSL::ASN1::Null(nil)`
1 parent 5ec28c1 commit bdf4b60

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@ public static IRubyObject fact_BMPString(ThreadContext context, IRubyObject self
829829
return newInstance(context, self, "BMPString", args);
830830
}
831831

832-
@JRubyMethod(name="Nul", module=true, rest=true)
832+
@JRubyMethod(name={"Null", "Nul"}, module=true, rest=true) // TODO Nul name should be dropped
833833
public static IRubyObject fact_Null(ThreadContext context, IRubyObject self, IRubyObject[] args) {
834834
return newInstance(context, self, "Null", args);
835835
}
@@ -849,6 +849,11 @@ public static IRubyObject fact_GeneralizedTime(ThreadContext context, IRubyObjec
849849
return newInstance(context, self, "GeneralizedTime", args);
850850
}
851851

852+
@JRubyMethod(name="EndOfContent", module=true, rest=true)
853+
public static IRubyObject fact_EndOfContent(ThreadContext context, IRubyObject self, IRubyObject[] args) {
854+
return newInstance(context, self, "EndOfContent", args);
855+
}
856+
852857
@JRubyMethod(name="Sequence", module=true, rest=true)
853858
public static IRubyObject fact_Sequence(ThreadContext context, IRubyObject self, IRubyObject[] args) {
854859
return newInstance(context, self, "Sequence", args);

0 commit comments

Comments
 (0)