summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-08-31 20:42:22 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-08-31 20:42:22 +0200
commitf0598a927b739b974168de07f11aec810eae876b (patch)
tree29757b83a125fdf9944965becc313ba8654eeadf
parente86bcbd7a5dd89a2ac5b49e8529878b35fc6980a (diff)
Minor cleanup
-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