Commit 55f71cb
committed
[fix] ASN.1 BitString pad bits being out of range
has been surfacing on CI a few times as:
```
Java::JavaLang::IllegalArgumentException: pad bits cannot be greater
than 7 or less than 0
org.bouncycastle.asn1.ASN1BitString.<init>(Unknown Source)
org.bouncycastle.asn1.DERBitString.<init>(Unknown Source)
org.jruby.ext.openssl.ASN1$Primitive.toASN1Primitive(ASN1.java:1687)
org.jruby.ext.openssl.ASN1$Primitive.toASN1(ASN1.java:1620)
org.jruby.ext.openssl.ASN1$Constructive.addEntry(ASN1.java:1991)
org.jruby.ext.openssl.ASN1$Constructive.toASN1EncodableVector(ASN1.java:1955)
org.jruby.ext.openssl.ASN1$Constructive.toASN1(ASN1.java:1838)
org.jruby.ext.openssl.ASN1$Constructive.addEntry(ASN1.java:1994)
org.jruby.ext.openssl.ASN1$Constructive.toASN1EncodableVector(ASN1.java:1955)
org.jruby.ext.openssl.ASN1$Constructive.toASN1(ASN1.java:1838)
org.jruby.ext.openssl.ASN1$ASN1Data.toDER(ASN1.java:1421)
```1 parent 969f7dc commit 55f71cb
1 file changed
+8
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
945 | 945 | | |
946 | 946 | | |
947 | 947 | | |
948 | | - | |
| 948 | + | |
949 | 949 | | |
950 | 950 | | |
951 | 951 | | |
| |||
1669 | 1669 | | |
1670 | 1670 | | |
1671 | 1671 | | |
1672 | | - | |
1673 | | - | |
1674 | | - | |
1675 | | - | |
1676 | | - | |
1677 | | - | |
1678 | | - | |
1679 | | - | |
1680 | | - | |
1681 | | - | |
1682 | | - | |
1683 | | - | |
| 1672 | + | |
| 1673 | + | |
| 1674 | + | |
| 1675 | + | |
| 1676 | + | |
| 1677 | + | |
1684 | 1678 | | |
1685 | 1679 | | |
1686 | 1680 | | |
1687 | | - | |
| 1681 | + | |
1688 | 1682 | | |
1689 | 1683 | | |
1690 | 1684 | | |
| |||
0 commit comments