diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2021-12-19 16:12:59 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-20 05:12:59 +0800 |
commit | 8b85cfd411af794e77e9be645316607063234975 (patch) | |
tree | 3cc505d2bd8e2099b7040139550f242557f81176 /src/OpenSSL/SSL.py | |
parent | de073c62c809b2cd67315c5b3ae99ef38fcd26a9 (diff) | |
download | pyopenssl-8b85cfd411af794e77e9be645316607063234975.tar.gz |
Rename path_string to path_bytes since that's what it actually does (#1067)
Diffstat (limited to 'src/OpenSSL/SSL.py')
-rw-r--r-- | src/OpenSSL/SSL.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/OpenSSL/SSL.py b/src/OpenSSL/SSL.py index 5f655f4..d4eb243 100644 --- a/src/OpenSSL/SSL.py +++ b/src/OpenSSL/SSL.py @@ -12,7 +12,7 @@ from OpenSSL._util import ( ffi as _ffi, lib as _lib, make_assert as _make_assert, - path_string as _path_string, + path_bytes as _path_bytes, text_to_bytes_and_warn as _text_to_bytes_and_warn, no_zero_allocator as _no_zero_allocator, ) @@ -781,12 +781,12 @@ class Context(object): if cafile is None: cafile = _ffi.NULL else: - cafile = _path_string(cafile) + cafile = _path_bytes(cafile) if capath is None: capath = _ffi.NULL else: - capath = _path_string(capath) + capath = _path_bytes(capath) load_result = _lib.SSL_CTX_load_verify_locations( self._context, cafile, capath @@ -920,7 +920,7 @@ class Context(object): :return: None """ - certfile = _path_string(certfile) + certfile = _path_bytes(certfile) result = _lib.SSL_CTX_use_certificate_chain_file( self._context, certfile @@ -940,7 +940,7 @@ class Context(object): :return: None """ - certfile = _path_string(certfile) + certfile = _path_bytes(certfile) if not isinstance(filetype, int): raise TypeError("filetype must be an integer") @@ -998,7 +998,7 @@ class Context(object): :return: None """ - keyfile = _path_string(keyfile) + keyfile = _path_bytes(keyfile) if filetype is _UNSPECIFIED: filetype = FILETYPE_PEM @@ -1169,7 +1169,7 @@ class Context(object): :return: None """ - dhfile = _path_string(dhfile) + dhfile = _path_bytes(dhfile) bio = _lib.BIO_new_file(dhfile, b"r") if bio == _ffi.NULL: |