Skip to content

Commit

Permalink
10.1.13 release
Browse files Browse the repository at this point in the history
  • Loading branch information
kjur committed Mar 7, 2021
1 parent 1147038 commit 482e651
Show file tree
Hide file tree
Showing 25 changed files with 1,597 additions and 1,396 deletions.
11 changes: 11 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@

ChangeLog for jsrsasign

add non-ascii BMPString support
* Changes from 10.1.12 to 10.1.13 (2021-03-08)
- src/base64x.js
- add ucs2hextoutf8 function
- src/x509.js
- X509.getAttrTypeAndValue supports non-ascii BMPString (#474)
- src/asn1hex.js
- ASN1HEX.dump supports non-ascii BMPString
- test/qunit-do-{asn1hex-dump,x509-ext,base64x}.html
- updated to follow above

fix for wrong UTF-8 encoding in distinguished name parser
* Changes from 10.1.11 to 10.1.12 (2021-02-25)
- src/x509.js
Expand Down
6 changes: 3 additions & 3 deletions api/files.html
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,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.1.3 asn1hex 1.2.8 (2020-Nov-22)</dd>
<dd>jsrsasign 10.1.13 asn1hex 1.2.9 (2021-Mar-07)</dd>



Expand Down Expand Up @@ -675,7 +675,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.1.3 base64x 1.1.19 (2020-Nov-22)</dd>
<dd>jsrsasign 10.1.13 base64x 1.1.20 (2021-Mar-07)</dd>



Expand Down Expand Up @@ -884,7 +884,7 @@ <h2><a href="symbols/src/x509-1.1.js.html">x509-1.1.js</a></h2>


<dt class="heading">Version:</dt>
<dd>jsrsasign 10.1.12 x509 2.0.10 (2021-Feb-25)</dd>
<dd>jsrsasign 10.1.13 x509 2.0.11 (2021-Mar-07)</dd>



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

<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/global__.html#ucs2hextoutf8">ucs2hextoutf8</a></b>(s)
</div>
<div class="description">convert UCS-2 hexadecimal stirng to UTF-8 string<br/>
This function converts hexadecimal value of UCS-2 string to
UTF-8 string.</div>
</td>
</tr>

<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
Expand Down Expand Up @@ -4038,6 +4049,64 @@ <h1 class="classTitle">



<hr />

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

<span class="light">{String}</span>
<b>ucs2hextoutf8</b>(s)

</div>
<div class="description">
convert UCS-2 hexadecimal stirng to UTF-8 string<br/>
This function converts hexadecimal value of UCS-2 string to
UTF-8 string.

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


</div>



<pre class="code">ucs2hextoutf8("006600fc0072") &rarr "für"</pre>




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

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

</dt>
<dd>hexadecimal string of UCS-2 string (ex. "0066")</dd>

</dl>



<dl class="detailList">
<dt class="heading">Since:</dt>
<dd>jsrsasign 10.1.13 base64x 1.1.20</dd>
</dl>
</dl>



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

<dd><span class="light fixedFont">{String}</span> UTF-8 string</dd>

</dl>




<hr />

<a name="uricmptohex"> </a>
Expand Down
8 changes: 4 additions & 4 deletions api/symbols/src/asn1hex-1.1.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
.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.8.js (c) 2012-2021 Kenji Urushima | kjur.github.com/jsrsasign/license
</style></head><body><pre><span class='line'> 1</span> <span class="COMM">/* asn1hex-1.2.9.js (c) 2012-2021 Kenji Urushima | kjur.github.com/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
<span class='line'> 5</span> *
<span class='line'> 6</span> * Copyright (c) 2010-2020 Kenji Urushima ([email protected])
<span class='line'> 6</span> * Copyright (c) 2010-2021 Kenji Urushima ([email protected])
<span class='line'> 7</span> *
<span class='line'> 8</span> * This software is licensed under the terms of the MIT License.
<span class='line'> 9</span> * https://kjur.github.io/jsrsasign/license/
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.1.3 asn1hex 1.2.8 (2020-Nov-22)
<span class='line'> 19</span> * @version jsrsasign 10.1.13 asn1hex 1.2.9 (2021-Mar-07)
<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 @@ -943,7 +943,7 @@
<span class='line'>936</span> </span><span class="WHIT"> </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">indent</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"VisualString '"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">hextoutf8</span><span class="PUNC">(</span><span class="NAME">_getV</span><span class="PUNC">(</span><span class="NAME">hex</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">idx</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"'\n"</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>937</span> </span><span class="WHIT"> </span><span class="PUNC">}</span><span class="WHIT">
<span class='line'>938</span> </span><span class="WHIT"> </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">tag</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">"1e"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'>939</span> </span><span class="WHIT"> </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">indent</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"BMPString '"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">hextoutf8</span><span class="PUNC">(</span><span class="NAME">_getV</span><span class="PUNC">(</span><span class="NAME">hex</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">idx</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"'\n"</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>939</span> </span><span class="WHIT"> </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">indent</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"BMPString '"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">ucs2hextoutf8</span><span class="PUNC">(</span><span class="NAME">_getV</span><span class="PUNC">(</span><span class="NAME">hex</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">idx</span><span class="PUNC">)</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">"'\n"</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>940</span> </span><span class="WHIT"> </span><span class="PUNC">}</span><span class="WHIT">
<span class='line'>941</span> </span><span class="WHIT"> </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">tag</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">"30"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'>942</span> </span><span class="WHIT"> </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">hex.substr</span><span class="PUNC">(</span><span class="NAME">idx</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NUMB">4</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">"3000"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
Expand Down
Loading

0 comments on commit 482e651

Please sign in to comment.