Skip to content

Commit ad2f7c6

Browse files
committed
Fix wrong alert description function
1 parent 9a73852 commit ad2f7c6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wolfssl/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ def do_handshake(self, block=False): # pylint: disable=unused-argument
771771
if alertRet == _SSL_SUCCESS:
772772
alertHistory = alertHistoryPtr[0]
773773
code = alertHistory.last_rx.code
774-
alertDesc = _lib.wolfSSL_alert_type_string_long(code)
774+
alertDesc = _lib.wolfSSL_alert_desc_string_long(code)
775775
if alertDesc != _ffi.NULL:
776776
alertStr = _ffi.string(alertDesc).decode("ascii")
777777
else:

0 commit comments

Comments
 (0)