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

prf for DTLS missing

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Not a Bug
    • Affects Version/s: OTP-21.2.4
    • Fix Version/s: None
    • Component/s: ssl
    • Labels:
      None

      Description

      ssl_handshake:prf/6 is missing DTLS:
      https://github.com/erlang/otp/blob/master/lib/ssl/src/ssl_handshake.erl#L917

      I'm not sure if it's correct but maybe it should like something like:

      prf({3,0}, _, _, _, _, _) ->
          {error, undefined};
      prf({3,_N}, PRFAlgo, Secret, Label, Seed, WantedLength) ->
      +    {ok, tls_v1:prf(PRFAlgo, Secret, Label, Seed, WantedLength)};
      +prf({254, 255}, PRFAlgo, Secret, Label, Seed, WantedLength) ->
      +    {ok, tls_v1:prf(PRFAlgo, Secret, Label, Seed, WantedLength)};
      +prf({254, _}, PRFAlgo, Secret, Label, Seed, WantedLength) ->
      +    {ok, tls_v1:prf(PRFAlgo, Secret, Label, Seed, WantedLength)}.
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            benbro Ben B
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: