Hello Everyone:
I'm just starting to try out SSLeay and I have small program which I'm
converting to SSL from normal sockets. Things are going like this:
Server:
SSLeay_add_ssl_algorithms() ;
ctx = SSL_CTX_new( SSLv2_server_method() ) ;
ssl = SSL_new(ctx) ;
SSL_use_RSAPrivateKey_file(ssl,"server.rsa",X509_FILETYPE_PEM ) ;
SSL_use_certificate_file(ssl,"server.pem",X509_FILETYPE_PEM ) ;
SSL_set_fd(ssl, fd);
SSL_accept(ssl) ;
printf("SSL connection using %s\n",SSL_get_cipher(ssl) ) ;
SSL_read(ssl, inbuf, MAX_STRING); <-- problem !?! Not blocking
This SSL_read(..) call does not block! However, SSL_write(...) on the
client does block.
Can somebody give me a hint about what might be going wrong ?
Version: 0.9.1c
Platform: Red Hat Linux 5.2
Does anybody have any clue what this may be or how I can fix it ? Again,
sorry if this is a stupid question, I'm new to SSL.
Thanks!
Stu
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]