mirror of
https://github.com/netbirdio/netbird.git
synced 2026-09-09 00:11:28 +02:00
23 lines
529 B
Go
23 lines
529 B
Go
//go:build !linux && !darwin && !freebsd && !windows
|
|
|
|
package ipcauth
|
|
|
|
import (
|
|
"fmt"
|
|
"net"
|
|
"runtime"
|
|
|
|
"google.golang.org/grpc/credentials"
|
|
)
|
|
|
|
// NewTransportCredentials returns nil on platforms without a peer-identity
|
|
// primitive.
|
|
func NewTransportCredentials() credentials.TransportCredentials {
|
|
return nil
|
|
}
|
|
|
|
// ConnIdentity is unsupported on platforms without a peer-identity primitive.
|
|
func ConnIdentity(net.Conn) (Identity, error) {
|
|
return Identity{}, fmt.Errorf("peer identity not supported on %s", runtime.GOOS)
|
|
}
|