aboutsummaryrefslogtreecommitdiff
path: root/registry/registry.go
diff options
context:
space:
mode:
authorJulio Capote <jcapote@gmail.com>2023-01-06 00:23:42 +0000
committerJulio Capote <jcapote@gmail.com>2023-01-06 00:23:42 +0000
commit573c4606636c9db64e8628b76fae2ceba72fcbf1 (patch)
tree473447b635b621508fee328e1c19b52a73145daa /registry/registry.go
parentb10b9f6dc993e1757b702dd6def09df65cecfa44 (diff)
downloadcommunique-573c4606636c9db64e8628b76fae2ceba72fcbf1.tar.gz
bah
Diffstat (limited to '')
-rw-r--r--registry/registry.go5
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)