It looks like a verification failure, whatever that means! Sounds like an infinite loop from the man pages. Try fflush() on your stdio to catch those printf()'s :)
Quote from: http://www.hmug.org/man/3/SSL_CTX_set_verify.html The return value of verify_callback controls the strategy of the further verification process. If verify_callback returns 0, the verification process is immediately stopped with "verification failed" state. If SSL_VERIFY_PEER is set, a verification failure alert is sent to the peer and the TLS/SSL handshake is terminated. If verify_callback returns 1, the verification process is continued. If ver- ify_callback always returns 1, the TLS/SSL handshake will never be terminated because of this application experienc- ing a verification failure. The calling process can how- ever retrieve the error code of the last verification error using SSL_get_verify_result(3) or by maintaining its own error storage managed by verify_callback. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]