File tree Expand file tree Collapse file tree 3 files changed +14
-8
lines changed Expand file tree Collapse file tree 3 files changed +14
-8
lines changed Original file line number Diff line number Diff line change 1
1
os : linux
2
- dist : xenial
2
+ dist : focal
3
3
language : python
4
4
5
5
cache :
18
18
env : TOXENV=py27
19
19
- python : " 2.7"
20
20
env : TOXENV=py27
21
+ # we should still test against OpenSSL 1.0.2. Xenial gives us that for now.
22
+ dist : xenial
21
23
- python : " 3.5"
22
24
env : TOXENV=py35
23
25
- python : " 3.6"
74
76
env : TOXENV=py37-twistedMaster
75
77
- python : " 3.5"
76
78
env : TOXENV=py35-urllib3Master
79
+ # Somehow urllib3 has trouble with newer distributions
80
+ dist : xenial
77
81
78
82
79
83
# Meta
Original file line number Diff line number Diff line change @@ -1080,7 +1080,8 @@ def load_tmp_dh(self, dhfile):
1080
1080
1081
1081
dh = _lib .PEM_read_bio_DHparams (bio , _ffi .NULL , _ffi .NULL , _ffi .NULL )
1082
1082
dh = _ffi .gc (dh , _lib .DH_free )
1083
- _lib .SSL_CTX_set_tmp_dh (self ._context , dh )
1083
+ res = _lib .SSL_CTX_set_tmp_dh (self ._context , dh )
1084
+ _openssl_assert (res == 1 )
1084
1085
1085
1086
def set_tmp_ecdh (self , curve ):
1086
1087
"""
Original file line number Diff line number Diff line change 139
139
)
140
140
141
141
142
- # openssl dhparam 1024 -out dh-1024.pem (note that 1024 is a small number of
143
- # bits to use)
142
+ # openssl dhparam 2048 -out dh-2048.pem
144
143
dhparam = """\
145
144
-----BEGIN DH PARAMETERS-----
146
- MIGHAoGBALdUMvn+C9MM+y5BWZs11mSeH6HHoEq0UVbzVq7UojC1hbsZUuGukQ3a
147
- Qh2/pwqb18BZFykrWB0zv/OkLa0kx4cuUgNrUVq1EFheBiX6YqryJ7t2sO09NQiO
148
- V7H54LmltOT/hEh6QWsJqb6BQgH65bswvV/XkYGja8/T0GzvbaVzAgEC
145
+ MIIBCAKCAQEA2F5e976d/GjsaCdKv5RMWL/YV7fq1UUWpPAer5fDXflLMVUuYXxE
146
+ 3m3ayZob9lbpgEU0jlPAsXHfQPGxpKmvhv+xV26V/DEoukED8JeZUY/z4pigoptl
147
+ +8+TYdNNE/rFSZQFXIp+v2D91IEgmHBnZlKFSbKR+p8i0KjExXGjU6ji3S5jkOku
148
+ ogikc7df1Ui0hWNJCmTjExq07aXghk97PsdFSxjdawuG3+vos5bnNoUwPLYlFc/z
149
+ ITYG0KXySiCLi4UDlXTZTz7u/+OYczPEgqa/JPUddbM/kfvaRAnjY38cfQ7qXf8Y
150
+ i5s5yYK7a/0eWxxRr2qraYaUj8RwDpH9CwIBAg==
149
151
-----END DH PARAMETERS-----
150
152
"""
151
153
@@ -1560,7 +1562,6 @@ def _load_tmp_dh_test(self, dhfilename):
1560
1562
dhfile .write (dhparam )
1561
1563
1562
1564
context .load_tmp_dh (dhfilename )
1563
- # XXX What should I assert here? -exarkun
1564
1565
1565
1566
def test_load_tmp_dh_bytes (self , tmpfile ):
1566
1567
"""
You can’t perform that action at this time.
0 commit comments