Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r48686 - trunk/boost/asio/ssl/detail
From: chris_at_[hidden]
Date: 2008-09-09 09:02:22


Author: chris_kohlhoff
Date: 2008-09-09 09:02:22 EDT (Tue, 09 Sep 2008)
New Revision: 48686
URL: http://svn.boost.org/trac/boost/changeset/48686

Log:
Handle SSL library errors.

Text files modified:
   trunk/boost/asio/ssl/detail/openssl_operation.hpp | 4 ++++
   1 files changed, 4 insertions(+), 0 deletions(-)

Modified: trunk/boost/asio/ssl/detail/openssl_operation.hpp
==============================================================================
--- trunk/boost/asio/ssl/detail/openssl_operation.hpp (original)
+++ trunk/boost/asio/ssl/detail/openssl_operation.hpp 2008-09-09 09:02:22 EDT (Tue, 09 Sep 2008)
@@ -159,6 +159,10 @@
           0;
     int sys_error_code = ERR_get_error();
 
+ if (error_code == SSL_ERROR_SSL)
+ return handler_(boost::system::error_code(
+ error_code, boost::asio::error::get_ssl_category()), rc);
+
     bool is_read_needed = (error_code == SSL_ERROR_WANT_READ);
     bool is_write_needed = (error_code == SSL_ERROR_WANT_WRITE ||
                               ::BIO_ctrl_pending( ssl_bio_ ));


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk