<div dir="ltr"><div>Now I'm getting an error:<br>{error,{options,{ciphers,[]}}}<br><br></div>When calling:<br><div><br>Options = [{versions, ['dtlsv1.2', dtlsv1]},<br>               {cb_info, ssl_udp},<br>               {reuseaddr, true},<br>
               {active, false},<br>               {certfile,Cert},<br>               {keyfile, Key}],<br>{ok, LSocket} = ssl:listen(Port, Options).<br><br></div><div>Do I need to pass ciphers to the ssl options?<br></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Mar 5, 2014 at 12:46 AM, pablo platt <span dir="ltr"><<a href="mailto:pablo.platt@gmail.com" target="_blank">pablo.platt@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi,<br><br>I'm trying to use the dtls prototype from:<br><a href="https://github.com/RoadRunnr/otp/tree/new_crypto_dtls" target="_blank">https://github.com/RoadRunnr/otp/tree/new_crypto_dtls</a><br>
<br></div>I'm getting an exception when trying to use a simple example.<br>
</div><div>What am I doing wrong?<br></div><div><br>Is there an example how to use this modified ssl app with R16 or R17?<br>I see that the branch adds crypto:algorithms/0<br></div>Is it the only modification needed except for the ssl app?<br>

<br>Thanks<br><div><br><div><div>test<br>---------------<br><br>init() -><br>    Port = 5070,<br>    Cert = filename:join([dtls:priv_dir(webrtc), "cert.pem"]),<br>    Key = filename:join([dtls:priv_dir(webrtc), "key.pem"]),<br>

    Options = [{versions, ['dtlsv1.2', dtlsv1]},<br>               {cb_info, ssl_udp},<br>               {reuseaddr, true},<br>               {active, false},<br>               {certfile,Cert},<br>               {keyfile, Key}],<br>

    {ok, LSocket} = ssl:listen(Port,Options),<br>    spawn(?MODULE, accept, [LSocket]),<br>    {ok, #state{}}.<br>    <br>accept(LSocket) -><br>   {ok, Socket} = ssl_udp:accept(LSocket, 5000),<br>   Pid = spawn(?MODULE, loop, [Socket]),<br>

   ssl:controlling_process(Socket, Pid),<br>   accept(LSocket).<br><br>loop(Socket) -><br>    inet:setopts(Socket, [{active, once}]),<br>    receive<br>        R -><br>            error_logger:info_msg("~p~n", [R]),<br>

            loop(Socket)<br>    end. <br><br><br>exception<br>---------------------------<br>{'EXIT',<br>    {function_clause,<br>        [{ssl_udp,call,<br>             [{sslsocket,nil,<br>                  {<0.103.0>,<br>

                   {config,<br>                       {ssl_options,<br>                           [{254,253},{254,255}],<br>                           verify_none,<br>                           {#Fun<ssl.1.555667>,[]},<br>

                           false,false,false,undefined,1,<br>                           <<"cert.pem">>, <br>                           undefined,<br>                           <<"key.pem">>,<br>

                           undefined,[],undefined,<<>>,undefined,undefined,<br>                           undefined,undefined,undefined,<br>                           [<<"À$">>,<<"À(">>,<<"À&">>,<<"À*">>,<br>

                            <<0,107>>,<br>                            <<0,106>>,<br>                            <<0,61>>,<br>                            <<"À#">>,<<"À'">>,<<"À%">>,<<"À)">>,<br>

                            <<0,103>>,<br>                            <<0,64>>,<br>                            <<0,60>>,<br>                            <<"À\n">>,<br>

                            <<192,20>>,<br>                            <<0,57>>,<br>                            <<0,56>>,<br>                            <<192,5>>,<br>                            <<192,15>>,<br>

                            <<0,53>>,<br>                            <<"À\b">>,<br>                            <<192,18>>,<br>                            <<0,22>>,<br>

                            <<0,19>>,<br>                            <<192,3>>,<br>                            <<"À\r">>,<br>                            <<0,10>>,<br>

                            <<"À\t">>,<br>                            <<192,19>>,<br>                            <<0,51>>,<br>                            <<0,50>>,<br>

                            <<192,4>>,<br>                            <<192,14>>,<br>                            <<0,47>>,<br>                            <<192,7>>,<br>                            <<192,17>>,<br>

                            <<0,5>>,<br>                            <<0,4>>,<br>                            <<0,21>>,<br>                            <<192,2>>,<br>                            <<"À\f">>,<br>

                            <<0,9>>],<br>                           #Fun<ssl.0.555667>,true,268435456,false,undefined,<br>                           undefined,false,undefined,undefined},<br>                       [{reuseaddr,true},{active,false}],<br>

                       {socket_options,list,0,0,0,false},<br>                       [{reuseaddr,true},<br>                        {packet_size,0},<br>                        {packet,0},<br>                        {header,0},<br>

                        {active,false},<br>                        {mode,binary}],<br>                       {ssl_udp,ssl_udp,udp_closed,udp_error}}}},<br>              accept,10000,infinity],<br>             [{file,"ssl_udp.erl"},{line,149}]},<br>

         {dtls_test,accept,1,<br>             [{file,"src/dtls_test.erl"},{line,70}]}]}}<br></div></div></div></div>
</blockquote></div><br></div>