-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
Inconsistent return types between SSLSocket and SSLObject certificate chain APIs #118658
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
Labels
type-bug
An unexpected behavior, bug, or error
Comments
Good catch. I overlooked this. I will fix it ASAP. |
I fixed the types, sorry for the problems. |
Yhg1s
pushed a commit
that referenced
this issue
Aug 16, 2024
…SLObject` and `SSLSocket` (#118669) Co-authored-by: Gregory P. Smith [Google LLC] <greg@krypto.org>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Aug 16, 2024
… in `SSLObject` and `SSLSocket` (pythonGH-118669) (cherry picked from commit 8ef358d) Co-authored-by: Mateusz Nowak <nowak.mateusz@hotmail.com> Co-authored-by: Gregory P. Smith [Google LLC] <greg@krypto.org>
sethmlarson
pushed a commit
that referenced
this issue
Aug 19, 2024
…` in `SSLObject` and `SSLSocket` (GH-118669) (#123082) gh-118658: Return consistent types from `get_un/verified_chain` in `SSLObject` and `SSLSocket` (GH-118669) (cherry picked from commit 8ef358d) Co-authored-by: Mateusz Nowak <nowak.mateusz@hotmail.com> Co-authored-by: Gregory P. Smith [Google LLC] <greg@krypto.org>
jeremyhylton
pushed a commit
to jeremyhylton/cpython
that referenced
this issue
Aug 19, 2024
… in `SSLObject` and `SSLSocket` (python#118669) Co-authored-by: Gregory P. Smith [Google LLC] <greg@krypto.org>
blhsing
pushed a commit
to blhsing/cpython
that referenced
this issue
Aug 22, 2024
… in `SSLObject` and `SSLSocket` (python#118669) Co-authored-by: Gregory P. Smith [Google LLC] <greg@krypto.org>
kanavin
added a commit
to kanavin/cpython
that referenced
this issue
Sep 26, 2024
…d_chain` in `SSLObject` and `SSLSocket` (python#118669)" This reverts commit 8ef358d.
This was referenced Sep 26, 2024
encukou
pushed a commit
that referenced
this issue
Oct 4, 2024
felixfontein
added a commit
to felixfontein/cpython
that referenced
this issue
Oct 4, 2024
…3.pem (pythonGH-124598) (cherry picked from commit 480354d) Co-authored-by: Felix Fontein <felix@fontein.de>
encukou
pushed a commit
that referenced
this issue
Oct 8, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
Bug description:
The
get_verified_chain()
andget_unverified_chain()
APIs forSSLSocket
were updated in #109113, but the API wasn't updated forSSLObject
. This leads to inconsistent return types, one returns_ssl.Certificate
and the other returnsbytes
. It appears from #109113 thatbytes
is what's expected.This caused an issue for Windows and macOS using Truststore which relies on these APIs for verifying certificates. A bugfix is coming for Truststore, but these APIs should return the same type.
cc @matiuszka
CPython versions tested on:
3.13, CPython main branch
Operating systems tested on:
Linux, Windows
Linked PRs
get_un/verified_chain
inSSLObject
andSSLSocket
#118669get_un/verified_chain
inSSLObject
andSSLSocket
(GH-118669) #123082The text was updated successfully, but these errors were encountered: