aboutsummaryrefslogtreecommitdiffstats
path: root/handshake.go
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2025-04-11 15:02:18 -0400
committerSam Anthony <sam@samanthony.xyz>2025-04-11 15:02:18 -0400
commit8b3f56a419eb6f3d8c0d711e5f35bae5fcfc534e (patch)
treef1c1e01c66ea937c59f189258d4d9e003f6960a7 /handshake.go
parentbfa33110dfb4018325b9fbb3089b2e85b9bc0124 (diff)
downloadhose-8b3f56a419eb6f3d8c0d711e5f35bae5fcfc534e.zip
fingerprint
Diffstat (limited to 'handshake.go')
-rw-r--r--handshake.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/handshake.go b/handshake.go
index cfe7085..2cedaad 100644
--- a/handshake.go
+++ b/handshake.go
@@ -96,7 +96,7 @@ func verifyPublicKey(addr net.Addr, pubkey [32]byte) (bool, error) {
// Ask host to verify fingerprint.
logf("Fingerprint of host %q: %s\nIs this the correct fingerprint (yes/[no])?",
- hostname, fingerprint(pubkey))
+ hostname, fingerprint(pubkey[:]))
var response string
n, err := fmt.Scanln(&response)
if err != nil {