Skip to content

x509-cert: BuilderProfile implementations and x509-cert::builder::Error #2236

@nemynm

Description

@nemynm

Hello,

What is the intended/expected way to implement BuilderProfile for external types?

Right now build_extensions returns Result<Vec<Extension>, x509_cert::builder::Error>, which effectively forces external implementations to map their error types into x509_cert::builder::Error. That may be a bit convoluted, since x509_cert::builder::Error has a limited set of variants and doesn’t easily carry external errors.

Would it make sense to change BuilderProfile to have an associated error type (e.g. type Error;), so implementations can return their own error?
Alternatively, would you consider adding a BuilderProfile-related variant to x509_cert::builder::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