From 85a8733284337756df4c8a04a816aa2bfb5a847f Mon Sep 17 00:00:00 2001 From: Rasmus Dahlberg Date: Wed, 4 Nov 2020 12:51:27 +0100 Subject: moved extended key usage to log parameters --- instance.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'instance.go') diff --git a/instance.go b/instance.go index d5c47c9..843e9f8 100644 --- a/instance.go +++ b/instance.go @@ -30,6 +30,7 @@ type LogParameters struct { MaxChain int64 // max submitter certificate chain length AnchorPool *x509.CertPool // for chain verification AnchorList []*x509.Certificate // for access to the raw certificates + KeyUsage []x509.ExtKeyUsage // which extended key usages are accepted Signer crypto.Signer HashType crypto.Hash // hash function used by Trillian } @@ -81,6 +82,7 @@ func NewLogParameters(treeId int64, prefix string, anchorPath, keyPath string, m MaxChain: maxChain, AnchorPool: anchorPool, AnchorList: anchorList, + KeyUsage: []x509.ExtKeyUsage{x509.ExtKeyUsageAny}, Signer: key, HashType: crypto.SHA256, }, nil -- cgit v1.2.3