[erlang-questions] SSL Example does not work

Magnus Henoch magnus@REDACTED
Mon Feb 22 12:12:32 CET 2016


I just sent a pull request to fix the example:
https://github.com/erlang/otp/pull/976

Regards,
Magnus

On Sat, Feb 20, 2016 at 4:01 PM, Roger Wenham <roger.wenham@REDACTED> wrote:

> Thanks for all the replies!, this list is brilliant!
>
> I now completely understand.
>
> ssl:start() calls:
>     application:start(crypto),
>     application:start(asn1),
>     application:start(public_key),
>     application:start(ssl).
>
> The supplied ssl example program calls:
> start() ->
>     %% Start ssl application
>     application:start(crypto),
>     application:start(public_key),
>     application:start(ssl),
>     ....
>
> So as Loïc Hoguin correctly pointed out, asn1 is not being started,
> causing the error...
>
> So the test program should be modified as either:
>
>  start() ->
>     %% Start ssl application
>     application:start(crypto),
>     application:start(asn1),
>     application:start(public_key),
>     application:start(ssl),
>     ....
>
> or better:
>
> start() ->
>     %% Start ssl application
>     ssl:start(),
>     ....
>
> I have tested the first fix, and it works....
>
> Do I need to raise a bug on this, as it is *very* confusing to have an
> official example program not work?
>
> Thanks
>
> Roger
>
> On 20/02/16 14:32, Loïc Hoguin wrote:
>
>> On 02/20/2016 12:13 PM, Roger Wenham wrote:
>>
>>> Hi Magnus,
>>>
>>> Thought of that, but the test program starts:
>>>
>>> start() ->
>>>      %% Start ssl application
>>>
>>
>> It's missing
>>        application:start(asn1).
>>
>>      application:start(crypto),
>>>      application:start(public_key),
>>>      application:start(ssl),
>>> ...
>>>
>>
>>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20160222/69bd72cf/attachment.htm>


More information about the erlang-questions mailing list