mirror of
https://github.com/saymrwulf/cryptography.git
synced 2026-05-14 20:37:55 +00:00
Add bindings for SSL_OP_NO_DTLS* (#4079)
* + bindings for SSL_OP_NO_DTLS* * + conditional for not HAS_GENERIC_DTLS_METHOD * flag SSL_OP_NO_DTLS* for unsupported deletion
This commit is contained in:
parent
2beccafe22
commit
5e866f7191
3 changed files with 7 additions and 1 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -10,5 +10,5 @@ htmlcov/
|
||||||
*.egg-info/
|
*.egg-info/
|
||||||
*.egg
|
*.egg
|
||||||
.eggs/
|
.eggs/
|
||||||
*.py[co]
|
*.py[cdo]
|
||||||
.hypothesis/
|
.hypothesis/
|
||||||
|
|
|
||||||
|
|
@ -65,6 +65,8 @@ static const long SSL_OP_NO_SSLv3;
|
||||||
static const long SSL_OP_NO_TLSv1;
|
static const long SSL_OP_NO_TLSv1;
|
||||||
static const long SSL_OP_NO_TLSv1_1;
|
static const long SSL_OP_NO_TLSv1_1;
|
||||||
static const long SSL_OP_NO_TLSv1_2;
|
static const long SSL_OP_NO_TLSv1_2;
|
||||||
|
static const long SSL_OP_NO_DTLSv1;
|
||||||
|
static const long SSL_OP_NO_DTLSv1_2;
|
||||||
static const long SSL_OP_NO_COMPRESSION;
|
static const long SSL_OP_NO_COMPRESSION;
|
||||||
static const long SSL_OP_SINGLE_DH_USE;
|
static const long SSL_OP_SINGLE_DH_USE;
|
||||||
static const long SSL_OP_EPHEMERAL_RSA;
|
static const long SSL_OP_EPHEMERAL_RSA;
|
||||||
|
|
@ -606,6 +608,8 @@ static const long Cryptography_HAS_GENERIC_DTLS_METHOD = 0;
|
||||||
const SSL_METHOD *(*DTLS_method)(void) = NULL;
|
const SSL_METHOD *(*DTLS_method)(void) = NULL;
|
||||||
const SSL_METHOD *(*DTLS_server_method)(void) = NULL;
|
const SSL_METHOD *(*DTLS_server_method)(void) = NULL;
|
||||||
const SSL_METHOD *(*DTLS_client_method)(void) = NULL;
|
const SSL_METHOD *(*DTLS_client_method)(void) = NULL;
|
||||||
|
static const long SSL_OP_NO_DTLSv1 = NULL;
|
||||||
|
static const long SSL_OP_NO_DTLSv1_2 = NULL;
|
||||||
#else
|
#else
|
||||||
static const long Cryptography_HAS_GENERIC_DTLS_METHOD = 1;
|
static const long Cryptography_HAS_GENERIC_DTLS_METHOD = 1;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -195,6 +195,8 @@ def cryptography_has_generic_dtls_method():
|
||||||
"DTLS_method",
|
"DTLS_method",
|
||||||
"DTLS_server_method",
|
"DTLS_server_method",
|
||||||
"DTLS_client_method",
|
"DTLS_client_method",
|
||||||
|
"SSL_OP_NO_DTLSv1",
|
||||||
|
"SSL_OP_NO_DTLSv1_2",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue