Hi,
I am glad to talk with you.Now I have a problem when I using OpenSSL.
I want to use openssl on my ARM platform,so I need to cross compile it.I
download the openssl-1.0.1c from the openssl.org.I used
arm-linux-gcc(libc2.2.5) to comlile it successfully,getting libssl.a
,libcrypto.a and openssl.But when I run openssl on my ARM with the command
"./openssl s_client -connect smtp.gmail.com:465 -state",it got error.the
messages is "CONNECTED(00000003)
SSL_connect:before/connect initialization
SSL_connect:error in SSLv2/v3 write client hello A
write:errno=0
--- "
the similar problems ,I made a test program with libssl.a ,libcrypto.a which I
cross compiled . SSL_connect function return -1,I use SSL_get_error ,i got the
errno 5(SSL_ERROR_SYSCALL),and ERR_get_error to check,it return 0,I find the
documents which says " If ret == 0, an EOF was observed that violates the
protocol." I don't know what's the meaning and how to solve it.
Please give me some advise,thanks a lot!
PS: I used it on my host pc(Ubuntu12.04),the two problems are not existed.
openssl version -a
OpenSSL 1.0.1c 10 May 2012
built on: Fri Oct 19 09:44:27 CST 2012
platform: linux-elf
options: bn(64,32) rc4(idx,int) des(ptr,risc1,16,long) idea(int) blowfish(idx)
compiler: arm-linux-gcc -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN
-DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall