Skip to content

Commit

Permalink
attestation/snp: use OID range 1.3.9901.2 for snp
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Meyer <[email protected]>
  • Loading branch information
katexochen committed Jan 8, 2024
1 parent 7c818c1 commit 59fa6e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/attestation/snp/issuer.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func NewIssuer(log *slog.Logger) *Issuer {

// OID returns the OID of the issuer.
func (i *Issuer) OID() asn1.ObjectIdentifier {
return asn1.ObjectIdentifier{1, 3, 9900, 77, 77}
return asn1.ObjectIdentifier{1, 3, 9901, 2, 1}
}

// Issue the attestation document.
Expand Down
2 changes: 1 addition & 1 deletion internal/attestation/snp/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func NewValidatorWithCallbacks(optsGen validateOptsGenerator, log *slog.Logger,

// OID returns the OID of the validator.
func (v *Validator) OID() asn1.ObjectIdentifier {
return asn1.ObjectIdentifier{1, 3, 9900, 77, 77}
return asn1.ObjectIdentifier{1, 3, 9901, 2, 2}
}

// Validate a TPM based attestation.
Expand Down

0 comments on commit 59fa6e3

Please sign in to comment.