Skip to content

[QUIC] ClientAuthenticationOptions.ClientAuthenticationOptions should provide some defaults #64332

Closed

Description

@ManickaP

When creating a new QuicConnection, one must specify ClientAuthenticationOptions even though they are nullable on the options class:

public SslClientAuthenticationOptions? ClientAuthenticationOptions { get; set; }

If not, the ctor will fail with:

System.Exception : At least one SslApplicationProtocol value must be present in SslClientAuthenticationOptions or SslServerAuthenticationOptions.

Or the property shouldn't be nullable.

Activity

  1. ghost added
    untriaged
    on Jan 26, 2022
  2. wfurt commented on Jan 26, 2022

    @wfurt
    Member

    I don't know if ALPN is truly mandatory or if this is just requirement of MsQuic. We could possibly create overload with just the ALPN if needed.

    I bump to ALPN when looking at #49587. With the callback, we may know the ALPN only after we received Hello from client.

    cc: @nibanks

  3. nibanks commented on Jan 26, 2022

    @nibanks

    ALPN is mandatory.

  4. added this to the 7.0.0 milestone on Feb 10, 2022
  5. added
    api-suggestion
    and removed
    untriaged
    on Feb 10, 2022
  6. ManickaP commented on Jun 14, 2022

    @ManickaP
    MemberAuthor

    ALPN moved to server options, closing as covered by #67560

  7. ghost locked as resolved and limited conversation to collaborators on Jul 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    api-suggestionarea-System.Net.Quic

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions