Skip to content

socks_sspi: store socks5_gssapi_enctype#22004

Closed
bagder wants to merge 3 commits into
masterfrom
bagder/socks-sspi-enctype
Closed

socks_sspi: store socks5_gssapi_enctype#22004
bagder wants to merge 3 commits into
masterfrom
bagder/socks-sspi-enctype

Conversation

@bagder

@bagder bagder commented Jun 14, 2026

Copy link
Copy Markdown
Member

Store the unwrapped protection level in conn->socks5_gssapi_enctype to prevent the proxy from contuning unprotected. Matches the GSSAPI version of the code.

Reported-by: Trail of Bits

Store the unwrapped protection level in `conn->socks5_gssapi_enctype` to
prevent the proxy from contuning unprotected. Matches the GSSAPI version
of the code.

Reported-by: Trail of Bits
@bagder bagder marked this pull request as ready for review June 14, 2026 16:12
@bagder bagder requested a review from Copilot June 14, 2026 16:12

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aligns the SOCKS5 SSPI (Windows SSPI) GSS-API negotiation path with the existing GSSAPI implementation by persisting the negotiated protection level on the connection, so later SOCKS5 handling can detect when protection was granted/required and avoid continuing without enforcing it.

Changes:

  • Store the negotiated (unwrapped) SOCKS5 GSS-API protection level into conn->socks5_gssapi_enctype in the SSPI encryption negotiation code.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lib/socks_sspi.c Outdated
@bagder bagder closed this in 5bff1c3 Jun 14, 2026
@bagder bagder deleted the bagder/socks-sspi-enctype branch June 14, 2026 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants