We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e436664 commit 89667f9Copy full SHA for 89667f9
1 file changed
wolfssl/__init__.py
@@ -495,6 +495,7 @@ def _release_native_object(self):
495
self.native_object = _ffi.NULL
496
497
def pending(self):
498
+ self._check_closed("pending")
499
return _lib.wolfSSL_pending(self.native_object)
500
501
@property
@@ -894,7 +895,10 @@ def version(self):
894
895
"""
896
Returns the version of the protocol used in the connection.
897
- return _ffi.string(_lib.wolfSSL_get_version(self.native_object)).decode("ascii")
898
+ self._check_closed("version")
899
+ return _ffi.string(
900
+ _lib.wolfSSL_get_version(
901
+ self.native_object)).decode("ascii")
902
903
# The following functions expose functionality of the underlying
904
# Socket object. These are also exposed through Python's ssl module
0 commit comments