BiagioFesta / wtransport

Async-friendly WebTransport implementation in Rust
Apache License 2.0
471 stars 31 forks source link

TLS module refactoring #146

Closed BiagioFesta closed 8 months ago

BiagioFesta commented 8 months ago

--- This breaks API compatibility ---

Before

use wtransport::Certificate;

 let config = ServerConfig::builder()
        .with_bind_default(4433)
        .with_certificate(certificate)
        .build();

After

Now stuff should be clearer.

use wtransport::Identity;

 let config = ServerConfig::builder()
        .with_bind_default(4433)
        .with_identity(&identity)
        .build();