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
Missing getters for alpn_protos #4952
Comments
My preference is for the second. |
The second also aligns better with If you use an |
SGTM, do you prefer a paranoid implementation? Or can I safely assume that the caller is not going to pass NULL to the getter and that
|
It should be "get0" because you are passing pointers from an internal data structure. And it's simpler to document that both values are required (nudge, documentation). And if both are required, do NOT do the NULL check. |
@tiran - what is the status of this? |
Hi, |
Not a 1.1.1 specific issue so removing that milestone. |
OpenSSL 1.1.0 has no getter to retrieve
alpn_client_proto_list
fromSSL*
andSSL_CTX*
. Getters would be useful for introspection of context or SSL connection, see https://bugs.python.org/issue32359I can create a PR after we have decided how the API should look like. Would you prefer:
or
The text was updated successfully, but these errors were encountered: