Skip to content

Commit

Permalink
9.1.5 release
Browse files Browse the repository at this point in the history
  • Loading branch information
kjur committed Aug 29, 2020
1 parent 1a5dc76 commit abfb523
Show file tree
Hide file tree
Showing 15 changed files with 1,212 additions and 1,077 deletions.
10 changes: 10 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@

ChangeLog for jsrsasign

ASN1HEX getChildIdx bug for too many children
* Changes from 9.1.4 to 9.1.5 (2020-Aug-29)
- src/asn1hex.js
- BUGFIX: ASN1HEX.getChildIdx didn't returns
proper result when too many child items
such as over 200 children.
- add ASN1HEX.getTLVblen method
- DEPRECATED: getNextSiblingIdx. Please
use getTLVblen instead.

X509CRL parser revokedCertificate bugfix
* Changes from 9.1.3 to 9.1.4 (2020-Aug-28)
- src/asn1hex.js
Expand Down
2 changes: 1 addition & 1 deletion api/files.html
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ <h2><a href="symbols/src/asn1hex-1.1.js.html">asn1hex-1.1.js</a></h2>


<dt class="heading">Version:</dt>
<dd>jsrsasign 9.1.4 asn1hex 1.2.4 (2020-Aug-28)</dd>
<dd>jsrsasign 9.1.5 asn1hex 1.2.5 (2020-Aug-29)</dd>



Expand Down
105 changes: 93 additions & 12 deletions api/symbols/ASN1HEX.html
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ <h1 class="classTitle">
<tr>
<td class="attributes">&lt;static&gt; &nbsp;</td>
<td class="nameDescription">
<div class="fixedFont">ASN1HEX.<b><a href="../symbols/ASN1HEX.html#.getChildIdx">getChildIdx</a></b>(h, pos)
<div class="fixedFont">ASN1HEX.<b><a href="../symbols/ASN1HEX.html#.getChildIdx">getChildIdx</a></b>(h, idx)
</div>
<div class="description">get array of string indexes of child ASN.1 objects<br/>
This method returns array of integers for a concatination of ASN.1 objects
Expand Down Expand Up @@ -601,7 +601,7 @@ <h1 class="classTitle">
<td class="nameDescription">
<div class="fixedFont">ASN1HEX.<b><a href="../symbols/ASN1HEX.html#.getNextSiblingIdx">getNextSiblingIdx</a></b>(s, idx)
</div>
<div class="description">get next sibling starting index for ASN.1 object string<br/></div>
<div class="description">get next sibling starting index for ASN.1 object string (DEPRECATED)<br/></div>
</td>
</tr>

Expand All @@ -623,6 +623,17 @@ <h1 class="classTitle">
</td>
</tr>

<tr>
<td class="attributes">&lt;static&gt; &nbsp;</td>
<td class="nameDescription">
<div class="fixedFont">ASN1HEX.<b><a href="../symbols/ASN1HEX.html#.getTLVblen">getTLVblen</a></b>(h, idx)
</div>
<div class="description">get byte length of ASN.1 TLV at specified string index<br/>
This method returns a byte length of ASN.1 TLV at
specified string index.</div>
</td>
</tr>

<tr>
<td class="attributes">&lt;static&gt; &nbsp;</td>
<td class="nameDescription">
Expand Down Expand Up @@ -766,6 +777,7 @@ <h1 class="classTitle">
<li><b>ACCESS BY POSITION</b>
<ul>
<li><a href="../symbols/ASN1HEX.html#.getTLV">ASN1HEX.getTLV</a> - get ASN.1 TLV at specified position</li>
<li><a href="../symbols/ASN1HEX.html#.getTLVblen">ASN1HEX.getTLVblen</a> - get byte length of ASN.1 TLV at specified position</li>
<li><a href="../symbols/ASN1HEX.html#.getV">ASN1HEX.getV</a> - get ASN.1 V at specified position</li>
<li><a href="../symbols/ASN1HEX.html#.getVblen">ASN1HEX.getVblen</a> - get integer ASN.1 L at specified position</li>
<li><a href="../symbols/ASN1HEX.html#.getVidx">ASN1HEX.getVidx</a> - get ASN.1 V position from its ASN.1 TLV position</li>
Expand All @@ -775,9 +787,9 @@ <h1 class="classTitle">
</li>
<li><b>ACCESS FOR CHILD ITEM</b>
<ul>
<li>ASN1HEX.getNthChildIndex_AtObj - get nth child index at specified position</li>
<li>ASN1HEX.getPosArrayOfChildren_AtObj - get indexes of children</li>
<li>ASN1HEX.getPosOfNextSibling_AtObj - get position of next sibling</li>
<li><a href="../symbols/ASN1HEX.html#.getNthChildIdx">ASN1HEX.getNthChildIdx</a> - get nth child index at specified position</li>
<li><a href="../symbols/ASN1HEX.html#.getChildIdx">ASN1HEX.getChildIdx</a> - get indexes of children</li>
<li><a href="../symbols/ASN1HEX.html#.getNextSiblingIdx">ASN1HEX.getNextSiblingIdx</a> - get position of next sibling (DEPRECATED)</li>
</ul>
</li>
<li><b>ACCESS NESTED ASN.1 STRUCTURE</b>
Expand Down Expand Up @@ -1038,7 +1050,7 @@ <h1 class="classTitle">
<div class="fixedFont">&lt;static&gt;

<span class="light">{Array of Number}</span>
<span class="light">ASN1HEX.</span><b>getChildIdx</b>(h, pos)
<span class="light">ASN1HEX.</span><b>getChildIdx</b>(h, idx)

</div>
<div class="description">
Expand Down Expand Up @@ -1072,7 +1084,7 @@ <h1 class="classTitle">
<dd>hexadecimal string of ASN.1 DER encoded data</dd>

<dt>
<span class="light fixedFont">{Number}</span> <b>pos</b>
<span class="light fixedFont">{Number}</span> <b>idx</b>

</dt>
<dd>start string index of ASN.1 object</dd>
Expand Down Expand Up @@ -1419,12 +1431,12 @@ <h1 class="classTitle">
<a name=".getNextSiblingIdx"> </a>
<div class="fixedFont">&lt;static&gt;


<span class="light">{Number}</span>
<span class="light">ASN1HEX.</span><b>getNextSiblingIdx</b>(s, idx)

</div>
<div class="description">
get next sibling starting index for ASN.1 object string<br/>
get next sibling starting index for ASN.1 object string (DEPRECATED)<br/>


</div>
Expand Down Expand Up @@ -1458,6 +1470,13 @@ <h1 class="classTitle">
</dl>


<dl class="detailList">
<dt class="heading">Deprecated:</dt>
<dt>
jsrsasign 9.1.5 asn1hex 1.2.5 Please use <a href="../symbols/ASN1HEX.html#.getTLVblen">ASN1HEX.getTLVblen</a>
</dt>
</dl>


<dl class="detailList">
<dt class="heading">Since:</dt>
Expand All @@ -1470,7 +1489,7 @@ <h1 class="classTitle">
<dl class="detailList">
<dt class="heading">Returns:</dt>

<dd>next sibling starting index for ASN.1 object string</dd>
<dd><span class="light fixedFont">{Number}</span> next sibling starting index for ASN.1 object string</dd>

</dl>

Expand Down Expand Up @@ -1593,6 +1612,68 @@ <h1 class="classTitle">



<hr />

<a name=".getTLVblen"> </a>
<div class="fixedFont">&lt;static&gt;

<span class="light">{Number}</span>
<span class="light">ASN1HEX.</span><b>getTLVblen</b>(h, idx)

</div>
<div class="description">
get byte length of ASN.1 TLV at specified string index<br/>
This method returns a byte length of ASN.1 TLV at
specified string index.


</div>



<pre class="code"> v string indx=42
ASN1HEX.getTLVblen("...1303616161...", 42) &rarr; 10 (PrintableString 'aaa')</pre>




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

<dt>
<span class="light fixedFont">{String}</span> <b>h</b>

</dt>
<dd>hexadecimal string of ASN.1 DER encoded data</dd>

<dt>
<span class="light fixedFont">{Number}</span> <b>idx</b>

</dt>
<dd>string index to get ASN.1 TLV byte length</dd>

</dl>



<dl class="detailList">
<dt class="heading">Since:</dt>
<dd>jsrsasign 9.1.5 asn1hex 1.1.11</dd>
</dl>
</dl>



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

<dd><span class="light fixedFont">{Number}</span> byte length of ASN.1 TLV</dd>

</dl>




<hr />

<a name=".getTLVbyList"> </a>
Expand Down Expand Up @@ -1819,7 +1900,7 @@ <h1 class="classTitle">
<a name=".getVblen"> </a>
<div class="fixedFont">&lt;static&gt;


<span class="light">{Number}</span>
<span class="light">ASN1HEX.</span><b>getVblen</b>(s, idx)

</div>
Expand Down Expand Up @@ -1862,7 +1943,7 @@ <h1 class="classTitle">
<dl class="detailList">
<dt class="heading">Returns:</dt>

<dd>ASN.1 L(length) integer value</dd>
<dd><span class="light fixedFont">{Number}</span> ASN.1 L(length) integer value</dd>

</dl>

Expand Down
Loading

0 comments on commit abfb523

Please sign in to comment.