Skip to content

Commit 1524cad

Browse files
Hardcode value of GSS_C_DELEG_POLICY_FLAG
This value is fortunately specified by RFC 5896. Truly ancient Kerberos implementations, such as the Heimdal in base on FreeBSD at the time of writing, will not provide this flag. However, since unknown flags will be ignored, it's fine to just provide it anyway. Resolves: #228 Signed-off-by: Robbie Harwood <[email protected]>
1 parent 8b623eb commit 1524cad

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

gssapi/raw/types.pyx

+5-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,11 @@ class RequirementFlag(IntEnum, metaclass=ExtendableEnum):
5656
anonymity = GSS_C_ANON_FLAG
5757
protection_ready = GSS_C_PROT_READY_FLAG
5858
transferable = GSS_C_TRANS_FLAG
59-
ok_as_delegate = GSS_C_DELEG_POLICY_FLAG
59+
60+
# GSS_C_DELEG_POLICY_FLAG. cython can't do compile-time detection of
61+
# this, so take the value from RFC 5896. Implementations that don't
62+
# support it will ignore it.
63+
ok_as_delegate = 32768
6064

6165

6266
class AddressType(IntEnum, metaclass=ExtendableEnum):

0 commit comments

Comments
 (0)