From c413f99cd6bb2df8465f1307c3e901626f11f4c2 Mon Sep 17 00:00:00 2001 From: Lorenz Brun Date: Thu, 23 Feb 2023 20:37:05 +0100 Subject: sshd: exclude gssapi when building without cgo MR #682 broke building without cgo enabled as it introduced a dependency on a Kerberos library. This can only be disabled at runtime and thus static builds of gitlab-sshd are no longer possible. This change introduces an alternative implementation of the GSSAPI structure which just rejects attempts to use it. That alternative implementation gets automatically activated in case the user is building without cgo. --- internal/sshd/gssapi_test.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'internal/sshd/gssapi_test.go') diff --git a/internal/sshd/gssapi_test.go b/internal/sshd/gssapi_test.go index f4f19cf..c417a41 100644 --- a/internal/sshd/gssapi_test.go +++ b/internal/sshd/gssapi_test.go @@ -1,3 +1,5 @@ +//go:build cgo + package sshd import ( -- cgit v1.2.1