summaryrefslogtreecommitdiff
path: root/src/OpenSSL/crypto.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2021-12-19 16:12:59 -0500
committerGitHub <noreply@github.com>2021-12-20 05:12:59 +0800
commit8b85cfd411af794e77e9be645316607063234975 (patch)
tree3cc505d2bd8e2099b7040139550f242557f81176 /src/OpenSSL/crypto.py
parentde073c62c809b2cd67315c5b3ae99ef38fcd26a9 (diff)
downloadpyopenssl-8b85cfd411af794e77e9be645316607063234975.tar.gz
Rename path_string to path_bytes since that's what it actually does (#1067)
Diffstat (limited to 'src/OpenSSL/crypto.py')
-rw-r--r--src/OpenSSL/crypto.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/OpenSSL/crypto.py b/src/OpenSSL/crypto.py
index 4c5d9f3..f6d90e1 100644
--- a/src/OpenSSL/crypto.py
+++ b/src/OpenSSL/crypto.py
@@ -13,7 +13,7 @@ from OpenSSL._util import (
lib as _lib,
exception_from_error_queue as _exception_from_error_queue,
byte_string as _byte_string,
- path_string as _path_string,
+ path_bytes as _path_bytes,
UNSPECIFIED as _UNSPECIFIED,
text_to_bytes_and_warn as _text_to_bytes_and_warn,
make_assert as _make_assert,
@@ -1728,12 +1728,12 @@ class X509Store(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.X509_STORE_load_locations(
self._store, cafile, capath