Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Dec 2001 18:41:43 +0100
From:      KAISER Laszlo <titanic@ovinet.hu>
To:        freebsd-hackers@freebsd.org
Subject:   SSL_connect fails
Message-ID:  <20011209184143.H12621@ovinet.hu>

next in thread | raw e-mail | index | archive | help
Hi,

I'm doing a port of a little OpenSSL program to FreeBSD from linux, but the
code which works fine on linux fails on FreeBSD at SSL_connect().
This function allways returns with -1 and SSL_errno is 1.

The code creates the CTX in client mode successfully, reads the client
certificates, sets session id, sets session, sets the file descriptor, and
connect state. Until this point there is no error/warnin. But SSL_connect().

I examined the stunnel source which do the same, but that code works, mine
not :/

Compiler options:

CFLAGS -fomit-frame-pointer -fpcc-struct-return -O2 -D_REENTRANT \
-D_POSIX_PTHREADS_SEMANTICS
LDFLAGS -lc_r -lcrypto -pthread -lssl -fomit-frame-pointer -fpcc-struct-return -O2

OpenSSL version: 0.9.5a

What do i wrong? :o

TiTaNiC
-- 

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011209184143.H12621>