Skip to content

Commit f9115ff

Browse files
author
August Johann
committed
Merge branch 'kjur:master' into master
2 parents 523a178 + 1136cce commit f9115ff

File tree

295 files changed

+32720
-17803
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

295 files changed

+32720
-17803
lines changed

.github/workflows/codeql-analysis.yml

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
name: "CodeQL"
7+
8+
on:
9+
push:
10+
branches: [master]
11+
pull_request:
12+
# The branches below must be a subset of the branches above
13+
branches: [master]
14+
schedule:
15+
- cron: '0 9 * * 4'
16+
17+
jobs:
18+
analyze:
19+
name: Analyze
20+
runs-on: ubuntu-latest
21+
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
# Override automatic language detection by changing the below list
26+
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
27+
language: ['javascript']
28+
# Learn more...
29+
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
30+
31+
steps:
32+
- name: Checkout repository
33+
uses: actions/checkout@v2
34+
with:
35+
# We must fetch at least the immediate parents so that if this is
36+
# a pull request then we can checkout the head.
37+
fetch-depth: 2
38+
39+
# If this run was triggered by a pull request event, then checkout
40+
# the head of the pull request instead of the merge commit.
41+
- run: git checkout HEAD^2
42+
if: ${{ github.event_name == 'pull_request' }}
43+
44+
# Initializes the CodeQL tools for scanning.
45+
- name: Initialize CodeQL
46+
uses: github/codeql-action/init@v1
47+
with:
48+
languages: ${{ matrix.language }}
49+
# If you wish to specify custom queries, you can do so here or in a config file.
50+
# By default, queries listed here will override any specified in a config file.
51+
# Prefix the list here with "+" to use these queries and those in the config file.
52+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
53+
54+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
55+
# If this step fails, then you should remove it and run the build manually (see below)
56+
- name: Autobuild
57+
uses: github/codeql-action/autobuild@v1
58+
59+
# ℹ️ Command-line programs to run using the OS shell.
60+
# 📚 https://git.io/JvXDl
61+
62+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
63+
# and modify them (or add more) to build your code if your project
64+
# uses a compiled language
65+
66+
#- run: |
67+
# make bootstrap
68+
# make release
69+
70+
- name: Perform CodeQL Analysis
71+
uses: github/codeql-action/analyze@v1

ChangeLog.txt

+266
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,272 @@
11

22
ChangeLog for jsrsasign
33

4+
remove all YUI dependency
5+
* Changes from 10.2.0 to 10.3.0
6+
- remove YUI library dependency
7+
- LICENSE.txt
8+
- remove YUI license
9+
- src/base64x.js
10+
- add extendClass function to replace YUI class extend
11+
- src/*.js
12+
- replace YAHOO.lang.extend to extendClass all
13+
- src/keyutil.js
14+
- change to raise exception in KEYUTIL class with Error class
15+
- src/asn1x509.js
16+
- API document update for Extesions and CRLReason class
17+
- npm_util/package.json
18+
- fix dependencies (#482)
19+
- test/qunit-do-*.html
20+
- updated to follow above
21+
- test/qunit-do-base64x-class.html added
22+
- test for extendClass function
23+
24+
CVE-2021-30246 RSAKey.verify issue fix
25+
* Changes from 10.1.13 to 10.2.0 (2021-04-14)
26+
- src/rsasign.js
27+
- CVE-2021-30246 RSAKey.verify issue was fixed (#478)
28+
- src/asn1cms.js
29+
- IssuerSerial, IsseruAndSerialNumber API document update
30+
- sample_node/asn1extract2
31+
- change to "/usr/bin/env node"
32+
33+
add non-ascii BMPString support
34+
* Changes from 10.1.12 to 10.1.13 (2021-03-08)
35+
- src/base64x.js
36+
- add ucs2hextoutf8 function
37+
- src/x509.js
38+
- X509.getAttrTypeAndValue supports non-ascii BMPString (#474)
39+
- src/asn1hex.js
40+
- ASN1HEX.dump supports non-ascii BMPString
41+
- test/qunit-do-{asn1hex-dump,x509-ext,base64x}.html
42+
- updated to follow above
43+
44+
fix for wrong UTF-8 encoding in distinguished name parser
45+
* Changes from 10.1.11 to 10.1.12 (2021-02-25)
46+
- src/x509.js
47+
- fix X509.getAttrTypeValue (#473)
48+
- attribute value is converted by hextoutf8 not hextorstr
49+
- X509.getIssuerString update to use getIssuer
50+
- X509.getSubjectString update to use getSubject
51+
- X509.dnarraytostr fix to escape "+" and "/"
52+
- X509.hex2dn update to use getX500Name
53+
- test/qunit-do-x509-ext.html
54+
- updated to follow above
55+
56+
update X509.getVersion and add jsrsasign-util saveFileJSON
57+
* Changes from 10.1.10 to 10.1.11 (2021-02-19)
58+
- src/x509.js
59+
- X509.getVersion supports other than
60+
empty(DEFAULT =v1) and [0] {INTEGER 2} (=v3).
61+
Thus version checking is relaxed. (#471)
62+
- src/nodeutil.js (jsrsasign-util 1.0.4)
63+
- add saveFileUTF8
64+
- saveFileJSON API document fix
65+
66+
extend support for distinguished name
67+
* Changes from 10.1.9 to 10.1.10 release (2021-02-14)
68+
- src/asn1x509.js
69+
- AttributeTypeAndValue
70+
- add support for OID and oid name constructor
71+
AttributeTypeAndValue({str: "/streetAddress=foo"})
72+
AttributeTypeAndValue({str: "/2.5.4.9=foo"})
73+
- OID.name2oidList
74+
- add givenName
75+
- test/qunit-do-asn1x509.html
76+
- updated to follow above
77+
78+
Add SubjectDirectoryAttributes extension support
79+
* Changes from 10.1.8 to 10.1.9 release (2021-02-12)
80+
- src/asn1x509.js
81+
- SubjectDirectoryAttributes class added
82+
- Extensions class updated to support
83+
SubjectDirectoryAttributes
84+
- OID class update to support OIDs
85+
such as gender, placeOfBirth et.al. for
86+
SubjectDirectoryAttributes.
87+
- SubjectDirectoryAttributes parser is
88+
needed to be implemented in X509.js future.
89+
- test/qunit-do-asn1x509.html
90+
- updated to follow above
91+
92+
KEYUTIL supports PKCS8 private key with extension
93+
* Changes from 10.1.5 to 10.1.8 release (2021-02-08)
94+
- src/keyutil.js
95+
- KEYUTIL.parsePlainPrivatePKCS8Hex now supports
96+
private key extsion and and issue #454 fixed.
97+
- test/qunit-do-keyutil-eprv.html
98+
- updated to follow above
99+
100+
CAdES-T support update and fix
101+
* Changes from 10.1.4 to 10.1.5 release (2021-01-17)
102+
- tool/tool_cades.html fix (#465)
103+
- now works fine again for CAdES-T demo
104+
- src/asn1cms.js
105+
- SignerInfo class
106+
- unsigned attribute support again
107+
- Attribute class
108+
- add signaturePolicyIdentifier support
109+
- add signatureTimeStamp support
110+
- CMSParser class
111+
- add signaturePolicyIdentifier support
112+
- add setSignaturePolicyIdentifier method
113+
- src/asn1cades.js
114+
- CAdESUtil class
115+
- parseSignedDataForAddingUnsigned modified to use CMSParser
116+
- addSigTS removed since it was empty method
117+
- parseSignerInfoForAddingUnsigned is deprecated since
118+
parseSignedDataForAddingUnsigned will not call it.
119+
- src/crypto.js
120+
- Mac API document fix (#466)
121+
122+
getPKIStatusInfo bugfix
123+
* Changes from 10.1.3 to 10.1.4 release (2020-11-23)
124+
- asn1tsp.js
125+
- TSPParser class
126+
- getPKIStatusInfo out parameter name bugfix
127+
- test/qunit-do-asn1hex.html
128+
- updated to follow above
129+
130+
TSPParser.getPKIStatusInfo update
131+
* Changes from 10.1.2 to 10.1.3 release (2020-11-22)
132+
- asn1tsp.js
133+
- TSPParser class
134+
- getPKIStatusInfo updated to
135+
supports PKIFreeText and PKIFailureInfo
136+
- getPKIFreeText added
137+
- getPKIFailureInfo added
138+
- asn1hex.js
139+
- ASN1HEX class
140+
- getString added
141+
- getInt method updated to supports ASN.1 BitString
142+
- base64x.js
143+
- function bitstrtoint, inttobitstr added
144+
- test/qunit-do-{asn1hex,asn1tsp,base64x}.html
145+
- updated to follow above
146+
147+
add SigningCertificateV2 for CMSParser and issue fix
148+
* Changes from 10.1.1 to 10.1.2 release (2020-11-21)
149+
- src/asn1cms.js
150+
- CMSParser
151+
- getAttribute updated to support
152+
SigningCertificateV2
153+
- add setSigningCertificateV2 method
154+
- add getESSCertIDv2 method
155+
- change sortflag of result parameter to true in
156+
CMSParser.getCertificateSet
157+
- test/qunit-do-asn1cms.html
158+
- updated to follow above
159+
160+
CMSSignedData and TimeStamp parser bugfix
161+
* Changes from 10.1.0 to 10.1.1 release (2020-11-20)
162+
- src/asn1tsp.js
163+
- "serialNumber" parameter was changed to
164+
"serial" in TSTInfo class and TSPParser.getTSTInfo
165+
method.
166+
- src/asn1cms.js
167+
- change method name CMSParser.getAttributeArray to
168+
CMSParser.getAttributeList to align to the name
169+
AttributeList class.
170+
- getAttributeList returns JSON parameter which
171+
can be accepted by AttributeList constructor.
172+
- wrong sighex value for signature value
173+
by getSignerInfo method was fixed.
174+
- test/qunit-do-asn1tsp.html
175+
- updated to follow above
176+
177+
add new CMSSignedData and TimeStamp parser and X500Name update
178+
* Changes from 10.0.5 to 10.1.0 release (2020-11-19)
179+
- add new CMSSignedData and TimeStamp parser
180+
- X500.get{X500Name,GeneralName,GeneralNames} result change
181+
- src/asn1cms.js
182+
- new CMSParser class for CMS SignedData
183+
- get{CMSSignedData,SignedData,HashAlgArray,
184+
EContent,SignerInfos,SignerInfo,SignerIdentifier,
185+
IssuerAndSerialNumber,AttributeArray,
186+
Attribute,ESSCertID,IssuerSerial,CertificateSet}
187+
- set{ContentType,SigningTime,MessageDigest,
188+
SigningCertificate}
189+
- src/asn1tsp.js
190+
- new TSPParser class to parser RFC 3161 TSP protocol
191+
- get{Response,Token,TSTInfo,Accuracy,MessageImprint,
192+
PKIStatusInfo}
193+
- setTSTInfo
194+
- src/asn1.js
195+
- DERObjectIdentifier class update to use new oidtohex
196+
- src/asn1hex.js
197+
- add ASN1HEX.{getInt,getOID,getOIDName}
198+
- src/asn1csr.js
199+
- CSRUtil.getParam result "subject" parameter result is changed
200+
because of X509.getX500Name update.
201+
- src/asn1x509.js
202+
- small update for Time class
203+
- small update for Certificate.sign method
204+
- document fix (issue #463)
205+
- src/base64x.js
206+
- function "oidtohex" and "hextooid" added.
207+
- function "ishex" added
208+
- KJUR.lang.String.isHex now *DEPRECATED*. Please use "ishex".
209+
- src/x509.js
210+
- X509.getX500Name update
211+
- X509.get{Issuer,Subject,GeneralNames,GeneralName}
212+
- add X509.{getX500NameArray,dnarraytostr}
213+
- src/x509crl.js
214+
- X509CRL.getIssuer update for X509.getX500Name update
215+
- test/qunit-do-{asn1tsp,asn1cms,asn1hex,asn1x509-newcert-veri,
216+
base64x,x509-ext,x509crl}.html
217+
- updated to follow above
218+
219+
small issue fixes and updates
220+
* Changes from 10.0.4 to 10.0.5 release
221+
- src/base64x.js
222+
- utf8tob64u, b64utoutf8
223+
replace new Buffer() to Buffer.from() for
224+
Node.JS deprecation (issue #460)
225+
- src/asn1x509.js
226+
- P-256 oid added in OID class (PR #461 #333)
227+
- src/x509.js
228+
- document fix
229+
- tool/tool_csr.html
230+
- update to show ASN.1 dump of CSR
231+
- test/qunit-do-base64x.html, npm/test/t_base64x.js
232+
- update test code to follow above
233+
234+
add methods to modify some extension parameters
235+
* Changes from 10.0.3 to 10.0.4 (2020-Oct-23)
236+
- src/x509.js
237+
- add X509.updateExt{CDPFullURI,AIAOCSP,AIACAIssuer} method
238+
- src/nodeutil.js
239+
- add read{JSON,JSONC},saveJSON,printJSON method added
240+
- jrsasign-util npm package updated
241+
- test/qunit-do-x509-param.html
242+
- updated to follow above
243+
244+
add findExt method in X509 class
245+
* Changes from 10.0.2 to 10.0.3 (2020-Oct-21)
246+
- src/x509.js
247+
- add X509.findExt method
248+
- test/qunit-do-x509-param.html
249+
- updated to follow above
250+
251+
AdobeTimeStamp X.509v3 extension parser bugfix
252+
* Changes from 10.0.1 to 10.0.2 (2020-Oct-14)
253+
- src/x509.js
254+
- X509.getExtAdobeTimeStamp method bugfix
255+
256+
AdobeTimeStamp X.509v3 certificate extension added
257+
* Changes from 10.0.0 to 10.0.1 (2020-Oct-13)
258+
- src/asn1x509.js
259+
- AdobeTimeStamp class added
260+
- add AdobeTimeStamp support in Extension class
261+
- add "adobeTimeStamp" OID in OID class
262+
- src/x509.js
263+
- add getExtAdobeTimeStamp method to X509 class
264+
- add "adobeTimeStamp" support in getExtParam
265+
- src/asn1.js
266+
- DERBoolean add support for "false" value.
267+
- test/qunit-do-{asn1,asn1x509,x509}.html
268+
- updated to follow above
269+
4270
Major update for CMS SigneData TimeStamp and CAdES
5271
* Changes from 9.1.9 to 10.0.0 (2020-Sep-24)
6272
- major update for CMS SignedData related classes

0 commit comments

Comments
 (0)