Skip to content

Commit

Permalink
9.1.8 release
Browse files Browse the repository at this point in the history
  • Loading branch information
kjur committed Sep 8, 2020
1 parent 5ac4751 commit 33e7d75
Show file tree
Hide file tree
Showing 15 changed files with 34 additions and 26 deletions.
7 changes: 7 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@

ChangeLog for jsrsasign

wrong encoding in byKey of OCSP ResponderID fixed
* Changes from 9.1.7 to 9.1.8 (2020-Sep-08)
- src/asn1ocsp.js
- BUGFIX: wrong encoding in byKey of OCSP ResponderID fixed
- test/qunit-do-asn1ocsp.html
- follow to above update

nextUpdate encoding bugfix in ocsp SingleResponse
* Changes from 9.1.6 to 9.1.7 (2020-Sep-08)
- src/asn1ocsp.js
Expand Down
2 changes: 1 addition & 1 deletion api/files.html
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ <h2><a href="symbols/src/asn1ocsp-1.0.js.html">asn1ocsp-1.0.js</a></h2>


<dt class="heading">Version:</dt>
<dd>jsrsasign 9.1.7 asn1ocsp 1.1.1 (2020-Sep-08)</dd>
<dd>jsrsasign 9.1.8 asn1ocsp 1.1.2 (2020-Sep-08)</dd>



Expand Down
6 changes: 3 additions & 3 deletions api/symbols/src/asn1ocsp-1.0.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">/* asn1ocsp-1.1.1.js (c) 2016-2020 Kenji Urushima | kjur.github.com/jsrsasign/license
</style></head><body><pre><span class='line'> 1</span> <span class="COMM">/* asn1ocsp-1.1.2.js (c) 2016-2020 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> * asn1ocsp.js - ASN.1 DER encoder classes for OCSP protocol
Expand All @@ -23,7 +23,7 @@
<span class='line'> 16</span> * @fileOverview
<span class='line'> 17</span> * @name asn1ocsp-1.0.js
<span class='line'> 18</span> * @author Kenji Urushima [email protected]
<span class='line'> 19</span> * @version jsrsasign 9.1.7 asn1ocsp 1.1.1 (2020-Sep-08)
<span class='line'> 19</span> * @version jsrsasign 9.1.8 asn1ocsp 1.1.2 (2020-Sep-08)
<span class='line'> 20</span> * @since jsrsasign 6.1.0
<span class='line'> 21</span> * @license &lt;a href="https://kjur.github.io/jsrsasign/license/">MIT License&lt;/a>
<span class='line'> 22</span> */</span><span class="WHIT">
Expand Down Expand Up @@ -520,7 +520,7 @@
<span class='line'>513</span> </span><span class="NAME">this.getEncodedHex</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'>514</span> </span><span class="WHIT"> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">params</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">this.params</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>515</span> </span><span class="WHIT"> </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">params.key</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="NAME">undefined</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'>516</span> </span><span class="WHIT"> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">dTag</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">_newObject</span><span class="PUNC">(</span><span class="PUNC">{</span><span class="NAME">tag</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="NAME">tag</span><span class="PUNC">:</span><span class="STRN">"82"</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>516</span> </span><span class="WHIT"> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">dTag</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">_newObject</span><span class="PUNC">(</span><span class="PUNC">{</span><span class="NAME">tag</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="NAME">tag</span><span class="PUNC">:</span><span class="STRN">"a2"</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>517</span> </span><span class="WHIT"> </span><span class="NAME">explicit</span><span class="PUNC">:</span><span class="KEYW">true</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>518</span> </span><span class="WHIT"> </span><span class="NAME">obj</span><span class="PUNC">:</span><span class="PUNC">{</span><span class="NAME">octstr</span><span class="PUNC">:</span><span class="PUNC">{</span><span class="NAME">hex</span><span class="PUNC">:</span><span class="NAME">params.key</span><span class="PUNC">}</span><span class="PUNC">}</span><span class="PUNC">}</span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>519</span> </span><span class="WHIT"> </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">dTag.getEncodedHex</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kjur-jsrsasign",
"version": "9.1.7",
"version": "9.1.8",
"main": "jsrsasign-all-min.js",
"description": "The 'jsrsasign' (RSA-Sign JavaScript Library) is an opensource free cryptography library supporting RSA/RSAPSS/ECDSA/DSA signing/validation, ASN.1, PKCS#1/5/8 private/public key, X.509 certificate, CRL, OCSP, CMS SignedData, TimeStamp, CAdES, JWS and JWT in pure JavaScript.",
"license": "MIT",
Expand Down
4 changes: 2 additions & 2 deletions jsrsasign-all-min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion jsrsasign-jwths-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion jsrsasign-rsa-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion min/asn1ocsp-1.0.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions npm/lib/jsrsasign-all-min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion npm/lib/jsrsasign-jwths-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion npm/lib/jsrsasign-rsa-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions npm/lib/jsrsasign.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion npm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jsrsasign",
"version": "9.1.7",
"version": "9.1.8",
"description": "opensource free pure JavaScript cryptographic library supports RSA/RSAPSS/ECDSA/DSA signing/validation, ASN.1, PKCS#1/5/8 private/public key, X.509 certificate, CRL, OCSP, CMS SignedData, TimeStamp and CAdES and JSON Web Signature(JWS)/Token(JWT)/Key(JWK).",
"main": "lib/jsrsasign.js",
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions src/asn1ocsp-1.0.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* asn1ocsp-1.1.1.js (c) 2016-2020 Kenji Urushima | kjur.github.com/jsrsasign/license
/* asn1ocsp-1.1.2.js (c) 2016-2020 Kenji Urushima | kjur.github.com/jsrsasign/license
*/
/*
* asn1ocsp.js - ASN.1 DER encoder classes for OCSP protocol
Expand All @@ -16,7 +16,7 @@
* @fileOverview
* @name asn1ocsp-1.0.js
* @author Kenji Urushima [email protected]
* @version jsrsasign 9.1.7 asn1ocsp 1.1.1 (2020-Sep-08)
* @version jsrsasign 9.1.8 asn1ocsp 1.1.2 (2020-Sep-08)
* @since jsrsasign 6.1.0
* @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
*/
Expand Down Expand Up @@ -513,7 +513,7 @@ KJUR.asn1.ocsp.ResponderID = function(params) {
this.getEncodedHex = function() {
var params = this.params;
if (params.key != undefined) {
var dTag = _newObject({tag: {tag:"82",
var dTag = _newObject({tag: {tag:"a2",
explicit:true,
obj:{octstr:{hex:params.key}}}});
return dTag.getEncodedHex();
Expand Down
13 changes: 7 additions & 6 deletions test/qunit-do-asn1ocsp.html
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@

test("OCSPResponse with status success test", function() {
var _OCSPResponse = KJUR.asn1.ocsp.OCSPResponse;
var hExpect = "30819a0a0100a0819430819106092b060105050730010104818330818030608204040212ab180f32303230303930333233353935395a302e302c3017300906052b0e03021a0500040212ab040212ab020212ab8000180f32303230303930333233353935395aa1173015301306092b0601050507300102040604041234abcd300d06092a864886f70d01010b050003030012aba0083006030101030101";
var hExpect = "30819a0a0100a0819430819106092b06010505073001010481833081803060a204040212ab180f32303230303930333233353935395a302e302c3017300906052b0e03021a0500040212ab040212ab020212ab8000180f32303230303930333233353935395aa1173015301306092b0601050507300102040604041234abcd300d06092a864886f70d01010b050003030012aba0083006030101030101";
var params = {
resstatus: "successful",
restype: "ocspBasic",
Expand Down Expand Up @@ -212,7 +212,8 @@
test("ResponseBytes test", function() {
var _ResponseBytes = KJUR.asn1.ocsp.ResponseBytes;

var hExpect = "30819106092b060105050730010104818330818030608204040212ab180f32303230303930333233353935395a302e302c3017300906052b0e03021a0500040212ab040212ab020212ab8000180f32303230303930333233353935395aa1173015301306092b0601050507300102040604041234abcd300d06092a864886f70d01010b050003030012aba0083006030101030101";
var hExpect = "30819106092b06010505073001010481833081803060a204040212ab180f32303230303930333233353935395a302e302c3017300906052b0e03021a0500040212ab040212ab020212ab8000180f32303230303930333233353935395aa1173015301306092b0601050507300102040604041234abcd300d06092a864886f70d01010b050003030012aba0083006030101030101";
//"30819106092b060105050730010104818330818030608204040212ab180f32303230303930333233353935395a302e302c3017300906052b0e03021a0500040212ab040212ab020212ab8000180f32303230303930333233353935395aa1173015301306092b0601050507300102040604041234abcd300d06092a864886f70d01010b050003030012aba0083006030101030101";
var params = {
restype: "ocspBasic",
respid: {key: "12ab"},
Expand Down Expand Up @@ -241,7 +242,7 @@
test("BasicOCSPResponse test", function() {
var _BasicOCSPResponse = KJUR.asn1.ocsp.BasicOCSPResponse;

var hExpect = "30818030608204040212ab180f32303230303930333233353935395a302e302c3017300906052b0e03021a0500040212ab040212ab020212ab8000180f32303230303930333233353935395aa1173015301306092b0601050507300102040604041234abcd300d06092a864886f70d01010b050003030012aba0083006030101030101";
var hExpect = "3081803060a204040212ab180f32303230303930333233353935395a302e302c3017300906052b0e03021a0500040212ab040212ab020212ab8000180f32303230303930333233353935395aa1173015301306092b0601050507300102040604041234abcd300d06092a864886f70d01010b050003030012aba0083006030101030101";
var params = {
respid: {key: "12ab"},
prodat: "20200903235959Z",
Expand All @@ -263,7 +264,7 @@
ASN1HEX.dump(hExpect),
"dump with sighex");

var hExpect2 = "308208033081d882160414295a1ffe023d12ecf198eeecc3924b42f191ea97180f32303230303930343132353235335a3081873081843044300906052b0e03021a05000414f59c687f2418d62a790f7592330756ea85e9470704148ff04b7fa82e4524ae4d50fa639a8bdee2dd1bbc020b04000000000136e982395da114180f32303230303731313136303030305a0a0105180f32303230303930343132353235335aa011180f32303230303930383132353235335aa1023000a1233021301f06092b06010505073001020412041084eb2a38e8e20c9ae8f52140aee80560300d06092a864886f70d01010b050003820101004c3c63a0fe7322af5c9e336636ea21e4e2db3426b612de8c55bf5fc32a0332f716f8e045d61059dba9e7699fe5cc648e56fff771e8bb64e37ff2b56580fd24acc95a9184b7d18e0b228fd5898425de843d2f40dab1ef46b67a7deeae535dacad12736e623dc5a0f2bd7367cbe7eb47f3d78c8468e89aafc8cf88773ad0a5dc229a13f586bc47062fbb99f64e58859aba983694181aafa544aadbe587cc4856ac43bca0920b7e88c0bb7be50dc9792f8177b174005400bc63aebe2aa2c6f47eebd17a5e0c2e28b2d540a0852430cdf732de724448c532e3a9e00e018962d70b6ff2d8f17d79d79aa34aa85e7488a6e2ff9e6711731545e91e1a2928fa125e5630a08206103082060c30820608308203f0a00302010202102b2e6eead975366c148a6edba37c8c07300d06092a864886f70d01010c0500308185310b3009060355040613024742311b30190603550408131247726561746572204d616e636865737465723110300e0603550407130753616c666f7264311a3018060355040a1311434f4d4f444f204341204c696d69746564312b302906035504031322434f4d4f444f205253412043657274696669636174696f6e20417574686f72697479301e170d3134303231323030303030305a170d3239303231313233353935395a308190310b3009060355040613024742311b30190603550408131247726561746572204d616e636865737465723110300e0603550407130753616c666f7264311a3018060355040a1311434f4d4f444f204341204c696d69746564313630340603550403132d434f4d4f444f2052534120446f6d61696e2056616c69646174696f6e205365637572652053657276657220434130820122300d06092a864886f70d01010105000382010f003082010a02820101008ec20219e1a059a4eb38358d2cfd01d0d349c064c70b620545163aa8a0c00c027f1dccdbc4a16d7703a30f86f9e3069c3e0b818a9b491bad03befa4bdb8c20edd5ce5e658e3e0daf4cc2b0b7455e522f34de482464b441ae0097f7be67de9ed07aa753803b7cadf596556f97470a7c858b22978db384e09657d0701860968fee2d07939da1bacad1cd7be9c42a9a2821914d6f924f25a5f27a35dd26dc46a5d0ac59358cff4e9143503f59931e6c5121ee5814abfe7550783e4cb01c8613fa6b98bce03b941e8552dc039324186ecb275145e670de2543a40de14aa5edb67ec8cd6dee2e1d27735ddc453080aae3b2410bafbd4487dab9e51b9d7faee58582a50203010001a382016530820161301f0603551d23041830168014bbaf7e023dfaa6f13c848eadee3898ecd93232d4301d0603551d0e0416041490af6a3a945a0bd890ea125673df43b43a28dae7300e0603551d0f0101ff04040302018630120603551d130101ff040830060101ff020100301d0603551d250416301406082b0601050507030106082b06010505070302301b0603551d200414301230060604551d20003008060667810c010201304c0603551d1f044530433041a03fa03d863b687474703a2f2f63726c2e636f6d6f646f63612e636f6d2f434f4d4f444f52534143657274696669636174696f6e417574686f726974792e63726c307106082b0601050507010104653063303b06082b06010505073002862f687474703a2f2f6372742e636f6d6f646f63612e636f6d2f434f4d4f444f525341416464547275737443412e637274302406082b060105050730018618687474703a2f2f6f6373702e636f6d6f646f63612e636f6d300d06092a864886f70d01010c050003820201004e2b764f921c623689ba77c12705f41cd6449da99a3eaad56666013eea49e6a235bcfaf6dd958e9935980e361875b1dddd50727caedc7788ce0ff79020caa3672e1f567f7be144ea4295c45d0d01504615f28189596c8add8cf112a18d3a428a98f84b347b273b08b46f243b729d6374583c1a6c3f4fc7119ac8a8f5b537ef1045c66cd9e05e9526b3ebada3b9ee7f0c9a66357332604ee5dd8a612c6e5211776896d318755115001b7488dde1c738044328e916fdd905d45d472760d6fb383b6c72a294f8421adfed6f068c45c20600aae4e8dcd9b5e17378ecf623dcd1dd6c8e1a8fa5ea547c96b7c3fe558e8d495efc64bbcf3ebd96eb69cdbfe048f1628210e50c4657f233dad0c863edc61f9405964a1a91d1f7ebcf8f52ae0d08d93ea8a051e9c18774d5c9f774ab2e53fbbb7afb97e2f81f268fb3d2a0e0375b283b31e50e572d5ab8ad79ac5e20661aa5b9a6b539c1f59843ffeef9a7a7fdeeca243d8016c4178f8ac160a10cae5b4347914bd59a175ff9d487c1c28cb7e7e20f30193786ace0dc4203e694a89daefd0f245194ce9208d1fc50f003407b8859ed0eddacd2778234dc069502d890f92dea37d51a60d06720d7d8420b45af8268dedd66243790299419461925b880d7cbd486286a4470262362a99f866fbfba9070d256778578efea25a917ce50728c003aaae3db63349ff8067101e28220d4fe6fbdb1";
var hExpect2 = "308208033081d8a2160414295a1ffe023d12ecf198eeecc3924b42f191ea97180f32303230303930343132353235335a3081873081843044300906052b0e03021a05000414f59c687f2418d62a790f7592330756ea85e9470704148ff04b7fa82e4524ae4d50fa639a8bdee2dd1bbc020b04000000000136e982395da114180f32303230303731313136303030305a0a0105180f32303230303930343132353235335aa011180f32303230303930383132353235335aa1023000a1233021301f06092b06010505073001020412041084eb2a38e8e20c9ae8f52140aee80560300d06092a864886f70d01010b0500038201010002945dec925d26347ffafb5c329b428636b7b6a4fb11a021591ff2c53fa90b887ce9e7cedc1128ddc9b1121cab06c1af95796a0c34ae2b2bfa377fccce9c387a9d619f81cd29dfe124f67fd22c3269324bb37296f96a42256dbf6ec63d31c2551b11466e05d2a28338719a18b5aa9164bee61b98112fa5e03917901571712e847d801ed8045410ae560496efe7d088cdff7cde06e691f6bea3c81d8110a37ea0bdc14c42ac1f77daaafbf339af037cf6220284ff2c16793b033584018ca9a39f65e23d9452e095175bfed4816907331b82ebd88709de004c6cee7f87b727f699819e4cd63ecabd6478f68feb43be5d60f312ed2d30beec45bc9df1550a4bace2a08206103082060c30820608308203f0a00302010202102b2e6eead975366c148a6edba37c8c07300d06092a864886f70d01010c0500308185310b3009060355040613024742311b30190603550408131247726561746572204d616e636865737465723110300e0603550407130753616c666f7264311a3018060355040a1311434f4d4f444f204341204c696d69746564312b302906035504031322434f4d4f444f205253412043657274696669636174696f6e20417574686f72697479301e170d3134303231323030303030305a170d3239303231313233353935395a308190310b3009060355040613024742311b30190603550408131247726561746572204d616e636865737465723110300e0603550407130753616c666f7264311a3018060355040a1311434f4d4f444f204341204c696d69746564313630340603550403132d434f4d4f444f2052534120446f6d61696e2056616c69646174696f6e205365637572652053657276657220434130820122300d06092a864886f70d01010105000382010f003082010a02820101008ec20219e1a059a4eb38358d2cfd01d0d349c064c70b620545163aa8a0c00c027f1dccdbc4a16d7703a30f86f9e3069c3e0b818a9b491bad03befa4bdb8c20edd5ce5e658e3e0daf4cc2b0b7455e522f34de482464b441ae0097f7be67de9ed07aa753803b7cadf596556f97470a7c858b22978db384e09657d0701860968fee2d07939da1bacad1cd7be9c42a9a2821914d6f924f25a5f27a35dd26dc46a5d0ac59358cff4e9143503f59931e6c5121ee5814abfe7550783e4cb01c8613fa6b98bce03b941e8552dc039324186ecb275145e670de2543a40de14aa5edb67ec8cd6dee2e1d27735ddc453080aae3b2410bafbd4487dab9e51b9d7faee58582a50203010001a382016530820161301f0603551d23041830168014bbaf7e023dfaa6f13c848eadee3898ecd93232d4301d0603551d0e0416041490af6a3a945a0bd890ea125673df43b43a28dae7300e0603551d0f0101ff04040302018630120603551d130101ff040830060101ff020100301d0603551d250416301406082b0601050507030106082b06010505070302301b0603551d200414301230060604551d20003008060667810c010201304c0603551d1f044530433041a03fa03d863b687474703a2f2f63726c2e636f6d6f646f63612e636f6d2f434f4d4f444f52534143657274696669636174696f6e417574686f726974792e63726c307106082b0601050507010104653063303b06082b06010505073002862f687474703a2f2f6372742e636f6d6f646f63612e636f6d2f434f4d4f444f525341416464547275737443412e637274302406082b060105050730018618687474703a2f2f6f6373702e636f6d6f646f63612e636f6d300d06092a864886f70d01010c050003820201004e2b764f921c623689ba77c12705f41cd6449da99a3eaad56666013eea49e6a235bcfaf6dd958e9935980e361875b1dddd50727caedc7788ce0ff79020caa3672e1f567f7be144ea4295c45d0d01504615f28189596c8add8cf112a18d3a428a98f84b347b273b08b46f243b729d6374583c1a6c3f4fc7119ac8a8f5b537ef1045c66cd9e05e9526b3ebada3b9ee7f0c9a66357332604ee5dd8a612c6e5211776896d318755115001b7488dde1c738044328e916fdd905d45d472760d6fb383b6c72a294f8421adfed6f068c45c20600aae4e8dcd9b5e17378ecf623dcd1dd6c8e1a8fa5ea547c96b7c3fe558e8d495efc64bbcf3ebd96eb69cdbfe048f1628210e50c4657f233dad0c863edc61f9405964a1a91d1f7ebcf8f52ae0d08d93ea8a051e9c18774d5c9f774ab2e53fbbb7afb97e2f81f268fb3d2a0e0375b283b31e50e572d5ab8ad79ac5e20661aa5b9a6b539c1f59843ffeef9a7a7fdeeca243d8016c4178f8ac160a10cae5b4347914bd59a175ff9d487c1c28cb7e7e20f30193786ace0dc4203e694a89daefd0f245194ce9208d1fc50f003407b8859ed0eddacd2778234dc069502d890f92dea37d51a60d06720d7d8420b45af8268dedd66243790299419461925b880d7cbd486286a4470262362a99f866fbfba9070d256778578efea25a917ce50728c003aaae3db63349ff8067101e28220d4fe6fbdb1";

var params2 = {
respid: {key: "295a1ffe023d12ecf198eeecc3924b42f191ea97"},
Expand Down Expand Up @@ -297,7 +298,7 @@

test("ResponseData test", function() {
var _ResponseData = KJUR.asn1.ocsp.ResponseData;
var hExpect = "30608204040212ab180f32303230303930333233353935395a302e302c3017300906052b0e03021a0500040212ab040212ab020212ab8000180f32303230303930333233353935395aa1173015301306092b0601050507300102040604041234abcd";
var hExpect = "3060a204040212ab180f32303230303930333233353935395a302e302c3017300906052b0e03021a0500040212ab040212ab020212ab8000180f32303230303930333233353935395aa1173015301306092b0601050507300102040604041234abcd";
var params = {
respid: {key: "12ab"},
prodat: "20200903235959Z",
Expand All @@ -320,7 +321,7 @@
test("ResponderID test", function() {
var _ResponderID = KJUR.asn1.ocsp.ResponderID;

var hExpect = "8204040212ab";
var hExpect = "a204040212ab";
var params = {key: "12ab"};
equal((new _ResponderID(params)).getEncodedHex(), hExpect, "hex by key");
equal(
Expand Down

0 comments on commit 33e7d75

Please sign in to comment.