node-forge: pki.createCaStore accepts an optional array of certificates

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
Anders Kaseorg
2019-01-30 12:55:34 -08:00
parent fc452ce40e
commit 58ef2b85bc
+1 -1
View File
@@ -69,7 +69,7 @@ declare module "node-forge" {
function privateKeyFromPem(pem: PEM): PrivateKey;
function certificateToPem(cert: Certificate, maxline?: number): PEM;
function certificateFromPem(pem: PEM, computeHash?: boolean, strict?: boolean): Certificate;
function createCaStore(): CAStore;
function createCaStore(certs?: ReadonlyArray<Certificate | pki.PEM>): CAStore;
function verifyCertificateChain(caStore: CAStore, chain: Certificate[], customVerifyCallback?: (verified: boolean | string, depth: number, chain: Certificate[]) => boolean): boolean;
interface oids {