diff options
author | Lorenz Brun <lorenz@brun.one> | 2023-02-23 20:37:05 +0100 |
---|---|---|
committer | Lorenz Brun <lorenz@brun.one> | 2023-02-23 20:37:05 +0100 |
commit | c413f99cd6bb2df8465f1307c3e901626f11f4c2 (patch) | |
tree | 61542db1398c44b7b3c8ae3bce4b4341b06fa24e /internal/sshd/gssapi_test.go | |
parent | 84324a0f22c5ee708d5174e76a2cba17702a5eca (diff) | |
download | gitlab-shell-c413f99cd6bb2df8465f1307c3e901626f11f4c2.tar.gz |
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.
Diffstat (limited to 'internal/sshd/gssapi_test.go')
-rw-r--r-- | internal/sshd/gssapi_test.go | 2 |
1 files changed, 2 insertions, 0 deletions
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 ( |