proto_dist inet_ssl STILL broken in R10B-8?
Bjorn Gustavsson
bjorn@REDACTED
Tue Nov 8 12:30:15 CET 2005
Here is patch that corrects the problem. This correction will
be included in R10B-9.
/Bjorn
--- lib/ssl/src/ssl_prim.erl@@/main/release/LATEST Mon Jul 7 14:36:53 2003
+++ lib/ssl/src/ssl_prim.erl Tue Nov 8 12:22:04 2005
@@ -107,7 +107,7 @@
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
@@ -119,7 +119,7 @@
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@REDACTED> 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örn Gustavsson, Erlang/OTP, Ericsson AB
More information about the erlang-questions
mailing list