Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trust_anchor: clarify and rename extract_trust_anchor #201

Merged
merged 1 commit into from
Nov 10, 2023

Commits on Oct 30, 2023

  1. trust_anchor: clarify and rename extract_trust_anchor

    This function has caused some confusion w.r.t self-signed end-entity
    certificates and their support within rustls/webpki. This commit takes
    two actions:
    
    1. It renames `extract_trust_anchor` to
       `anchor_from_trusted_cert` to emphasize that the input
       **must** be from a trusted source that has already evaluated the
       certificate as suitable for use as a trust anchor.
    2. It adds more detail to the rustdoc comment for the function, in
       particular emphasizing why no additional validations are performed,
       and that it is not appropriate to use with an end-entity certificate
       in an attempt to support self-signed certificate use-cases.
    cpu committed Oct 30, 2023
    Configuration menu
    Copy the full SHA
    8692c5f View commit details
    Browse the repository at this point in the history