File tree 2 files changed +8
-8
lines changed
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 259
259
260
260
# These values are compared to output from cffi's ffi.string so they must be
261
261
# byte strings.
262
- _CRYPTOGRAPHY_MANYLINUX1_CA_DIR = b"/opt/pyca/cryptography/openssl/certs"
263
- _CRYPTOGRAPHY_MANYLINUX1_CA_FILE = b"/opt/pyca/cryptography/openssl/cert.pem"
262
+ _CRYPTOGRAPHY_MANYLINUX_CA_DIR = b"/opt/pyca/cryptography/openssl/certs"
263
+ _CRYPTOGRAPHY_MANYLINUX_CA_FILE = b"/opt/pyca/cryptography/openssl/cert.pem"
264
264
265
265
266
266
class Error (Exception ):
@@ -872,8 +872,8 @@ def set_default_verify_paths(self):
872
872
# to the exact values we use in our manylinux1 builds. If they are
873
873
# then we know to load the fallbacks
874
874
if (
875
- default_dir == _CRYPTOGRAPHY_MANYLINUX1_CA_DIR
876
- and default_file == _CRYPTOGRAPHY_MANYLINUX1_CA_FILE
875
+ default_dir == _CRYPTOGRAPHY_MANYLINUX_CA_DIR
876
+ and default_file == _CRYPTOGRAPHY_MANYLINUX_CA_FILE
877
877
):
878
878
# This is manylinux1, let's load our fallback paths
879
879
self ._fallback_default_verify_paths (
Original file line number Diff line number Diff line change @@ -1214,8 +1214,8 @@ def test_load_verify_locations_wrong_args(self):
1214
1214
def test_fallback_default_verify_paths (self , monkeypatch ):
1215
1215
"""
1216
1216
Test that we load certificates successfully on linux from the fallback
1217
- path. To do this we set the _CRYPTOGRAPHY_MANYLINUX1_CA_FILE and
1218
- _CRYPTOGRAPHY_MANYLINUX1_CA_DIR vars to be equal to whatever the
1217
+ path. To do this we set the _CRYPTOGRAPHY_MANYLINUX_CA_FILE and
1218
+ _CRYPTOGRAPHY_MANYLINUX_CA_DIR vars to be equal to whatever the
1219
1219
current OpenSSL default is and we disable
1220
1220
SSL_CTX_SET_default_verify_paths so that it can't find certs unless
1221
1221
it loads via fallback.
@@ -1226,12 +1226,12 @@ def test_fallback_default_verify_paths(self, monkeypatch):
1226
1226
)
1227
1227
monkeypatch .setattr (
1228
1228
SSL ,
1229
- "_CRYPTOGRAPHY_MANYLINUX1_CA_FILE " ,
1229
+ "_CRYPTOGRAPHY_MANYLINUX_CA_FILE " ,
1230
1230
_ffi .string (_lib .X509_get_default_cert_file ()),
1231
1231
)
1232
1232
monkeypatch .setattr (
1233
1233
SSL ,
1234
- "_CRYPTOGRAPHY_MANYLINUX1_CA_DIR " ,
1234
+ "_CRYPTOGRAPHY_MANYLINUX_CA_DIR " ,
1235
1235
_ffi .string (_lib .X509_get_default_cert_dir ()),
1236
1236
)
1237
1237
context .set_default_verify_paths ()
You can’t perform that action at this time.
0 commit comments