@techteamer/ocsp
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -77,3 +77,3 @@ const ocsp = require('../ocsp') | ||
} else { | ||
return ocsp.check({ cert: cert, issuer: issuer }, cb) | ||
return ocsp.check({ cert, issuer }, cb) | ||
} | ||
@@ -80,0 +80,0 @@ } |
@@ -38,3 +38,3 @@ const ocsp = require('../ocsp') | ||
this.cache[id] = { | ||
response: response, | ||
response, | ||
timer: setTimeout(() => { delete this.cache[id] }, maxTime) | ||
@@ -41,0 +41,0 @@ } |
@@ -60,9 +60,9 @@ const ocsp = require('../ocsp') | ||
id: sha1(rfc2560.CertID.encode(certID, 'der')), | ||
certID: certID, | ||
certID, | ||
data: rfc2560.OCSPRequest.encode(req, 'der'), | ||
// Just to avoid re-parsing DER | ||
cert: cert, | ||
issuer: issuer | ||
cert, | ||
issuer | ||
} | ||
} |
@@ -117,3 +117,3 @@ const ocsp = require('../ocsp') | ||
producedAt: new Date(), | ||
responses: responses | ||
responses | ||
}, | ||
@@ -120,0 +120,0 @@ |
@@ -106,4 +106,4 @@ const http = require('http') | ||
value: basic, | ||
certs: certs, | ||
certsTbs: certsTbs | ||
certs, | ||
certsTbs | ||
} | ||
@@ -110,0 +110,0 @@ } |
{ | ||
"name": "@techteamer/ocsp", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "OCSP Stapling implementation", | ||
@@ -22,6 +22,6 @@ "main": "lib/ocsp.js", | ||
"devDependencies": { | ||
"eslint-plugin-mocha": "^9.0.0", | ||
"mocha": "^9.0.3", | ||
"eslint-plugin-mocha": "^10.1.0", | ||
"mocha": "^10.2.0", | ||
"selfsigned.js": "^3.0.2", | ||
"standard": "^16.0.3" | ||
"standard": "^17.0.0" | ||
}, | ||
@@ -32,5 +32,5 @@ "dependencies": { | ||
"asn1.js-rfc5280": "^3.0.0", | ||
"async": "^3.2.1", | ||
"async": "^3.2.4", | ||
"simple-lru-cache": "^0.0.2" | ||
} | ||
} |
@@ -0,5 +1,12 @@ | ||
# OCSP client and server implementation in nodejs | ||
This package is a fork of https://github.com/indutny/ocsp | ||
Changes: | ||
- Node 14 compatibility | ||
## Changelog | ||
### 1.0.1 | ||
- node 16,18 compatibility | ||
- tests fixed | ||
### 1.0.0 | ||
- node 14 compatibility | ||
- dependency upgrades | ||
@@ -20,2 +27,2 @@ - ES6 classes | ||
- null reference fix: https://github.com/KSR-Yasuda/ocsp/commit/317dc96ac9056b50a04dba606a1b5a8d910dbb17 | ||
- cache clear feature: https://github.com/spurreiter/ocsp/commit/6a2f012a11d2fd7a515c16a80bc12e628cc29853 | ||
- cache clear feature: https://github.com/spurreiter/ocsp/commit/6a2f012a11d2fd7a515c16a80bc12e628cc29853 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27308
12
28
5
Updatedasync@^3.2.4