mirror of
				https://github.com/SSLMate/certspotter.git
				synced 2025-07-03 10:47:17 +02:00 
			
		
		
		
	Add JSON tags to SignedCertificateTimestamp
This commit is contained in:
		
							parent
							
								
									ab16995f56
								
							
						
					
					
						commit
						bf676f06be
					
				
							
								
								
									
										10
									
								
								ct/types.go
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								ct/types.go
									
									
									
									
									
								
							@ -288,12 +288,12 @@ type SignedTreeHead struct {
 | 
			
		||||
// add-chain and add-pre-chain methods after base64 decoding. (see RFC sections
 | 
			
		||||
// 3.2 ,4.1 and 4.2)
 | 
			
		||||
type SignedCertificateTimestamp struct {
 | 
			
		||||
	SCTVersion Version    // The version of the protocol to which the SCT conforms
 | 
			
		||||
	LogID      SHA256Hash // the SHA-256 hash of the log's public key, calculated over
 | 
			
		||||
	SCTVersion Version          `json:"sct_version"`    // The version of the protocol to which the SCT conforms
 | 
			
		||||
	LogID      SHA256Hash       `json:"id"` // the SHA-256 hash of the log's public key, calculated over
 | 
			
		||||
	// the DER encoding of the key represented as SubjectPublicKeyInfo.
 | 
			
		||||
	Timestamp  uint64          // Timestamp (in ms since unix epoc) at which the SCT was issued
 | 
			
		||||
	Extensions CTExtensions    // For future extensions to the protocol
 | 
			
		||||
	Signature  DigitallySigned // The Log's signature for this SCT
 | 
			
		||||
	Timestamp  uint64           `json:"timestamp"`          // Timestamp (in ms since unix epoc) at which the SCT was issued
 | 
			
		||||
	Extensions CTExtensions     `json:"extensions"`    // For future extensions to the protocol
 | 
			
		||||
	Signature  DigitallySigned  `json:"signature"` // The Log's signature for this SCT
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (s SignedCertificateTimestamp) String() string {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user