From 132e0fe607396123a9fc5390c8657ef145bba3c6 Mon Sep 17 00:00:00 2001 From: roerick Date: Sun, 19 Oct 2025 14:24:40 -0600 Subject: initial commit with auth working --- bsdauth/bsdauth_stub.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 bsdauth/bsdauth_stub.go (limited to 'bsdauth/bsdauth_stub.go') diff --git a/bsdauth/bsdauth_stub.go b/bsdauth/bsdauth_stub.go new file mode 100644 index 0000000..95315f3 --- /dev/null +++ b/bsdauth/bsdauth_stub.go @@ -0,0 +1,11 @@ +//go:build !openbsd || !cgo + +package bsdauth + +import "errors" + +// Authenticate is a stub for non-OpenBSD platforms. +func Authenticate(username, password, atype string) (bool, error) { + return false, errors.New("bsdauth: unsupported platform (requires OpenBSD + cgo)") +} + -- cgit v1.2.3