Added tests and readme

This commit is contained in:
2026-05-12 06:20:51 +00:00
parent 7e85bb0fcc
commit 139c224a31
23 changed files with 1449 additions and 97 deletions
-6
View File
@@ -3,7 +3,6 @@ package transport
import (
"context"
"crypto/tls"
"crypto/x509"
"encoding/json"
"errors"
"fmt"
@@ -322,8 +321,3 @@ func peerNodeIDFromConnState(cs tls.ConnectionState) string {
}
return cs.PeerCertificates[0].Subject.CommonName
}
// fingerprintOf is a small local mirror to keep this file independent
// of the crypto package's import path at link time; we recompute the
// SPKI hash here. Defined in tofu.go.
var _ = (*x509.Certificate)(nil)