snowflake-sdk
Version:
Node.js driver for Snowflake
12 lines (11 loc) • 669 B
TypeScript
import rfc5280 from 'asn1.js-rfc5280';
export declare const CRL_MEMORY_CACHE: Map<string, {
expireAt: number;
crl: rfc5280.CertificateListDecoded;
}>;
export declare function getCrlFromMemory(url: string): rfc5280.CertificateListDecoded | null;
export declare function setCrlInMemory(url: string, crl: rfc5280.CertificateListDecoded): void;
export declare function clearExpiredCrlFromMemoryCache(): void;
export declare function clearExpiredCrlFromDiskCache(): Promise<void>;
export declare function getCrlFromDisk(url: string): Promise<rfc5280.CertificateListDecoded | null>;
export declare function writeCrlToDisk(url: string, rawCrl: Buffer): Promise<void>;