sigh - I can think of no way to test the error condition
diff --git a/src/ssl/context.c b/src/ssl/context.c
index 68af889..ce99ee6 100644
--- a/src/ssl/context.c
+++ b/src/ssl/context.c
@@ -280,7 +280,14 @@
return NULL;
}
- SSL_CTX_set_default_verify_paths(self->ctx);
+ /*
+ * XXX Error handling for SSL_CTX_set_default_verify_paths is untested.
+ * -exarkun
+ */
+ if (!SSL_CTX_set_default_verify_paths(self->ctx)) {
+ exception_from_error_queue();
+ return NULL;
+ }
Py_INCREF(Py_None);
return Py_None;
};