diff options
author | LinuxWizard42 <computerwizard@linuxmail.org> | 2022-10-12 23:08:57 +0300 |
---|---|---|
committer | LinuxWizard42 <computerwizard@linuxmail.org> | 2022-10-12 23:08:57 +0300 |
commit | 726b81b19251674e149ccfbb1abacbd837fc6db0 (patch) | |
tree | fbdbb227dc01357eb76e8222d76185bc124c5ca6 /node_modules/electron-osx-sign/util-identities.js | |
parent | 34f0890e175698940d49238097579f44e4d78c89 (diff) | |
download | FlashRunner-726b81b19251674e149ccfbb1abacbd837fc6db0.tar.gz FlashRunner-726b81b19251674e149ccfbb1abacbd837fc6db0.tar.zst |
Removed files that should not have been included in git
Diffstat (limited to 'node_modules/electron-osx-sign/util-identities.js')
-rw-r--r-- | node_modules/electron-osx-sign/util-identities.js | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/node_modules/electron-osx-sign/util-identities.js b/node_modules/electron-osx-sign/util-identities.js deleted file mode 100644 index 37cfbdb..0000000 --- a/node_modules/electron-osx-sign/util-identities.js +++ /dev/null @@ -1,55 +0,0 @@ -/** - * @module util-identities - */ - -'use strict' - -const util = require('./util') -const debuglog = util.debuglog -const flatList = util.flatList -const execFileAsync = util.execFileAsync - -/** - * @constructor - * @param {string} name - Name of the signing identity. - * @param {String} hash - SHA-1 hash of the identity. - */ -var Identity = module.exports.Identity = function (name, hash) { - this.name = name - this.hash = hash -} - -/** - * This function returns a promise checking the indentity proposed and updates the identity option to a exact finding from results. - * @function - * @param {Object} opts - Options. - * @param {string} identity - The proposed identity. - * @returns {Promise} Promise. - */ -module.exports.findIdentitiesAsync = function (opts, identity) { - // Only to look for valid identities, excluding those flagged with - // CSSMERR_TP_CERT_EXPIRED or CSSMERR_TP_NOT_TRUSTED. Fixes #9 - - var args = [ - 'find-identity', - '-v' - ] - if (opts.keychain) { - args.push(opts.keychain) - } - - return execFileAsync('security', args) - .then(function (result) { - return result.split('\n').map(function (line) { - if (line.indexOf(identity) >= 0) { - var identityFound = line.substring(line.indexOf('"') + 1, line.lastIndexOf('"')) - var identityHashFound = line.substring(line.indexOf(')') + 2, line.indexOf('"') - 1) - debuglog('Identity:', '\n', - '> Name:', identityFound, '\n', - '> Hash:', identityHashFound) - return new Identity(identityFound, identityHashFound) - } - }) - }) - .then(flatList) -} |