diff options
author | Julio Capote <jcapote@gmail.com> | 2023-01-06 00:23:42 +0000 |
---|---|---|
committer | Julio Capote <jcapote@gmail.com> | 2023-01-06 00:23:42 +0000 |
commit | 573c4606636c9db64e8628b76fae2ceba72fcbf1 (patch) | |
tree | 473447b635b621508fee328e1c19b52a73145daa /registry/registry.go | |
parent | b10b9f6dc993e1757b702dd6def09df65cecfa44 (diff) | |
download | communique-573c4606636c9db64e8628b76fae2ceba72fcbf1.tar.gz |
bah
Diffstat (limited to 'registry/registry.go')
-rw-r--r-- | registry/registry.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/registry/registry.go b/registry/registry.go index f1ec426..605c4f8 100644 --- a/registry/registry.go +++ b/registry/registry.go @@ -296,7 +296,10 @@ func (r *Registry) deliverAcceptToInbox(url, actorUrl, actorKeyUrl *url.URL, fol digestBytes := digest.Sum(nil) r.mu.Lock() - signature, _ := rsa.SignPKCS1v15(rand.Reader, privKey, crypto.SHA256, digestBytes[:]) + signature, err := rsa.SignPKCS1v15(rand.Reader, privKey, crypto.SHA256, digestBytes[:]) + if err != nil { + r.log.Error(err) + } r.mu.Unlock() b64sig := base64.StdEncoding.EncodeToString(signature) |