aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlyph <glyph@twistedmatrix.com>2015-05-19 13:46:15 -0700
committerGlyph <glyph@twistedmatrix.com>2015-05-19 13:46:15 -0700
commit006d8799d4bb05dcc58b3b3d9d0f8520df266028 (patch)
treedf7d31c4f7d5b9a4f3501879584c1a9406bb9f1f
parent8b8df2337049abfcfc3991be8331e31b6d116d84 (diff)
downloadcryptography-006d8799d4bb05dcc58b3b3d9d0f8520df266028.tar.gz
cryptography-006d8799d4bb05dcc58b3b3d9d0f8520df266028.tar.bz2
cryptography-006d8799d4bb05dcc58b3b3d9d0f8520df266028.zip
ssl_st is _not_ SSL_CTX, sorry
-rw-r--r--src/cryptography/hazmat/bindings/openssl/ssl.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/cryptography/hazmat/bindings/openssl/ssl.py b/src/cryptography/hazmat/bindings/openssl/ssl.py
index 5445f3c9..3754773b 100644
--- a/src/cryptography/hazmat/bindings/openssl/ssl.py
+++ b/src/cryptography/hazmat/bindings/openssl/ssl.py
@@ -124,12 +124,9 @@ static const long SSL_MODE_ENABLE_PARTIAL_WRITE;
static const long SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER;
static const long SSL_MODE_AUTO_RETRY;
static const long SSL3_RANDOM_SIZE;
+
typedef ... SSL_METHOD;
-typedef struct ssl_st {
- int version;
- int type;
- ...;
-} SSL_CTX;
+typedef ... SSL_CTX;
typedef struct {
int master_key_length;
@@ -144,9 +141,10 @@ typedef struct {
} SSL3_STATE;
typedef struct {
+ int version;
+ int type;
SSL3_STATE *s3;
SSL_SESSION *session;
- int type;
...;
} SSL;