summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.go b/main.go
index ba494f3..e0b8dcf 100644
--- a/main.go
+++ b/main.go
@@ -35,7 +35,7 @@ func (d Direction) String() string {
}
type Data struct {
- Key rsa.PublicKey
+ Key *rsa.PublicKey
Rnd []byte
}
@@ -56,7 +56,7 @@ func (dir Direction) sniffCert(b []byte) error {
return err
}
d := data[dir]
- d.Key = *crt.PublicKey.(*rsa.PublicKey)
+ d.Key = crt.PublicKey.(*rsa.PublicKey)
data[dir] = d
}
return nil