From 1f7d8620d9851f4b23e933ac4faa7f93fb92942a Mon Sep 17 00:00:00 2001 From: Bolke de Bruin <bolke@xs4all.nl> Date: Wed, 10 Aug 2022 22:47:52 +0200 Subject: [PATCH] Debug --- cmd/rdpgw/protocol/server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/rdpgw/protocol/server.go b/cmd/rdpgw/protocol/server.go index 2a1c4c8..64bca2f 100644 --- a/cmd/rdpgw/protocol/server.go +++ b/cmd/rdpgw/protocol/server.go @@ -225,10 +225,10 @@ func (s *Server) handshakeRequest(data []byte) (major byte, minor byte, version } func (s *Server) matchAuth(extAuth uint16) (caps uint16, err error) { - if s.SmartCardAuth && extAuth & HTTP_EXTENDED_AUTH_SC == 1 { + if s.SmartCardAuth { caps = caps | HTTP_EXTENDED_AUTH_SC } - if s.TokenAuth && extAuth & HTTP_EXTENDED_AUTH_PAA == 1 { + if s.TokenAuth { caps = caps | HTTP_EXTENDED_AUTH_PAA } -- GitLab