mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-23 08:44:10 +01:00
roll back to sha256 for signatures
This commit is contained in:
parent
0f2de6394a
commit
93792d3f1e
@ -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.
|
// 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) {
|
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
|
digestAlgo := httpsig.DigestSha256
|
||||||
getHeaders := []string{httpsig.RequestTarget, "host", "date"}
|
getHeaders := []string{httpsig.RequestTarget, "host", "date"}
|
||||||
postHeaders := []string{httpsig.RequestTarget, "host", "date", "digest"}
|
postHeaders := []string{httpsig.RequestTarget, "host", "date", "digest"}
|
||||||
|
Loading…
Reference in New Issue
Block a user