Skip to content

Commit

Permalink
10.5.21 release
Browse files Browse the repository at this point in the history
  • Loading branch information
kjur committed May 23, 2022
1 parent f11615a commit 4274a59
Show file tree
Hide file tree
Showing 32 changed files with 6,490 additions and 6,127 deletions.
13 changes: 12 additions & 1 deletion ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@

ChangeLog for jsrsasign

* Changes from 10.5.20 to next release
DERBitString, KeyUsage and tsp PKIFailureInfo fix
* Changes from 10.5.20 to 10.5.21 (2022-May-23)
- src/asn1x509.js
- KeyUsage bugfix, refactoring
- src/asn1tsp.js
- PKIFailureInfo bugfix, refactoring
- src/asn1.js
- DERBitString refactoring
- src/base64x.js
- new function namearraytobinstr added
- src/asn1ocsp.js
- ResponderID API document fix
- test/qunit-do-{asn1,asn1tsp,asn1x509,base64x,x509-ext}.html
- add and fix some test cases for above

OCSP ResponderID object udpate
* Changes from 10.5.19 to 10.5.20 (2022-Apr-25)
Expand Down
8 changes: 4 additions & 4 deletions api/files.html
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ <h2><a href="symbols/src/asn1-1.0.js.html">asn1-1.0.js</a></h2>


<dt class="heading">Version:</dt>
<dd>jsrsasign 10.5.16 asn1 1.0.24 (2022-Apr-08)</dd>
<dd>jsrsasign 10.5.21 asn1 1.0.25 (2022-May-23)</dd>



Expand Down Expand Up @@ -643,7 +643,7 @@ <h2><a href="symbols/src/asn1tsp-1.0.js.html">asn1tsp-1.0.js</a></h2>


<dt class="heading">Version:</dt>
<dd>jsrsasign 10.5.19 asn1tsp 2.0.7 (2022-Apr-23)</dd>
<dd>jsrsasign 10.5.21 asn1tsp 2.0.8 (2022-May-23)</dd>



Expand All @@ -662,7 +662,7 @@ <h2><a href="symbols/src/asn1x509-1.0.js.html">asn1x509-1.0.js</a></h2>


<dt class="heading">Version:</dt>
<dd>jsrsasign 10.5.17 asn1x509 2.1.14 (2022-Apr-14)</dd>
<dd>jsrsasign 10.5.21 asn1x509 2.1.15 (2022-May-23)</dd>



Expand All @@ -681,7 +681,7 @@ <h2><a href="symbols/src/base64x-1.1.js.html">base64x-1.1.js</a></h2>


<dt class="heading">Version:</dt>
<dd>jsrsasign 10.5.17 base64x 1.1.26 (2022-Apr-14)</dd>
<dd>jsrsasign 10.5.21 base64x 1.1.27 (2022-May-23)</dd>



Expand Down
5 changes: 3 additions & 2 deletions api/symbols/KJUR.asn1.DERBitString.html
Original file line number Diff line number Diff line change
Expand Up @@ -790,15 +790,16 @@ <h1 class="classTitle">
set ASN.1 DER BitString by binary string<br/>
Its unused bits will be calculated automatically by length of
'binaryValue'. <br/>
NOTE: Trailing zeros '0' will be ignored.
NOTE: Leading zeros '0' will be ignored.


</div>



<pre class="code">o = new KJUR.asn1.DERBitString();
o.setByBinaryString("01011");</pre>
o.setByBinaryString("1011");
o.setByBinaryString("001"); // leading zeros ignored</pre>



Expand Down
37 changes: 23 additions & 14 deletions api/symbols/KJUR.asn1.tsp.PKIFailureInfo.html
Original file line number Diff line number Diff line change
Expand Up @@ -558,18 +558,11 @@ <h1 class="classTitle">
<div class="fixedFont">
<b><a href="../symbols/KJUR.asn1.tsp.PKIFailureInfo.html#constructor">KJUR.asn1.tsp.PKIFailureInfo</a></b>(params)
</div>
<div class="description">class for TSP PKIFailureInfo ASN.1 object
<pre>
PKIFailureInfo ::= BIT STRING {
badAlg (0),
badRequest (2),
badDataFormat (5),
timeNotAvailable (14),
unacceptedPolicy (15),
unacceptedExtension (16),
addInfoNotAvailable (17),
systemFailure (25) }
</pre></div>
<div class="description">class for TSP PKIFailureInfo ASN.1 object<br/>
This class provides ASN.1 PKIFailureInfo encoder
defined in
<a href="https://tools.ietf.org/html/rfc3161#section-2.4.2">
RFC 3161 section 2.4.2</a>.</div>
</td>
</tr>
</tbody>
Expand Down Expand Up @@ -614,7 +607,11 @@ <h1 class="classTitle">
</div>

<div class="description">
class for TSP PKIFailureInfo ASN.1 object
class for TSP PKIFailureInfo ASN.1 object<br/>
This class provides ASN.1 PKIFailureInfo encoder
defined in
<a href="https://tools.ietf.org/html/rfc3161#section-2.4.2">
RFC 3161 section 2.4.2</a>.
<pre>
PKIFailureInfo ::= BIT STRING {
badAlg (0),
Expand All @@ -626,13 +623,18 @@ <h1 class="classTitle">
addInfoNotAvailable (17),
systemFailure (25) }
</pre>
NOTE: Constructor of an array of failureInfo names string
has been supported since jsrsasign 10.5.21.
Ordering of names will be ignored so that
['unacceptedPolicy', 'badAlg'] is also fine.

</div>



<pre class="code">new KJUR.asn1.tsp.PKIFailureInfo('badAlg')
new KJUR.asn1.tsp.PKIFailureInfo(5)</pre>
new KJUR.asn1.tsp.PKIFailureInfo(5)
new KJUR.asn1.tsp.PKIFailureInfo(['badAlg', 'unacceptedPolicy'])</pre>



Expand Down Expand Up @@ -660,6 +662,13 @@ <h1 class="classTitle">



<dl class="detailList">
<dt class="heading">See:</dt>

<dd><a href="../symbols/KJUR.asn1.tsp.PKIStatusInfo.html">KJUR.asn1.tsp.PKIStatusInfo</a></dd>

</dl>


</div>

Expand Down
9 changes: 8 additions & 1 deletion api/symbols/KJUR.asn1.tsp.TimeStampResp.html
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,14 @@ <h1 class="classTitle">
tst: new KJUR.asn1.tsp.TimeStapToken(...)
})
// error case
new KJUR.asn1.tsp.TimeStampResp({statusinfo: "rejection"})
new KJUR.asn1.tsp.TimeStampResp({statusinfo: "rejection"}})
new KJUR.asn1.tsp.TimeStampResp({
statusinfo: {
status: "rejection",
statusstr: ["policy shall be 1.2.3.4.5"],
failinfo: "unacceptedPolicy"
}
})
// finally, encode to hexadecimal string
new KJUR.asn1.tsp.TimeStampResp(...).tohex() &rarr; "3082..."</pre>

Expand Down
88 changes: 88 additions & 0 deletions api/symbols/global__.html
Original file line number Diff line number Diff line change
Expand Up @@ -906,6 +906,17 @@ <h1 class="classTitle">
</td>
</tr>

<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/global__.html#namearraytobinstr">namearraytobinstr</a></b>(namearray, namedb)
</div>
<div class="description">convert array of names to bit string<br/>
This function converts from an array of names to
a binary string.</div>
</td>
</tr>

<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
Expand Down Expand Up @@ -3359,6 +3370,83 @@ <h1 class="classTitle">
</dl>


<hr />

<a name="namearraytobinstr"> </a>
<div class="fixedFont">

<span class="light">{string}</span>
<b>namearraytobinstr</b>(namearray, namedb)

</div>
<div class="description">
convert array of names to bit string<br/>
This function converts from an array of names to
a binary string. DB value bit will be set.
Note that ordering of namearray items
will be ignored.

<br />
<i>Defined in: </i> <a href="../symbols/src/base64x-1.1.js.html">base64x-1.1.js</a>.


</div>



<pre class="code">db = { a: 0, b: 3, c: 8, d: 9, e: 17, f: 19 };
namearraytobinstr(['a', 'c', 'd'], db) &rarr: '1100000001'
namearraytobinstr(['c', 'b'], db) &rarr: '100001000'</pre>




<dl class="detailList">
<dt class="heading">Parameters:</dt>

<dt>
<span class="light fixedFont">{array}</span> <b>namearray</b>

</dt>
<dd>array of name string</dd>

<dt>
<span class="light fixedFont">{object}</span> <b>namedb</b>

</dt>
<dd>associative array of name and value</dd>

</dl>



<dl class="detailList">
<dt class="heading">Since:</dt>
<dd>jsrsasign 10.5.21 base64x 1.1.27</dd>
</dl>
</dl>



<dl class="detailList">
<dt class="heading">Returns:</dt>

<dd><span class="light fixedFont">{string}</span> binary string (ex. "110001")</dd>

</dl>



<dl class="detailList">
<dt class="heading">See:</dt>

<dd><a href="../symbols/KJUR.asn1.x509.KeyUsage.html">KJUR.asn1.x509.KeyUsage</a></dd>

<dd><a href="../symbols/KJUR.asn1.tsp.PKIFailureInfo.html">KJUR.asn1.tsp.PKIFailureInfo</a></dd>

</dl>


<hr />

<a name="newline_toDos"> </a>
Expand Down
Loading

0 comments on commit 4274a59

Please sign in to comment.