Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							656fb065be 
							
						 
					 
					
						
						
							
							logclient: improve some error messages  
						
						
						
						
					 
					
						2023-01-29 13:22:17 -05:00 
						 
				 
			
				
					
						
							
							
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							5365450965 
							
						 
					 
					
						
						
							
							logclient: don't send User-Agent  
						
						
						
						
					 
					
						2023-01-29 13:22:17 -05:00 
						 
				 
			
				
					
						
							
							
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							95c823e86a 
							
						 
					 
					
						
						
							
							logclient: optionally verify STH signatures  
						
						
						
						
					 
					
						2023-01-21 16:53:43 -05:00 
						 
				 
			
				
					
						
							
							
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							654f8d4670 
							
						 
					 
					
						
						
							
							logclient: add GetEntriesRaw  
						
						
						
						
					 
					
						2023-01-21 16:50:50 -05:00 
						 
				 
			
				
					
						
							
							
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							039339154f 
							
						 
					 
					
						
						
							
							Move retry logic into LogClient  
						
						... 
						
						
						
						This allows retry logic to be used for all requests, not just get-entries
Also add context arguments 
						
						
					 
					
						2022-06-02 10:02:32 -04:00 
						 
				 
			
				
					
						
							
							
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							f7f79f2600 
							
						 
					 
					
						
						
							
							logclient: buffer JSON request body  
						
						... 
						
						
						
						This permits us to detect JSON marshalling errors, and makes it easy to
retry the request.
Request bodies are short so this should have negligible performance impact. 
						
						
					 
					
						2022-05-31 15:37:47 -04:00 
						 
				 
			
				
					
						
							
							
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							2335a57569 
							
						 
					 
					
						
						
							
							Drop dependency on github.com/mreiferson/go-httpclient  
						
						
						
						
					 
					
						2022-05-01 13:22:01 -04:00 
						 
				 
			
				
					
						
							
							
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							18b2d6d2a5 
							
						 
					 
					
						
						
							
							Add support for contacting logs via HTTP proxies  
						
						... 
						
						
						
						Just set the appropriate environment variable as documented at
https://golang.org/pkg/net/http/#ProxyFromEnvironment 
Closes : #31 
Closes : #41  
						
						
					 
					
						2020-06-30 10:37:34 -04:00 
						 
				 
			
				
					
						
							
							
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							0aa86dd1cb 
							
						 
					 
					
						
						
							
							Return an error for trailing CT signature garbage rather than logging an error  
						
						
						
						
					 
					
						2019-12-02 14:58:48 -05:00 
						 
				 
			
				
					
						
							
							
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							bf676f06be 
							
						 
					 
					
						
						
							
							Add JSON tags to SignedCertificateTimestamp  
						
						
						
						
					 
					
						2017-12-16 10:13:25 -08:00 
						 
				 
			
				
					
						
							
							
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							7283e51420 
							
						 
					 
					
						
						
							
							Disable TLS certificate validation when communicating with log  
						
						... 
						
						
						
						See the source code comments for an explanation for why this is both
necessary and not insecure. 
						
						
					 
					
						2017-10-19 12:51:28 -07:00 
						 
				 
			
				
					
						
							
							
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							b6f99bad2c 
							
						 
					 
					
						
						
							
							logclient: add support for add-chain request  
						
						
						
						
					 
					
						2017-02-04 16:03:48 -08:00 
						 
				 
			
				
					
						
							
							
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							fecfeb033d 
							
						 
					 
					
						
						
							
							logclient: add support for POST requests  
						
						
						
						
					 
					
						2017-02-04 16:03:35 -08:00 
						 
				 
			
				
					
						
							
							
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							2f0833ac9c 
							
						 
					 
					
						
						
							
							Apply gofmt  
						
						
						
						
					 
					
						2017-01-08 10:17:00 -08:00 
						 
				 
			
				
					
						
							
							
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							adce61e035 
							
						 
					 
					
						
						
							
							Add GetAuditProof to LogClient  
						
						
						
						
					 
					
						2016-11-25 20:09:59 -08:00 
						 
				 
			
				
					
						
							
							
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							2a80e85783 
							
						 
					 
					
						
						
							
							Increase log client request timeout to 60 seconds  
						
						... 
						
						
						
						This should be configurable, but I need to experiment first. 
						
						
					 
					
						2016-08-30 10:40:13 -07:00 
						 
				 
			
				
					
						
							
							
								Joe Tsai 
							
						 
					 
					
						
						
						
						
							
						
						
							4104152de6 
							
						 
					 
					
						
						
							
							Use io.ReadFull instead of raw Read  
						
						... 
						
						
						
						An io.Reader does not guarantee that it can read all bytes possible
to fill the input buffer. Thus, we should use io.ReadFull here instead.
Cherry-picked from ddfd4a2b2d89e20f0a7c63c88420aaa419d4d95c
of https://github.com/google/certificate-transparency  
						
						
					 
					
						2016-08-25 16:48:58 -07:00 
						 
				 
			
				
					
						
							
							
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							c36452f67a 
							
						 
					 
					
						
						
							
							Improve log client error messages  
						
						
						
						
					 
					
						2016-08-25 16:04:29 -07:00 
						 
				 
			
				
					
						
							
							
								Jonathan Rudenberg 
							
						 
					 
					
						
						
						
						
							
						
						
							acc6781f29 
							
						 
					 
					
						
						
							
							Run gofmt  
						
						... 
						
						
						
						Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com> 
						
						
					 
					
						2016-07-28 14:55:46 -04:00 
						 
				 
			
				
					
						
							
							
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							902755d4e8 
							
						 
					 
					
						
						
							
							Don't enforce public key compliance  
						
						... 
						
						
						
						You have to trust the public key anyways, so compliance checks are
superfluous. 
						
						
					 
					
						2016-07-26 17:00:01 -07:00 
						 
				 
			
				
					
						
							
							
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							74f9ceb6a2 
							
						 
					 
					
						
						
							
							Add attribution of the ct sub-directory  
						
						
						
						
					 
					
						2016-06-22 10:30:16 -07:00 
						 
				 
			
				
					
						
							
							
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							196bd864cd 
							
						 
					 
					
						
						
							
							Properly handle non-200 responses from logs  
						
						
						
						
					 
					
						2016-06-08 15:18:28 -07:00 
						 
				 
			
				
					
						
							
							
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							b79cb31413 
							
						 
					 
					
						
						
							
							Move package to software.sslmate.com/src/certspotter  
						
						
						
						
					 
					
						2016-05-04 12:19:59 -07:00 
						 
				 
			
				
					
						
							
							
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							1e582e2e0c 
							
						 
					 
					
						
						
							
							License under the MPL 2.0  
						
						
						
						
					 
					
						2016-05-04 11:56:13 -07:00 
						 
				 
			
				
					
						
							
							
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							670cddafbc 
							
						 
					 
					
						
						
							
							Rename project to certspotter  
						
						
						
						
					 
					
						2016-05-04 11:49:07 -07:00 
						 
				 
			
				
					
						
							
							
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							db2cd2c458 
							
						 
					 
					
						
						
							
							logclient: work around HTTP/2 issue  
						
						... 
						
						
						
						See https://github.com/google/certificate-transparency/issues/1136  
						
						
					 
					
						2016-03-27 11:54:34 -07:00 
						 
				 
			
				
					
						
							
							
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							a071e9490a 
							
						 
					 
					
						
						
							
							Replace embedded X509 parser with my own lightweight parser  
						
						
						
						
					 
					
						2016-03-16 16:59:37 -07:00 
						 
				 
			
				
					
						
							
							
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							f988d05b4b 
							
						 
					 
					
						
						
							
							Decode JSON directly into []byte  
						
						... 
						
						
						
						Simplifies the code and hopefully reduces memory usage 
						
						
					 
					
						2016-03-08 07:01:10 -08:00 
						 
				 
			
				
					
						
							
							
								Andrew Ayer 
							
						 
					 
					
						
						
						
						
							
						
						
							16bf546258 
							
						 
					 
					
						
						
							
							Embed Google CT library, with my own changes  
						
						
						
						
					 
					
						2016-02-18 10:44:56 -08:00