Commit 84302e96 authored by vyzo's avatar vyzo

rename checkSignature to checkSigningPolicy

parent 175d43f4
......@@ -991,7 +991,7 @@ func (p *PubSub) pushMsg(msg *Message) {
return
}
err := p.checkSignature(msg)
err := p.checkSigningPolicy(msg)
if err != nil {
log.Debugf("dropping message from %s: %s", src, err)
return
......@@ -1021,7 +1021,7 @@ func (p *PubSub) pushMsg(msg *Message) {
}
}
func (p *PubSub) checkSignature(msg *Message) error {
func (p *PubSub) checkSigningPolicy(msg *Message) error {
// reject unsigned messages when strict before we even process the id
if p.signPolicy.mustVerify() {
if p.signPolicy.mustSign() {
......
......@@ -216,7 +216,7 @@ func (v *validation) RemoveValidator(req *rmValReq) {
func (v *validation) PushLocal(msg *Message) error {
v.p.tracer.PublishMessage(msg)
err := v.p.checkSignature(msg)
err := v.p.checkSigningPolicy(msg)
if err != nil {
return err
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment