diff options
author | Matthew Miller <matthew@millerti.me> | 2022-07-27 22:14:52 -0700 |
---|---|---|
committer | Matthew Miller <matthew@millerti.me> | 2022-07-27 22:14:52 -0700 |
commit | 2e2bf6b83308d7767ec75bce7e0fa7b0c2dc306d (patch) | |
tree | 5880b9afe222fbf37107f591c1f74fdc84d262d8 /packages/server/src | |
parent | 6a3ca191d47f373de478cc46d7662138fe91f835 (diff) |
Export named getCertificateInfo()
Diffstat (limited to 'packages/server/src')
5 files changed, 5 insertions, 5 deletions
diff --git a/packages/server/src/helpers/getCertificateInfo.ts b/packages/server/src/helpers/getCertificateInfo.ts index 021ad77..02183c5 100644 --- a/packages/server/src/helpers/getCertificateInfo.ts +++ b/packages/server/src/helpers/getCertificateInfo.ts @@ -36,7 +36,7 @@ const issuerSubjectIDKey: { [key: string]: 'C' | 'O' | 'OU' | 'CN' } = { * * @param pemCertificate Result from call to `convertASN1toPEM(x5c[0])` */ -export default function getCertificateInfo(leafCertBuffer: Buffer): CertificateInfo { +export function getCertificateInfo(leafCertBuffer: Buffer): CertificateInfo { const asnx509 = AsnParser.parse(leafCertBuffer, Certificate); const parsedCert = asnx509.tbsCertificate; diff --git a/packages/server/src/helpers/index.ts b/packages/server/src/helpers/index.ts index 175caa2..072e37c 100644 --- a/packages/server/src/helpers/index.ts +++ b/packages/server/src/helpers/index.ts @@ -7,7 +7,7 @@ import { decodeCborFirst } from './decodeCbor'; import { decodeClientDataJSON } from './decodeClientDataJSON'; import { decodeCredentialPublicKey } from './decodeCredentialPublicKey'; import { generateChallenge } from './generateChallenge'; -import getCertificateInfo from './getCertificateInfo'; +import { getCertificateInfo } from './getCertificateInfo'; import isBase64URLString from './isBase64URLString'; import isCertRevoked from './isCertRevoked'; import parseAuthenticatorData from './parseAuthenticatorData'; diff --git a/packages/server/src/registration/verifications/tpm/verifyTPM.ts b/packages/server/src/registration/verifications/tpm/verifyTPM.ts index 7c2591a..6fbcbbe 100644 --- a/packages/server/src/registration/verifications/tpm/verifyTPM.ts +++ b/packages/server/src/registration/verifications/tpm/verifyTPM.ts @@ -15,7 +15,7 @@ import { COSEKEYS, COSEALGHASH } from '../../../helpers/convertCOSEtoPKCS'; import toHash from '../../../helpers/toHash'; import { convertCertBufferToPEM } from '../../../helpers/convertCertBufferToPEM'; import validateCertificatePath from '../../../helpers/validateCertificatePath'; -import getCertificateInfo from '../../../helpers/getCertificateInfo'; +import { getCertificateInfo } from '../../../helpers/getCertificateInfo'; import verifySignature from '../../../helpers/verifySignature'; import MetadataService from '../../../services/metadataService'; import verifyAttestationWithMetadata from '../../../metadata/verifyAttestationWithMetadata'; diff --git a/packages/server/src/registration/verifications/verifyAndroidSafetyNet.ts b/packages/server/src/registration/verifications/verifyAndroidSafetyNet.ts index 90df77d..68ce294 100644 --- a/packages/server/src/registration/verifications/verifyAndroidSafetyNet.ts +++ b/packages/server/src/registration/verifications/verifyAndroidSafetyNet.ts @@ -4,7 +4,7 @@ import type { AttestationFormatVerifierOpts } from '../verifyRegistrationRespons import toHash from '../../helpers/toHash'; import verifySignature from '../../helpers/verifySignature'; -import getCertificateInfo from '../../helpers/getCertificateInfo'; +import { getCertificateInfo } from '../../helpers/getCertificateInfo'; import validateCertificatePath from '../../helpers/validateCertificatePath'; import { convertCertBufferToPEM } from '../../helpers/convertCertBufferToPEM'; import MetadataService from '../../services/metadataService'; diff --git a/packages/server/src/registration/verifications/verifyPacked.ts b/packages/server/src/registration/verifications/verifyPacked.ts index f48607f..5afb88c 100644 --- a/packages/server/src/registration/verifications/verifyPacked.ts +++ b/packages/server/src/registration/verifications/verifyPacked.ts @@ -13,7 +13,7 @@ import { import toHash from '../../helpers/toHash'; import { convertCertBufferToPEM } from '../../helpers/convertCertBufferToPEM'; import validateCertificatePath from '../../helpers/validateCertificatePath'; -import getCertificateInfo from '../../helpers/getCertificateInfo'; +import { getCertificateInfo } from '../../helpers/getCertificateInfo'; import verifySignature from '../../helpers/verifySignature'; import { decodeCredentialPublicKey } from '../../helpers/decodeCredentialPublicKey'; import MetadataService from '../../services/metadataService'; |