Skip to content

Commit

Permalink
certcheck: new field in Android attestation ext
Browse files Browse the repository at this point in the history
Extra field that is being added for Android U
  • Loading branch information
daviddrysdale committed Nov 22, 2022
1 parent c85c1f4 commit 8cb94cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions x509util/android.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ type AuthorizationList struct {
BootPatchlevel int `asn1:"optional,explicit,tag:719,default:-1"`
DeviceUniqueAttestation asn1.RawValue `asn1:"optional,explicit,tag:720"`
IdentityCredentialKey asn1.RawValue `asn1:"optional,explicit,tag:721"`
AttestationIdSecondImei []byte `asn1:"optional,explicit,tag:723"`
}

// AttestInfoFromCert retrieves and parses an Android attestation information extension
Expand Down Expand Up @@ -270,6 +271,7 @@ func showKeyAuthorizations(buf *bytes.Buffer, auths AuthorizationList, prefix st
}
showNullValue(buf, prefix, "Device Unique Attestation", auths.DeviceUniqueAttestation)
showNullValue(buf, prefix, "Identity Credential Key", auths.IdentityCredentialKey)
showOptionalHex(buf, prefix, "Attestation Id Second IMEI", auths.AttestationIdSecondImei)
}

func enumsToString(vals []int, fp func(int) string) string {
Expand Down

0 comments on commit 8cb94cd

Please sign in to comment.