Skip to content

Export ParseDeviceInfo#7

Closed
geffrak wants to merge 1 commit intomainfrom
geffrak/export-parse-device-info
Closed

Export ParseDeviceInfo#7
geffrak wants to merge 1 commit intomainfrom
geffrak/export-parse-device-info

Conversation

@geffrak
Copy link
Copy Markdown

@geffrak geffrak commented Mar 5, 2026

Problem

parseDeviceInfo is unexported, so callers that need to extract Apple device info from a certificate without running full attestation verification can't use it.

Fix

Export parseDeviceInfoParseDeviceInfo.

Key Changes

  • device_info.go - Renamed parseDeviceInfo to ParseDeviceInfo
  • verify_attestation.go - Updated internal call site

Validation

go build ./... and go test ./... pass.

Impact

Non-breaking — adds a new exported symbol. Existing callers via VerifyAttestationOutput.DeviceInfo are unaffected.

Drawbacks

None.

@geffrak geffrak marked this pull request as ready for review March 5, 2026 15:21
@geffrak geffrak requested a review from marctrem March 5, 2026 15:21
@geffrak geffrak closed this Mar 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant