Skip to content

Old version of code example in the docs #2152

@kota-yata

Description

@kota-yata

I was looking at the certificate example at the quinn docs and realized it was not up to date.

It shows that client configuration is done with following code:

fn configure_client() -> ClientConfig {
    let crypto = rustls::ClientConfig::builder()
        .with_safe_defaults()
        .with_custom_certificate_verifier(SkipServerVerification::new())
        .with_no_client_auth();

    ClientConfig::new(Arc::new(crypto))
}

but this only works before this commit, when QuicClientConfig was not yet introduced.

Other example code in the docs might be outdated too although I haven't tried them all.

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