]> git.ipfire.org Git - thirdparty/bind9.git/commit
Implement RFC 3645 Section 3.1.1 ret_flags check in GSS-API client
authorOndřej Surý <ondrej@sury.org>
Tue, 17 Mar 2026 23:28:19 +0000 (00:28 +0100)
committerMichał Kępień <michal@isc.org>
Thu, 7 May 2026 11:32:15 +0000 (13:32 +0200)
commit4e455365bf2f8d5eeb185f3b7141ba2519fbbc93
tree9fed592512f6a1637b36c0484d0339bc2f7d68a2
parent01bdb7abeb3df74363c817aa67a480a20792a522
Implement RFC 3645 Section 3.1.1 ret_flags check in GSS-API client

After gss_init_sec_context() completes, verify that both MUTUAL and
INTEG flags are set in ret_flags.  RFC 3645 Section 3.1.1 requires
the client to abandon the algorithm if either flag is missing, as
the security context would not provide mutual authentication or
message integrity.

Also fix uninitialized gss_name_t variable in dst_gssapi_initctx()
that could cause undefined behavior if gss_import_name() fails and
the cleanup path calls gss_release_name() on the uninitialized
value.
lib/dns/gssapictx.c