Erlang Mailing Lists

Author Message

<  Erlang bugs mailing list  ~  SSL Problems with R14A

Guest
Posted: Thu Jul 22, 2010 4:37 pm Reply with quote
Guest
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.Cool [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

________________________________________________________________
erlang-bugs (at) erlang.org mailing list.
See http://www.erlang.org/faq.html
To unsubscribe; mailto:erlang-bugs-unsubscribe@erlang.org

Post received from mailinglist
t
Posted: Thu Jul 22, 2010 8:07 pm Reply with quote
User Joined: 30 Sep 2008 Posts: 133
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.Cool [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

________________________________________________________________
erlang-bugs (at) erlang.org mailing list.
See http://www.erlang.org/faq.html
To unsubscribe; mailto:erlang-bugs-unsubscribe@erlang.org

Post received from mailinglist
View user's profile Send private message
Guest
Posted: Thu Jul 22, 2010 10:52 pm Reply with quote
Guest
On Thu, 22 Jul 2010, Tuncer Ayaz wrote:

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

I don't think so. The error isn't raised by the padding checks (as in
that bug); it's raised when checking the Mac against the MacHash.

I don't claim to know what's happening but it appears to be miscalculating
a checksum.

Cheers,
Alex

________________________________________________________________
erlang-bugs (at) erlang.org mailing list.
See http://www.erlang.org/faq.html
To unsubscribe; mailto:erlang-bugs-unsubscribe@erlang.org

Post received from mailinglist

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum