Skip to content

Commit

Permalink
10.4.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
kjur committed Sep 30, 2021
1 parent 620f741 commit 0ef94ca
Show file tree
Hide file tree
Showing 27 changed files with 2,772 additions and 2,335 deletions.
11 changes: 10 additions & 1 deletion ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@

ChangeLog for jsrsasign

* Changes from 10.4.0 to next release
GeneralizedTime, UTCTime refactoring and some bug fix
* Changes from 10.4.0 to 10.4.1 release
- src/asn1.js
- refactoring of DERUTCTime, DERGeneralizedTime and DERAbstractTime
- now DERUTCTime support fraction of second
- src/asn1x509.js
- update Time class to follow DER{UTC,Generalized}Time update
- tool/tool_tsreq.html
- messageImprint bug fix (#504)
- tool/tool_tsres.html
- serialNumber bug fix (#505)
- jsrsasign-*-min.js
- header URL fix to kjur.github.io (#503)
(will be fixed in next release while rebuild)
- test/qunit-do-{asn1,asn1x509}.html updated
- KJUR.asn1.DER{UTC,Generalized}Time, KJUR.asn1.x509.Time class
test case added and updated.

Full support for parsing OCSP response
* Changes from 10.3.2 to 10.4.0 (2021-08-17)
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,14 @@ HIGHLIGHTS
----------
- Swiss Army Knife style all in one package crypto and PKI library
- available on [Node.js](https://www.npmjs.com/package/jsrsasign) and browsers
- Long live open source software from 2010
- very easy API to use
- powerful various format key loader and ASN.1 API
- rich document and samples
- no dependency to other library
- no dependency to [W3C Web Cryptography API](https://www.w3.org/TR/WebCryptoAPI/) nor [OpenSSL](https://www.openssl.org/)
- no dependency on newer ECMAScirpt function. So old browsers also supported.
- very popular crypto library with [0.6M+ npm downloads/month](https://npm-stat.com/charts.html?package=jsrsasign&from=2016-05-01&to=2021-08-10)
- very popular crypto library with [0.6M+ npm downloads/month](https://npm-stat.com/charts.html?package=jsrsasign&from=2016-05-01&to=2021-09-28)

INSTALL
-------
Expand Down
2 changes: 1 addition & 1 deletion api/files.html
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,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.1.0 asn1 1.0.21 (2020-Nov-18)</dd>
<dd>jsrsasign 10.4.1 asn1 1.0.22 (2021-Sep-30)</dd>



Expand Down
153 changes: 149 additions & 4 deletions api/symbols/KJUR.asn1.DERAbstractTime.html
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,16 @@ <h1 class="classTitle">
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/KJUR.asn1.DERAbstractTime.html#getString">getString</a></b>()
</div>
<div class="description">get string value of this string object</div>
<div class="description">get string value of this string object (DEPRECATED)</div>
</td>
</tr>

<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/KJUR.asn1.DERAbstractTime.html#setByDate">setByDate</a></b>(dateObject)
</div>
<div class="description">set value by a Date object<br/></div>
</td>
</tr>

Expand All @@ -604,12 +613,21 @@ <h1 class="classTitle">
</td>
</tr>

<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/KJUR.asn1.DERAbstractTime.html#setByParam">setByParam</a></b>(params)
</div>
<div class="description">set parameter of time</div>
</td>
</tr>

<tr>
<td class="attributes">&nbsp;</td>
<td class="nameDescription">
<div class="fixedFont"><b><a href="../symbols/KJUR.asn1.DERAbstractTime.html#setString">setString</a></b>(newS)
</div>
<div class="description">set value by a string</div>
<div class="description">set value by a string (DEPRECATED)</div>
</td>
</tr>

Expand Down Expand Up @@ -669,6 +687,12 @@ <h1 class="classTitle">

<dd><a href="../symbols/KJUR.asn1.ASN1Object.html">KJUR.asn1.ASN1Object</a> - superclass</dd>

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

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

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

</dl>


Expand All @@ -692,7 +716,7 @@ <h1 class="classTitle">

</div>
<div class="description">
get string value of this string object
get string value of this string object (DEPRECATED)


</div>
Expand All @@ -701,6 +725,13 @@ <h1 class="classTitle">



<dl class="detailList">
<dt class="heading">Deprecated:</dt>
<dt>
from jsrsasign 10.4.1 asn1 1.0.22.
</dt>
</dl>




Expand All @@ -714,6 +745,55 @@ <h1 class="classTitle">



<hr />

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


<b>setByDate</b>(dateObject)

</div>
<div class="description">
set value by a Date object<br/>


</div>



<pre class="code">o = new KJUR.asn1.DERUTCTime();
o.setByDate(new Date("2016/12/31 23:59:59.12"));
// 2015-Jan-31 23:59:59.12
o.setByDate(new Date(Date.UTC(2015, 0, 31, 23, 59, 59, 0)));</pre>




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

<dt>
<span class="light fixedFont">{Date}</span> <b>dateObject</b>

</dt>
<dd>Date object to set ASN.1 value(V)</dd>

</dl>



<dl class="detailList">
<dt class="heading">Since:</dt>
<dd>jsrsasign 10.4.1 asn1 1.0.22</dd>
</dl>
</dl>






<hr />

<a name="setByDateValue"> </a>
Expand Down Expand Up @@ -780,6 +860,64 @@ <h1 class="classTitle">



<hr />

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


<b>setByParam</b>(params)

</div>
<div class="description">
set parameter of time


</div>



<pre class="code">d1 = new KJUR.asn1.DERGeneralizedTime();
d1.setByParam("20210930235959.123Z");
d1.setByParam({str: "20210930235959.123Z"});

d1.setByParam(new Date("2013/12/31 23:59:59.12"));
date1 = new Date(Date.UTC(2021,8,31,23,59,59,123));
d1.setByParam(date1);
d1.setByParam({date: date1});
d1.setByParam({date: date1, millis: true});</pre>




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

<dt>
<span class="light fixedFont">{Object}</span> <b>params</b>

</dt>
<dd>JSON object, Date object or string of time</dd>

</dl>



<dl class="detailList">
<dt class="heading">Since:</dt>
<dd>jsrsasign 10.4.1 asn1 1.0.22

NOTE: If a member "millis" has a value "true",
a fraction of second will be specified for this object.
This default is "false".</dd>
</dl>
</dl>






<hr />

<a name="setString"> </a>
Expand All @@ -790,7 +928,7 @@ <h1 class="classTitle">

</div>
<div class="description">
set value by a string
set value by a string (DEPRECATED)


</div>
Expand All @@ -810,6 +948,13 @@ <h1 class="classTitle">
</dl>


<dl class="detailList">
<dt class="heading">Deprecated:</dt>
<dt>
from jsrsasign 10.4.1 asn1 1.0.22.
</dt>
</dl>




Expand Down
Loading

0 comments on commit 0ef94ca

Please sign in to comment.