Documentation ¶
Index ¶
Constants ¶
View Source
const ( ZKSIdentityFilename = "zkserver.id" ZKSCertFilename = "zkserver.crt" ZKSKeyFilename = "zkserver.key" ZKSHome = "home" ZKCServerFilename = "myserver/myserver.ini" )
Variables ¶
This section is empty.
Functions ¶
func Fingerprint ¶
func FingerprintDER ¶
func FingerprintDER(c tls.Certificate) string
func RandomUint64 ¶
RandomUint64 returns a cryptographically random uint64 value.
func ValidateIdentity ¶
ValidateIdentity verfies that a string contains a valid identity and returns its []byte representation.
Types ¶
type ClientRecord ¶
type ClientRecord struct {
PublicIdentity zkidentity.PublicIdentity
}
type ServerRecord ¶
type ServerRecord struct { PublicIdentity zkidentity.PublicIdentity Certificate []byte IPandPort []byte Directory bool }
Click to show internal directories.
Click to hide internal directories.