Erlang/OTP Forums

Author Message

<  Erlang bugs mailing list  ~  proto_dist inet_ssl STILL broken in R10B-8?

ft at it.su.se
Posted: Wed Oct 26, 2005 7:59 pm Reply with quote
Guest
Is anyone able to use SSL proto_dist in R10B-7 or R10B-8? I am not, and
I am wondering if it is

A) just me
B) officially broken
C) unofficially broken

$ /pkg/erlang/R10B-8/bin/erl \
-proto_dist inet_ssl \
-ssl_dist_opt client_certfile cert.comb \
-ssl_dist_opt server_certfile cert.comb \
-ssl_dist_opt verify 2 \
-boot ~/path/to/R10B-8-compiled/start_ssl \
-name a

... nothing happens, it just hangs there.

/Fredrik

---------- Forwarded Message ----------

Subject: Fwd: proto_dist inet_ssl broken in R10B-7?
Date: Saturday 10 September 2005 10.26
From: Fredrik Thulin <ft_at_it.su.se>
To: erlang-bugs_at_erlang.org

Hi

I got a private reply from someone saying they have the exact same
problem, so I therefor conclude that it is not just me but a bug that
appeared in R10B-7. Hence this post to erlang-bugs_at_.

/Fredrik


---------- Forwarded Message ----------

Subject: proto_dist inet_ssl broken in R10B-7?
Date: Friday 02 September 2005 11.39
From: Fredrik Thulin <ft_at_it.su.se>
To: erlang-questions_at_erlang.org

Hi

Is it just me, or is -proto_dist inet_ssl broken in R10B-7?

R10B-6 :

$ /pkg/erlang/R10B-6/bin/erl \
-proto_dist inet_ssl \
-ssl_dist_opt client_certfile cert.comb \
-ssl_dist_opt server_certfile cert.comb \
-ssl_dist_opt verify 2 \
-boot ~/path/to/R10B-6-compiled/start_ssl \
-name a
Erlang (BEAM) emulator version 5.4.8 [source] [hipe]

Eshell V5.4.8 (abort with ^G)
(a_at_barbar.it.su.se)1>

$ /pkg/erlang/R10B-7/bin/erl \
-proto_dist inet_ssl \
-ssl_dist_opt client_certfile cert.comb \
-ssl_dist_opt server_certfile cert.comb \
-ssl_dist_opt verify 2 \
-boot ~/path/to/R10B-7-compiled/start_ssl \
-name a

R10B-7 just hangs. Same cert.comb.

R10B-6 start_ssl.rel :

%% Erlang OTP R10B-6 library versions
%% File to get Erlang distribution using SSL started
{release, {"Yxa foo","0.0"}, {erts, "5.2"},
[{kernel,"2.10.9"},
{stdlib,"1.13.8"},
{ssl, "3.0.7"}
]
}.

R10B-7 start_ssl.rel :

%% Erlang OTP R10B-7 library versions
%% File to get Erlang distribution using SSL started
{release, {"Yxa foo","0.0"}, {erts, "5.2"},
[{kernel,"2.10.10"},
{stdlib,"1.13.9"},
{ssl, "3.0.7"}
]
}.

/Fredrik

-------------------------------------------------------

-------------------------------------------------------


Post generated using Mail2Forum (http://m2f.sourceforge.net)
bjorn at erix.ericsson.se
Posted: Tue Nov 08, 2005 11:35 am Reply with quote
Guest
Here is patch that corrects the problem. This correction will
be included in R10B-9.

/Bjorn

--- lib/ssl/src/ssl_prim.erl_at__at_/main/release/LATEST Mon Jul 7 14:36:53 2003
+++ lib/ssl/src/ssl_prim.erl Tue Nov 8 12:22:04 2005
_at__at_ -107,7 +107,7 _at__at_
peername(St) when record(St, st), St#st.status =:= open ->
case ssl_server:peername_prim(ssl_server_prim, St#st.fd) of
{ok, {Address, Port}} ->
- {ok, At} = inet:getaddr(Address, inet),
+ {ok, At} = inet_parse:ipv4_address(Address),
{ok, {At, Port}};
Error ->
Error
_at__at_ -119,7 +119,7 _at__at_
sockname(St) when record(St, st), St#st.status =:= open ->
case ssl_server:sockname_prim(ssl_server_prim, St#st.fd) of
{ok, {Address, Port}} ->
- {ok, At} = inet:getaddr(Address, inet),
+ {ok, At} = inet_parse:ipv4_address(Address),
{ok, {At, Port}};
Error ->
Error





Fredrik Thulin <ft_at_it.su.se> writes:

> Is anyone able to use SSL proto_dist in R10B-7 or R10B-8? I am not, and
> I am wondering if it is
>
> A) just me
> B) officially broken
> C) unofficially broken
>
> $ /pkg/erlang/R10B-8/bin/erl \
> -proto_dist inet_ssl \
> -ssl_dist_opt client_certfile cert.comb \
> -ssl_dist_opt server_certfile cert.comb \
> -ssl_dist_opt verify 2 \
> -boot ~/path/to/R10B-8-compiled/start_ssl \
> -name a
>
> ... nothing happens, it just hangs there.
>
> /Fredrik
>

--
Bj
ft at it.su.se
Posted: Tue Nov 08, 2005 7:20 pm Reply with quote
Guest
On Tuesday 08 November 2005 12.30, you wrote:
> Here is patch that corrects the problem. This correction will
> be included in R10B-9.

Thank you so much! If I spot you I'll buy you a beer at the erlounge. If
the beer is free, I'll just salute you ;)

/Fredrik


Post generated using Mail2Forum (http://m2f.sourceforge.net)

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