diff options
author | Matthew Miller <matthew@millerti.me> | 2022-07-28 10:03:52 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-28 10:03:52 -0700 |
commit | 522f00d9ae613ff1f51f0c1aca85a6ae129381c5 (patch) | |
tree | 2ffa63377b3cce99dc1b7c7459292c071ce709a0 /packages/server/src/helpers/validateCertificatePath.ts | |
parent | 369708726378b0b24f873982ac9ca31d706fe2fe (diff) | |
parent | 7b1cadfaa2c5f78b56c4424db991674fddd7e152 (diff) |
Merge pull request #234 from MasterKale/all-named-exports
All named exports
Diffstat (limited to 'packages/server/src/helpers/validateCertificatePath.ts')
-rw-r--r-- | packages/server/src/helpers/validateCertificatePath.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/server/src/helpers/validateCertificatePath.ts b/packages/server/src/helpers/validateCertificatePath.ts index 96d3f50..11c1689 100644 --- a/packages/server/src/helpers/validateCertificatePath.ts +++ b/packages/server/src/helpers/validateCertificatePath.ts @@ -3,7 +3,7 @@ // @ts-ignore 2305 import { KJUR, X509, ASN1HEX, zulutodate } from 'jsrsasign'; -import isCertRevoked from './isCertRevoked'; +import { isCertRevoked } from './isCertRevoked'; const { crypto } = KJUR; @@ -12,7 +12,7 @@ const { crypto } = KJUR; * @param certificates Typically the result of `x5c.map(convertASN1toPEM)` * @param rootCertificates Possible root certificates to complete the path */ -export default async function validateCertificatePath( +export async function validateCertificatePath( certificates: string[], rootCertificates: string[] = [], ): Promise<boolean> { |