mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-29 19:52:24 -05:00 
			
		
		
		
	roll back to sha256 for signatures
This commit is contained in:
		
					parent
					
						
							
								0f2de6394a
							
						
					
				
			
			
				commit
				
					
						93792d3f1e
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue