From owner-freebsd-hackers Sun Dec 9 9:36: 9 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from diablo.ovinet.hu (diablo.ovinet.hu [217.13.33.205]) by hub.freebsd.org (Postfix) with ESMTP id B072C37B405 for ; Sun, 9 Dec 2001 09:36:06 -0800 (PST) Received: from diablo.ovinet.hu (titanic@localhost [127.0.0.1]) by localhost (MX V4.2 AXP/OpenVMS) with ESMTP id fB9HfimF008141 for ; Sun, 9 Dec 2001 18:41:44 +0100 Received: (from titanic@localhost) by diablo.ovinet.hu (8.12.0.Beta19/8.12.0.Beta19/Debian 8.12.0.Beta19) id fB9Hfh9X008139 for freebsd-hackers@freebsd.org; Sun, 9 Dec 2001 18:41:43 +0100 Date: Sun, 9 Dec 2001 18:41:43 +0100 From: KAISER Laszlo To: freebsd-hackers@freebsd.org Subject: SSL_connect fails Message-ID: <20011209184143.H12621@ovinet.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.15i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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