Skip to content

Commit

Permalink
Hardcode value of GSS_C_DELEG_POLICY_FLAG
Browse files Browse the repository at this point in the history
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 <rharwood@redhat.com>
  • Loading branch information
frozencemetery committed Nov 19, 2020
1 parent 8b623eb commit 1524cad
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gssapi/raw/types.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ class RequirementFlag(IntEnum, metaclass=ExtendableEnum):
anonymity = GSS_C_ANON_FLAG
protection_ready = GSS_C_PROT_READY_FLAG
transferable = GSS_C_TRANS_FLAG
ok_as_delegate = GSS_C_DELEG_POLICY_FLAG

# GSS_C_DELEG_POLICY_FLAG. cython can't do compile-time detection of
# this, so take the value from RFC 5896. Implementations that don't
# support it will ignore it.
ok_as_delegate = 32768


class AddressType(IntEnum, metaclass=ExtendableEnum):
Expand Down

0 comments on commit 1524cad

Please sign in to comment.