summaryrefslogtreecommitdiff
path: root/bsdauth/bsdauth_stub.go
blob: 95315f3a6891a7acac47a4f0098eb56eec66408e (plain)
1
2
3
4
5
6
7
8
9
10
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)")
}