Uploaded image for project: 'Erlang/OTP'
  1. Erlang/OTP
  2. ERL-951

error in ssl:handshake/1,2 spec and documentation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 21.0, 22.0
    • Fix Version/s: 22.0.3
    • Component/s: ssl
    • Labels:

      Description

      The ssl documentation states that ssl:handshake/1,2 might return

      {ok, SslSock, Ext}


      (when handshake_completion = hello).

      The ssl documentation and spec also states that the type of Ext is

      protocol_extensions() =
          #{renegotiation_info => binary(),
            signature_algs => signature_algs(),
            alpn => app_level_protocol(),
            srp => binary(),
            next_protocol => app_level_protocol(),
            ec_point_formats => [0..2],
            elliptic_curves => [public_key:oid()],
            sni => hostname()}
      

      and hostname() = string().

      However: the actual value of the sni key in the Ext map is of the type

      {'sni', hostname()}

      .

        Attachments

          Activity

            People

            Assignee:
            otp_team_ps Team PS
            Reporter:
            sg2342 Stefan Grundmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: