-
Notifications
You must be signed in to change notification settings - Fork 421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
load_client_ca does nothing #387
Comments
Uh...yes. That seems...wrong? |
pyOpenSSL 0.13 does this: static char ssl_Context_load_client_ca_doc[] = "\n\
Load the trusted certificates that will be sent to the client (basically\n\
telling the client \"These are the guys I trust\"). Does not actually\n\
imply any of the certificates are trusted; that must be configured\n\
separately.\n\
\n\
:param cafile: The name of the certificates file\n\
:return: None\n\
";
static PyObject *
ssl_Context_load_client_ca(ssl_ContextObj *self, PyObject *args)
{
char *cafile;
if (!PyArg_ParseTuple(args, "s:load_client_ca", &cafile))
return NULL;
SSL_CTX_set_client_CA_list(self->ctx, SSL_load_client_CA_file(cafile));
Py_INCREF(Py_None);
return Py_None;
} Unfortunately, |
I'll go ahead and send a PR to cryptography anyways, so that it's at least On Sun, Jan 31, 2016 at 9:59 AM, Hynek Schlawack [email protected]
"I disapprove of what you say, but I will defend to the death your right to |
I'm curious as to why you say this. https://github.com/rackerlabs/mimic/ uses pyenv to get a current pypy and it's been working better for us than trying to work around travis's ancient and busted version… |
I don't care about our own CI; I care about the wave of anger and frustration pouring over me if we released a pyOpenSSL that renders every depending project untestable on Travis without jumping through pyenv hoops… |
Ah, gotcha. |
Maybe we could conditionally fall back to doing nothing if the necessary binding isn't importable? This is terrible, of course, but I don't think it's any less terrible than the current behaviour of always doing nothing. |
The cryptography PR is pyca/cryptography#2703 btw. |
I have thought about opening this can of worms but it adds a new dimension of complexity I would rather avoid. |
(but it's possible that we won't be able to get around that anyway: #419 :|) |
The method body of
Context.load_client_ca
is empty. That seems like it is probably not what callers expect.The text was updated successfully, but these errors were encountered: