Some of you propably know this, but it still was slightly surprising
thing to see to happen while I was coding/adapting SMTP TLS client code
to ZMailer system[*].

It turned out that while the socket the SMTP client code creates is
running in non-blocking mode, I must temporarily turn the blocking mode
on while the SSL setup negotiations are under way.
I don't know if creating some wrapper to retry calls to  SSL_connect()
would have helped, but such would have been rather massively kludgy
thing..

Other than this problem, OpenSSL seems to be forming nice platform
for creating an SMTP client capable to run SSL encryption in SMTP
socket -- and a SMTP server also, of course.

/Matti Aarnio <[EMAIL PROTECTED]>

[*]: http://www.zmailer.org/
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to