mirror of
https://github.com/netbirdio/netbird.git
synced 2026-09-16 19:59:07 +02:00
Add known mark to identity, fix credentials comparison bugs
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
package ipcauth
|
||||
|
||||
// KnownForTest returns a copy of id marked as kernel-attested, so packages
|
||||
// outside ipcauth can build identity fixtures. A real Identity is only ever
|
||||
// produced by a peer-credential read, nothing outside a test should call this.
|
||||
func KnownForTest(id Identity) Identity {
|
||||
id.known = true
|
||||
return id
|
||||
}
|
||||
Reference in New Issue
Block a user