[erlang-bugs] SSL Problems with R14A

Alexandru Scvorţov scvalex@REDACTED
Thu Jul 22 18:36:36 CEST 2010


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?

Cheers,
Alex


More information about the erlang-bugs mailing list