[erlang-bugs] SSL Problems with R14A

Tuncer Ayaz tuncer.ayaz@REDACTED
Thu Jul 22 22:06:38 CEST 2010


On Thu, Jul 22, 2010 at 6:36 PM, Alexandru Scvorţov wrote:
> Hi,
>
> I'm having a bit of trouble using SSL in R14A.
>
> Here's the same code, run under R13B03 and R14A.
>
> % /opt/erlang/bin/erl
> Erlang R13B03 (erts-5.7.4) [source] [smp:2:2] [rq:2] [async-threads:0]
> [hipe]
> [kernel-poll:false]
>
> Eshell V5.7.4  (abort with ^G)
> 1> code:which(ssl).
> "/opt/erlang/lib/erlang/lib/ssl-3.10.7/ebin/ssl.beam"
> 2> ssl:start().
> ok
> 3> {ok, Socket} = ssl:connect("smtp.gmail.com", 465, [{active,false}],
> 1000).
> {ok,{sslsocket,5,<0.45.0>}}
> 4> ssl:recv(Socket, 0, 1000).
> {ok,"220 mx.google.com ESMTP n17sm3656484weq.30
> "}
>
>
>
>
> % erl
> Erlang R14A (erts-5.8) [source] [rq:1] [async-threads:0] [hipe]
>
> Eshell V5.8  (abort with ^G)
> 1> code:which(ssl).
> "/usr/lib/erlang/lib/ssl-4.0/ebin/ssl.beam"
> 2> ssl:start().
> ok
> 3> {ok, Socket} = ssl:connect("smtp.gmail.com", 465, [{active, false}],
> 1000).
> {ok,{sslsocket,new_ssl,<0.51.0>}}
> 4> ssl:recv(Socket, 0, 1000).
>
> =ERROR REPORT==== 21-Jul-2010::23:02:45 ===
> SSL: decipher_error: ./ssl_record.erl:680:Fatal error: bad record mac
> {error,"bad record mac"}
>
>
>
> As you can see, it works fine under under R13B03, but fails with a "bad
> record mac" error on R14A.
>
> Any ideas on what might be causing this?

I think it's the same issue as in
http://www.erlang.org/cgi-bin/ezmlm-cgi?4:mss:52313:201007:mohnjgfideamidobdnhk


More information about the erlang-bugs mailing list