<div dir="ltr"><div><div>I just sent a pull request to fix the example: <a href="https://github.com/erlang/otp/pull/976">https://github.com/erlang/otp/pull/976</a><br><br></div>Regards,<br></div>Magnus<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Feb 20, 2016 at 4:01 PM, Roger Wenham <span dir="ltr"><<a href="mailto:roger.wenham@gmx.net" target="_blank">roger.wenham@gmx.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks for all the replies!, this list is brilliant!<br>
<br>
I now completely understand.<br>
<br>
ssl:start() calls:<br>
    application:start(crypto),<br>
    application:start(asn1),<br>
    application:start(public_key),<br>
    application:start(ssl).<br>
<br>
The supplied ssl example program calls:<span class=""><br>
start() -><br>
    %% Start ssl application<br></span><span class="">
    application:start(crypto),<br>
    application:start(public_key),<br>
    application:start(ssl),<br></span>
    ....<br>
<br>
So as Loïc Hoguin correctly pointed out, asn1 is not being started, causing the error...<br>
<br>
So the test program should be modified as either:<span class=""><br>
<br>
 start() -><br>
    %% Start ssl application<br></span>
    application:start(crypto),<br>
    application:start(asn1),<br>
    application:start(public_key),<br>
    application:start(ssl),<br>
    ....<br>
<br>
or better:<span class=""><br>
<br>
start() -><br>
    %% Start ssl application<br></span>
    ssl:start(),<br>
    ....<br>
<br>
I have tested the first fix, and it works....<br>
<br>
Do I need to raise a bug on this, as it is *very* confusing to have an official example program not work?<br>
<br>
Thanks<span class="HOEnZb"><font color="#888888"><br>
<br>
Roger</font></span><span class="im HOEnZb"><br>
<br>
On 20/02/16 14:32, Loïc Hoguin wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 02/20/2016 12:13 PM, Roger Wenham wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Magnus,<br>
<br>
Thought of that, but the test program starts:<br>
<br>
start() -><br>
     %% Start ssl application<br>
</blockquote>
<br>
It's missing<br>
       application:start(asn1).<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
     application:start(crypto),<br>
     application:start(public_key),<br>
     application:start(ssl),<br>
...<br>
</blockquote>
<br>
</blockquote>
<br></span><div class="HOEnZb"><div class="h5">
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</div></div></blockquote></div><br></div>