Skip to content

Commit

Permalink
10.5.23 release
Browse files Browse the repository at this point in the history
  • Loading branch information
kjur committed May 27, 2022
1 parent 2613c64 commit f6b7916
Show file tree
Hide file tree
Showing 21 changed files with 228 additions and 164 deletions.
12 changes: 12 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@

ChangeLog for jsrsasign

BitString parsing bug fix
* Changes from 10.5.22 to 10.5.23 (2022-May-27)
- src/base64x.js
- bitstrtobinstr bugfix fix
- src/asn1hex.js
- ASN1HEX.parse change for bin string range
- npm/lib/footers.js
- add missed exports (bitstrtobinstr, binstrtobitstr,
namearraytobinstr, extendClass)
- test/qunit-do-{asn1hex-parse,base64x}.html
- add and fix some test cases for above

DERBitString, KeyUsage and tsp PKIFailureInfo critical bug fix
* Changes from 10.5.21 to 10.5.22 (2022-May-24)
- src/asn1.js
Expand Down
4 changes: 2 additions & 2 deletions api/files.html
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ <h2><a href="symbols/src/asn1hex-1.1.js.html">asn1hex-1.1.js</a></h2>


<dt class="heading">Version:</dt>
<dd>jsrsasign 10.5.16 asn1hex 1.2.14 (2022-Apr-08)</dd>
<dd>jsrsasign 10.5.23 asn1hex 1.2.15 (2022-May-27)</dd>



Expand Down Expand Up @@ -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.22 base64x 1.1.28 (2022-May-24)</dd>
<dd>jsrsasign 10.5.23 base64x 1.1.29 (2022-May-27)</dd>



Expand Down
6 changes: 4 additions & 2 deletions api/symbols/global__.html
Original file line number Diff line number Diff line change
Expand Up @@ -1781,6 +1781,7 @@ <h1 class="classTitle">


<pre class="code">binstrtobitstr("101") &rarr; "05a0"
binstrtobitstr("001") &rarr; "0520"
binstrtobitstr("11001") &rarr; "03c8"
binstrtobitstr("101000001") &rarr; "07a080"
binstrtobitstr(101) &rarr; null // not number
Expand Down Expand Up @@ -1856,9 +1857,10 @@ <h1 class="classTitle">


<pre class="code">bitstrtobinstr("05a0") &rarr; "101"
bitstrtobinstr("0520") &rarr; "001"
bitstrtobinstr("07a080") &rarr; "101000001"
bitstrtoint(502) &rarr; null // non ASN.1 BitString value
bitstrtoint("ff00") &rarr; -1 // for improper BitString value</pre>
bitstrtobinstr(502) &rarr; null // non ASN.1 BitString value
bitstrtobinstr("ff00") &rarr; null // for improper BitString value</pre>



Expand Down
6 changes: 3 additions & 3 deletions api/symbols/src/asn1hex-1.1.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
.STRN {color: #393;}
.REGX {color: #339;}
.line {border-right: 1px dotted #666; color: #666; font-style: normal;}
</style></head><body><pre><span class='line'> 1</span> <span class="COMM">/* asn1hex-1.2.14.js (c) 2012-2022 Kenji Urushima | kjur.github.io/jsrsasign/license
</style></head><body><pre><span class='line'> 1</span> <span class="COMM">/* asn1hex-1.2.15.js (c) 2012-2022 Kenji Urushima | kjur.github.io/jsrsasign/license
<span class='line'> 2</span> */</span><span class="WHIT">
<span class='line'> 3</span> </span><span class="COMM">/*
<span class='line'> 4</span> * asn1hex.js - Hexadecimal represented ASN.1 string library
Expand All @@ -23,7 +23,7 @@
<span class='line'> 16</span> * @fileOverview
<span class='line'> 17</span> * @name asn1hex-1.1.js
<span class='line'> 18</span> * @author Kenji Urushima [email protected]
<span class='line'> 19</span> * @version jsrsasign 10.5.16 asn1hex 1.2.14 (2022-Apr-08)
<span class='line'> 19</span> * @version jsrsasign 10.5.23 asn1hex 1.2.15 (2022-May-27)
<span class='line'> 20</span> * @license &lt;a href="https://kjur.github.io/jsrsasign/license/">MIT License&lt;/a>
<span class='line'> 21</span> */</span><span class="WHIT">
<span class='line'> 22</span>
Expand Down Expand Up @@ -1076,7 +1076,7 @@
<span class='line'>1069</span> </span><span class="WHIT"> </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="NAME">bitstr</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="NAME">obj</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="NAME">_parse</span><span class="PUNC">(</span><span class="NAME">hV1</span><span class="PUNC">)</span><span class="PUNC">}</span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>1070</span> </span><span class="WHIT"> </span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">catch</span><span class="PUNC">(</span><span class="NAME">ex</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'>1071</span> </span><span class="WHIT"> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">bV</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>1072</span> </span><span class="WHIT"> </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">hV.length</span><span class="WHIT"> </span><span class="PUNC">&lt;=</span><span class="WHIT"> </span><span class="NUMB">6</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="NAME">bV</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">bitstrtobinstr</span><span class="PUNC">(</span><span class="NAME">hV</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>1072</span> </span><span class="WHIT"> </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">hV.length</span><span class="WHIT"> </span><span class="PUNC">&lt;=</span><span class="WHIT"> </span><span class="NUMB">10</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="NAME">bV</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">bitstrtobinstr</span><span class="PUNC">(</span><span class="NAME">hV</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>1073</span> </span><span class="WHIT"> </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">bV</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'>1074</span> </span><span class="WHIT"> </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="NAME">bitstr</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="NAME">hex</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="NAME">hV</span><span class="PUNC">}</span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>1075</span> </span><span class="WHIT"> </span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
Expand Down
Loading

0 comments on commit f6b7916

Please sign in to comment.