Skip to content

Commit 71663e5

Browse files
author
Sean Cribbs
committed
Make check_revoked_cert a "private" method
1 parent d545edb commit 71663e5

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

docs/advanced.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ Security helpers
115115
.. autoclass:: RiakWrappedSocket
116116
.. autoclass:: fileobject
117117

118-
.. automethod:: riak.security.SecurityCreds.check_revoked_cert
118+
.. automethod:: riak.security.SecurityCreds._check_revoked_cert
119119
.. automethod:: riak.security.SecurityCreds._has_credential
120120

121121
^^^^^^^^^^^^^^

riak/security.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def _has_credential(self, key):
198198
return (getattr(self, internal_key) is not None) or \
199199
(getattr(self, internal_key + "_file") is not None)
200200

201-
def check_revoked_cert(self, ssl_socket):
201+
def _check_revoked_cert(self, ssl_socket):
202202
"""
203203
Checks whether the server certificate on the passed socket has been
204204
revoked by checking the CRL.

riak/transports/http/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def connect(self):
102102
break
103103

104104
self.sock = RiakWrappedSocket(cxn, sock)
105-
self.credentials.check_revoked_cert(self.sock)
105+
self.credentials._check_revoked_cert(self.sock)
106106

107107

108108
class RiakHttpPool(Pool):

riak/transports/pbc/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def _ssl_handshake(self):
126126
# ssl handshake successful
127127
self._socket = ssl_socket
128128

129-
self._client._credentials.check_revoked_cert(ssl_socket)
129+
self._client._credentials._check_revoked_cert(ssl_socket)
130130

131131
return True
132132
except Exception as e:

0 commit comments

Comments
 (0)