Skip to content

crypto/tls: document ConnectionState.NegotiatedProtocol more clearly #18841

Description

@nhooyr

NegotiatedProtocol's documentation implies that it will always be
from Config.NextProtos but with NPN, a client can select a protocol that
the server does not support. Or with ALPN, a server can potentially select a
protocol that the client does not support (though that is reflected in Config.NextProtosIsMutual).

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