Skip to content

Commit b550c3b

Browse files
committed
Low-level: Fix verify_mic documentation and tuple
This commit removes incorrect legacy documentation about different ways to call `verify_mic`. Additionally, it removes the unused `VerifyMICResult` namedtuple.
1 parent 8831676 commit b550c3b

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

gssapi/raw/message.pyx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ from gssapi.raw.cython_types cimport *
44
from gssapi.raw.sec_contexts cimport SecurityContext
55

66
from gssapi.raw.misc import GSSError
7-
from gssapi.raw.named_tuples import VerifyMICResult, WrapResult, UnwrapResult
7+
from gssapi.raw.named_tuples import WrapResult, UnwrapResult
88

99

1010
cdef extern from "python_gssapi.h":
@@ -93,9 +93,8 @@ def verify_mic(SecurityContext context not None, message, token):
9393
Verify that a MIC matches a message.
9494
9595
This method verifies that the given MIC matches the given message.
96-
There are two ways to run this method. The default way (return_bool=False)
97-
will raise an error if the MIC does not match, and otherwise return
98-
the QoP used to generate the MIC.
96+
If the MIC does not match the given message, an exception will
97+
be raised.
9998
10099
Args:
101100
context (SecurityContext): the current security context

gssapi/raw/named_tuples.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@
2424
['name', 'name_type'])
2525

2626

27-
VerifyMICResult = namedtuple('VerifyMICResult',
28-
['valid', 'qop', 'major_status',
29-
'minor_status'])
30-
31-
3227
WrapResult = namedtuple('WrapResult',
3328
['message', 'encrypted'])
3429

0 commit comments

Comments
 (0)