Skip to content

Convert Bytes to s2n_quic::server::Name #2777

@boquan-fang

Description

@boquan-fang

Security issue notifications

Problem:

s2n-quic currently convert a server name into the server::Name struct by using the Into trait that's auto implemented: https://docs.rs/s2n-quic/latest/s2n_quic/server/struct.Name.html.

We recently came across the idea of creating server::Name using bytes. We want to directly convert bytes into server::Name using the from_static method. Such conversion is done in constant time and can avoid any churn on atomics for handshakes.

Need By Date:

No specific need by date.

Solution:

Implement a new method to allow such feature.

Requirements / Acceptance Criteria:

User should be able to create a server::Name by creating a byte array to call from_static to create it.

Out of scope:

N/A

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions