Fix wrong alert description function

pull/65/head
Jeremiah Mackey 2026-03-19 15:45:34 +00:00
parent 9a73852678
commit ad2f7c6046
1 changed files with 1 additions and 1 deletions

View File

@ -771,7 +771,7 @@ class SSLSocket(object):
if alertRet == _SSL_SUCCESS:
alertHistory = alertHistoryPtr[0]
code = alertHistory.last_rx.code
alertDesc = _lib.wolfSSL_alert_type_string_long(code)
alertDesc = _lib.wolfSSL_alert_desc_string_long(code)
if alertDesc != _ffi.NULL:
alertStr = _ffi.string(alertDesc).decode("ascii")
else: