whoami7 - Manager
:
/
opt
/
alt
/
alt-nodejs22
/
root
/
lib
/
node_modules
/
npm
/
node_modules
/
@sigstore
/
verify
/
dist
/
Upload File:
files >> //opt/alt/alt-nodejs22/root/lib/node_modules/npm/node_modules/@sigstore/verify/dist/policy.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.verifyExtensions = exports.verifySubjectAlternativeName = void 0; const error_1 = require("./error"); function verifySubjectAlternativeName(policyIdentity, signerIdentity) { if (signerIdentity === undefined || !signerIdentity.match(policyIdentity)) { throw new error_1.PolicyError({ code: 'UNTRUSTED_SIGNER_ERROR', message: `certificate identity error - expected ${policyIdentity}, got ${signerIdentity}`, }); } } exports.verifySubjectAlternativeName = verifySubjectAlternativeName; function verifyExtensions(policyExtensions, signerExtensions = {}) { let key; for (key in policyExtensions) { if (signerExtensions[key] !== policyExtensions[key]) { throw new error_1.PolicyError({ code: 'UNTRUSTED_SIGNER_ERROR', message: `invalid certificate extension - expected ${key}=${policyExtensions[key]}, got ${key}=${signerExtensions[key]}`, }); } } } exports.verifyExtensions = verifyExtensions;
Copyright ©2021 || Defacer Indonesia