diff options
| author | roerick <roerick@wyo.town> | 2025-10-19 14:24:40 -0600 |
|---|---|---|
| committer | roerick <roerick@wyo.town> | 2025-10-19 14:24:40 -0600 |
| commit | 132e0fe607396123a9fc5390c8657ef145bba3c6 (patch) | |
| tree | 9a420d6f89a2de70d17bfb08789a26ccc501a9b9 /bsdauth/bsdauth_stub.go | |
| parent | a1c3883334a9c54358173ebd822a5a85036dcda6 (diff) | |
initial commit with auth working
Diffstat (limited to 'bsdauth/bsdauth_stub.go')
| -rw-r--r-- | bsdauth/bsdauth_stub.go | 11 |
1 files changed, 11 insertions, 0 deletions
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)") +} + |
