BiagioFesta / wtransport

Async-friendly WebTransport implementation in Rust
Apache License 2.0
402 stars 27 forks source link

TLS module refactoring #146

Closed BiagioFesta closed 6 months ago

BiagioFesta commented 6 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();