Found some things on the Web that led me to believe some programs choke when
they get IPv6 addresses back from gethostbyname(), so I tried disabling IPv6
on Windows -- but no improvement.

I have tried coding a server program more or less following the example in
the O'Reilly OpenSSL book and the first BIO_do_accept() fails with

8276:error:02003AFC:system
library:getservbyname:reason(2812):.\crypto\bio\b_sock.c:224:service='&d'

which I am going to guess is the same problem.

Anyone?

Charles
-----Original Message-----
From: owner-openssl-us...@openssl.org
[mailto:owner-openssl-us...@openssl.org] On Behalf Of CharlesTSR
Sent: Monday, August 13, 2012 9:15 AM
To: openssl-users@openssl.org
Subject: s_server gethostbyname failure


I have exactly the same problem as
http://old.nabble.com/s_server-and-gethostbyname-failure-error-td14675962.ht
ml
http://old.nabble.com/s_server-and-gethostbyname-failure-error-td14675962.ht
ml
. I have searched and don't find any replies.

I run the following command:
openssl s_server -accept 6514 -cert servercacert.pem -key servercakey.pem
-state -debug -no_dhe

OpenSSL responds

Enter pass phrase for servercakey.pem:
Loading 'screen' into random state - done Using default temp ECDH parameters
ACCEPT

When my client issues BIO_do_connect(conn) then openssl s_server fails with

gethostbyname failure

There is nothing particularly unusual about the Windows 7 64-bit system on
which openssl is running. I have used gethostbyaddr frequently with no
unexpected errors. I'm using a pre-built Windows distribution of OpenSSL
1.0.1c. 

Any ideas?

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to