summaryrefslogtreecommitdiff
path: root/OpenSSL/ssl/connection.c
diff options
context:
space:
mode:
authorJean-Paul Calderone <exarkun@twistedmatrix.com>2012-02-14 16:51:35 -0500
committerJean-Paul Calderone <exarkun@twistedmatrix.com>2012-02-14 16:51:35 -0500
commit5ea41495ab07f449339b03014c1513429b7625ac (patch)
treeccec7a1e96a54fa718ce2783816c6e18b750c385 /OpenSSL/ssl/connection.c
parentfef5c4b8a31f2ed7d641b2e75ad22e2c5920ed32 (diff)
downloadpyopenssl-5ea41495ab07f449339b03014c1513429b7625ac.tar.gz
I don't always read OpenSSL source, but when I do I WISH I WERE DEAD
Diffstat (limited to 'OpenSSL/ssl/connection.c')
-rwxr-xr-xOpenSSL/ssl/connection.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSSL/ssl/connection.c b/OpenSSL/ssl/connection.c
index f7994a3..ebbe39f 100755
--- a/OpenSSL/ssl/connection.c
+++ b/OpenSSL/ssl/connection.c
@@ -1300,7 +1300,8 @@ ssl_Connection_set_session(ssl_ConnectionObj *self, PyObject *args) {
}
if (SSL_set_session(self->ssl, session->session) == 0) {
- /* XXX Under what conditions does this fail? I have no idea.
+ /* The only case which leads to this seems to be a mismatch, between
+ * this connection and the session, of the SSL method.
*/
exception_from_error_queue(ssl_Error);
return NULL;