Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Modules/_ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -2297,7 +2297,9 @@ static PyObject *
_ssl__SSLSocket_shared_ciphers_impl(PySSLSocket *self)
/*[clinic end generated code: output=3d174ead2e42c4fd input=869645271e3bc6d0]*/
{
STACK_OF(SSL_CIPHER) *server_ciphers;
const STACK_OF(SSL_CIPHER) *server_ciphers;
// Should be made const, but OpenSSL's sk_SSL_CIPHER_find() still takes a
// non-const stack. See https://github.com/openssl/openssl/issues/33707.
STACK_OF(SSL_CIPHER) *client_ciphers;
int i, len;
PyObject *res;
Expand Down Expand Up @@ -3953,7 +3955,7 @@ _ssl__SSLContext_get_ciphers_impl(PySSLContext *self)
/*[clinic end generated code: output=a56e4d68a406dfc4 input=d7fff51631a260ae]*/
{
SSL *ssl = NULL;
STACK_OF(SSL_CIPHER) *sk = NULL;
const STACK_OF(SSL_CIPHER) *sk = NULL;
const SSL_CIPHER *cipher;
int i=0;
PyObject *result = NULL, *dct;
Expand Down
Loading