mirror of https://github.com/zlatinb/muwire
make signed queries mandatory
parent
f4a2864942
commit
7d50843754
|
@ -236,7 +236,6 @@ abstract class Connection implements Closeable {
|
||||||
if (search.compressedResults != null)
|
if (search.compressedResults != null)
|
||||||
compressedResults = search.compressedResults
|
compressedResults = search.compressedResults
|
||||||
byte[] sig = null
|
byte[] sig = null
|
||||||
// TODO: make this mandatory at some point
|
|
||||||
if (search.sig != null) {
|
if (search.sig != null) {
|
||||||
sig = Base64.decode(search.sig)
|
sig = Base64.decode(search.sig)
|
||||||
byte [] payload
|
byte [] payload
|
||||||
|
@ -251,8 +250,10 @@ abstract class Connection implements Closeable {
|
||||||
return
|
return
|
||||||
} else
|
} else
|
||||||
log.info("query signature verified")
|
log.info("query signature verified")
|
||||||
} else
|
} else {
|
||||||
log.info("no signature in query")
|
log.info("no signature in query")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
// TODO: make this mandatory at some point
|
// TODO: make this mandatory at some point
|
||||||
byte[] sig2 = null
|
byte[] sig2 = null
|
||||||
|
|
Loading…
Reference in New Issue