From 4a764f49a3dd0e3f14e9d512a6863a004838e9f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Kie=C3=9F?= Date: Mon, 31 May 2021 16:38:21 +0200 Subject: [PATCH] Add support for GSS_C_CHANNEL_BOUND_FLAG MIT krb5 version 1.19 will set GSS_C_CHANNEL_BOUND_FLAG when channel binding succeeds. This will cause gssapi to fail with the error message: ValueError: 2048 is not a valid RequirementFlag Add support for GSS_C_CHANNEL_BOUND_FLAG to fix this. --- gssapi/raw/types.pyx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gssapi/raw/types.pyx b/gssapi/raw/types.pyx index d99f74a5..63f37f84 100644 --- a/gssapi/raw/types.pyx +++ b/gssapi/raw/types.pyx @@ -62,6 +62,10 @@ class RequirementFlag(IntEnum, metaclass=ExtendableEnum): # support it will ignore it. ok_as_delegate = 32768 + # GSS_C_CHANNEL_BOUND_FLAG, implemented in MIT krb5-1.19 + # See https://datatracker.ietf.org/doc/html/draft-ietf-kitten-channel-bound-flag-04 + channel_bound = 2048 + class AddressType(IntEnum, metaclass=ExtendableEnum): """