mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 21:25:26 +00:00
Fixed comments
This commit is contained in:
3
index.js
3
index.js
@@ -502,7 +502,6 @@ class Pass {
|
|||||||
* Edits the buffer of pass.json based on the passed options.
|
* Edits the buffer of pass.json based on the passed options.
|
||||||
*
|
*
|
||||||
* @method _patch
|
* @method _patch
|
||||||
* @params {Object} options - options resulting from the filtering made by filterPassOptions function
|
|
||||||
* @params {Buffer} passBuffer - Buffer of the contents of pass.json
|
* @params {Buffer} passBuffer - Buffer of the contents of pass.json
|
||||||
* @returns {Promise<Buffer>} Edited pass.json buffer or Object containing error.
|
* @returns {Promise<Buffer>} Edited pass.json buffer or Object containing error.
|
||||||
*/
|
*/
|
||||||
@@ -608,7 +607,6 @@ class Pass {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Parses the PEM-formatted passed text (certificates)
|
* Parses the PEM-formatted passed text (certificates)
|
||||||
*
|
*
|
||||||
@@ -622,7 +620,6 @@ function parsePEM(element, passphrase) {
|
|||||||
if (element.includes("PRIVATE KEY") && passphrase) {
|
if (element.includes("PRIVATE KEY") && passphrase) {
|
||||||
return forge.pki.decryptRsaPrivateKey(element, String(passphrase));
|
return forge.pki.decryptRsaPrivateKey(element, String(passphrase));
|
||||||
} else if (element.includes("CERTIFICATE")) {
|
} else if (element.includes("CERTIFICATE")) {
|
||||||
// PEM-exported certificates with keys are in PKCS#12 format, hence they are composed of bags.
|
|
||||||
return forge.pki.certificateFromPem(element);
|
return forge.pki.certificateFromPem(element);
|
||||||
} else {
|
} else {
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user