diff options
author | Matthew Miller <matthew@millerti.me> | 2022-07-27 22:19:40 -0700 |
---|---|---|
committer | Matthew Miller <matthew@millerti.me> | 2022-07-27 22:19:40 -0700 |
commit | 300cf684a9bd0b50d7e88a68860d71b012bd875b (patch) | |
tree | c6bcf0886bf0b67eddc6a97457ac8fc4ad129be5 | |
parent | 021cd7d80ae72ba2ab4cf5c1647af7891eb27509 (diff) |
Export named parseCertInfo()
-rw-r--r-- | packages/server/src/registration/verifications/tpm/parseCertInfo.ts | 2 | ||||
-rw-r--r-- | packages/server/src/registration/verifications/tpm/verifyTPM.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/packages/server/src/registration/verifications/tpm/parseCertInfo.ts b/packages/server/src/registration/verifications/tpm/parseCertInfo.ts index 1ac391e..6e3d4c3 100644 --- a/packages/server/src/registration/verifications/tpm/parseCertInfo.ts +++ b/packages/server/src/registration/verifications/tpm/parseCertInfo.ts @@ -3,7 +3,7 @@ import { TPM_ST, TPM_ALG } from './constants'; /** * Cut up a TPM attestation's certInfo into intelligible chunks */ -export default function parseCertInfo(certInfo: Buffer): ParsedCertInfo { +export function parseCertInfo(certInfo: Buffer): ParsedCertInfo { let pointer = 0; // Get a magic constant diff --git a/packages/server/src/registration/verifications/tpm/verifyTPM.ts b/packages/server/src/registration/verifications/tpm/verifyTPM.ts index b530347..f5fa414 100644 --- a/packages/server/src/registration/verifications/tpm/verifyTPM.ts +++ b/packages/server/src/registration/verifications/tpm/verifyTPM.ts @@ -21,7 +21,7 @@ import MetadataService from '../../../services/metadataService'; import { verifyAttestationWithMetadata } from '../../../metadata/verifyAttestationWithMetadata'; import { TPM_ECC_CURVE, TPM_MANUFACTURERS } from './constants'; -import parseCertInfo from './parseCertInfo'; +import { parseCertInfo } from './parseCertInfo'; import parsePubArea from './parsePubArea'; export default async function verifyTPM(options: AttestationFormatVerifierOpts): Promise<boolean> { |