summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar tsmethurst <tobi.smethurst@klarrio.com>2021-08-10 13:59:37 +0200
committerLibravatar tsmethurst <tobi.smethurst@klarrio.com>2021-08-10 13:59:37 +0200
commit93792d3f1e1b97e3cfc2e7be3d0b7a24ec8df235 (patch)
tree50f23bc3da72b17beeef5acc5294abd73fff9f56
parentDereference remote replies (#132) (diff)
downloadgotosocial-93792d3f1e1b97e3cfc2e7be3d0b7a24ec8df235.tar.xz
roll back to sha256 for signatures
-rw-r--r--internal/transport/controller.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/transport/controller.go b/internal/transport/controller.go
index 07d20cdcf..33eab2a3a 100644
--- a/internal/transport/controller.go
+++ b/internal/transport/controller.go
@@ -60,7 +60,7 @@ func NewController(config *config.Config, db db.DB, clock pub.Clock, client pub.
// NewTransport returns a new http signature transport with the given public key id (a URL), and the given private key.
func (c *controller) NewTransport(pubKeyID string, privkey crypto.PrivateKey) (Transport, error) {
- prefs := []httpsig.Algorithm{httpsig.RSA_SHA512}
+ prefs := []httpsig.Algorithm{httpsig.RSA_SHA256}
digestAlgo := httpsig.DigestSha256
getHeaders := []string{httpsig.RequestTarget, "host", "date"}
postHeaders := []string{httpsig.RequestTarget, "host", "date", "digest"}