only looking for type key when querying keyname
Ted Unangst tedu@tedunangst.com
Wed, 10 Apr 2019 18:42:22 -0400
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
honk.go
→
honk.go
@@ -75,7 +75,7 @@ }
func zaggy(keyname string) (key *rsa.PublicKey) { db := opendatabase() - row := db.QueryRow("select pubkey from honkers where xid = ?", keyname) + row := db.QueryRow("select pubkey from honkers where flavor = 'key' and xid = ?", keyname) var data string err := row.Scan(&data) savekey := false