Skip to content

Add new ParseRawWithHint() func for X.509-SVID #250

@chiragk25

Description

@chiragk25

Currently X.509-SVID parsing from raw ASN.1 DER bytes doesn't take into account the SVID hint capability, which requires adding it explicitly to the SVID struct once parsing is complete. Eg here: https://github.com/spiffe/go-spiffe/blob/v2.1.6/v2/workloadapi/client.go#L451-L454.

Maybe having a new function would make things cleaner?

func ParseRawWithHint(certBytes, keyBytes []byte, hint string) (*SVID, error)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions